Most of it outdated I am afraid, but have a look.
Team Liquid Greasemonkey Scripts - Page 3
Forum Index > TL Community |
![]()
zatic
Zurich15310 Posts
Most of it outdated I am afraid, but have a look. | ||
pidikun
Japan22 Posts
and stuff for an easier analysis of js scripts an such... ... Or a TL Service API ![]() | ||
kingcoyote
United States546 Posts
Also, the sidebar updater does appear to have crashed on Firefox. I'll try to get that one patched up and put it back online. | ||
![]()
Irave
United States9965 Posts
| ||
HaruHaru
United States988 Posts
| ||
kingcoyote
United States546 Posts
On March 23 2011 13:53 HaruHaru wrote: This worked great on chrome but i just switched to firefox 4! Does this work on ff4? That depends more on Greasemonkey than on my scripts. The script itself is using very standard javascript calls that are not dependent on the browser and should work on anything semi-modern. | ||
GaiaCaT
35 Posts
Install script, reload page, and click on an empy part of the titlebar of a post (dark blue part) It will cycle through 3 colours: green, red and normal. The names are stored in about:config and thus persist through sessions. I have no idea about the character limit but it's larger than 1024 bytes, or 50+ names which should be more than enough for most people's needs. Only tested with FireFox 3.6 http://gaiacat.homepage.dk/teamliquid_-_post_colours.user.js Source in case file is unavailable: + Show Spoiler + // ==UserScript== // @name TeamLiquid - Post Colours // @namespace GaiaCaT // @description Coloured Posts // @version 0.9 // @include http://teamliquid.net/* // @include http://www.teamliquid.net/* // ==/UserScript== var post = document.getElementsByClassName('solid'); var colourize = eval(GM_getValue('Colourize', '[]')); for (i in post) { post[i].getElementsByClassName('titelbalk')[0].addEventListener("click", my_func, true); postname = String(post[i].getElementsByClassName('forummsginfo')[0].textContent.match(/\w+/)); for (j = 0; j < colourize.length; j++) { if (postname == colourize[j][0]) { if (colourize[j][1] == 1) { post[i].getElementsByClassName('lichtb')[0].style.backgroundColor = '#F0FFF0'; } if (colourize[j][1] == 2) { post[i].getElementsByClassName('lichtb')[0].style.backgroundColor = '#FFF0F0'; } } } } function my_func(event) { postname = String(event.target.getElementsByClassName('forummsginfo')[0].textContent.match(/\w+/)); var foundposter = false; for (i = 0; i < colourize.length; i++) { if (colourize[i][0] == postname) { if (colourize[i][1] == 1) { colourize[i][1] = 2; } else if (colourize[i][1] == 2) { colourize.splice(i, 1); } var foundposter = true; } } if (foundposter == false) { colourize.push([postname, 1]); } GM_setValue('Colourize', uneval(colourize)); location.reload(false); } | ||
kingcoyote
United States546 Posts
On July 26 2011 06:24 GaiaCaT wrote: Here's a small, hack'ish script for colouring the body of posts from specific people. Install script, reload page, and click on an empy part of the titlebar of a post (dark blue part) It will cycle through 3 colours: green, red and normal. The names are stored in about:config and thus persist through sessions. I have no idea about the character limit but it's larger than 1024 bytes, or 50+ names which should be more than enough for most people's needs. Only tested with FireFox 3.6 http://gaiacat.homepage.dk/teamliquid_-_post_colours.user.js Source in case file is unavailable: + Show Spoiler + // ==UserScript== // @name TeamLiquid - Post Colours // @namespace GaiaCaT // @description Coloured Posts // @version 0.9 // @include http://teamliquid.net/* // @include http://www.teamliquid.net/* // ==/UserScript== var post = document.getElementsByClassName('solid'); var colourize = eval(GM_getValue('Colourize', '[]')); for (i in post) { post[i].getElementsByClassName('titelbalk')[0].addEventListener("click", my_func, true); postname = String(post[i].getElementsByClassName('forummsginfo')[0].textContent.match(/\w+/)); for (j = 0; j < colourize.length; j++) { if (postname == colourize[j][0]) { if (colourize[j][1] == 1) { post[i].getElementsByClassName('lichtb')[0].style.backgroundColor = '#F0FFF0'; } if (colourize[j][1] == 2) { post[i].getElementsByClassName('lichtb')[0].style.backgroundColor = '#FFF0F0'; } } } } function my_func(event) { postname = String(event.target.getElementsByClassName('forummsginfo')[0].textContent.match(/\w+/)); var foundposter = false; for (i = 0; i < colourize.length; i++) { if (colourize[i][0] == postname) { if (colourize[i][1] == 1) { colourize[i][1] = 2; } else if (colourize[i][1] == 2) { colourize.splice(i, 1); } var foundposter = true; } } if (foundposter == false) { colourize.push([postname, 1]); } GM_setValue('Colourize', uneval(colourize)); location.reload(false); } That's pretty cool. I updated the OP with that. I'll see if I can get it working in Chrome, too. | ||
Dalguno
United States2446 Posts
| ||
kingcoyote
United States546 Posts
Edit: Okay, not right sidebar. It's the left that's doing it. It seems like the regex isn't matching anymore, but it's a very simple regex and the pattern should still be good. Can anyone confirm if this bug exists on anything other than Chrome? Edit #2: Or it is the right. I feel like I'm going crazy. | ||
marvin.
United States469 Posts
| ||
TMStarcraft
Australia686 Posts
On March 01 2011 12:13 Nitrogen wrote: here's another script, except this one is pretty much mandatory if you want to call yourself a tler http://www.teamliquid.net/blogs/viewblog.php?topic_id=80431 Ahhh it all makes sense now lol. | ||
kingcoyote
United States546 Posts
Okay, it's fixed. The change was a simple removal of some whitespace at the right sidebar HTML start. Just reinstall it to get the newest version that doesn't give you TLception. | ||
Zim23
United States1681 Posts
| ||
Gao Xi
Hong Kong5178 Posts
| ||
![]()
zatic
Zurich15310 Posts
http://www.teamliquid.net/forum/viewpost.php?post_id=10679670 | ||
Schnake
Germany2819 Posts
![]() | ||
Cambium
United States16368 Posts
| ||
short
Sweden148 Posts
| ||
kingcoyote
United States546 Posts
On August 24 2011 15:14 zatic wrote: This one is pretty usefull too http://www.teamliquid.net/forum/viewpost.php?post_id=10679670 I've added this to the OP. I also put in your other collection of scripts that I somehow missed months ago. | ||
| ||