Current version: 2.7a - Updated for modified format
I've been annoyed by having to scroll past the SC2 forums to get to the BW forums for a while now, and I have way too much time on my hands right now, so I polished up the two line script I posted in the power rank gone thread, and added a few other scripts.
They work with Chrome/Opera by default and Firefox with Greasemonkey installed, just download the script from herebelow, edit it if you want and install it (drag it into your browser window for Chrome/Firefox, do this on Opera (rename the scripts from foo.user.js to just foo.js if you're using Opera)), and refresh TL.
The individual scripts are:
BW TLPD Changes the TLPD search bar to search the Brood War (KR) TLPD
Remove SC2 Elo Ranks Removes the SC2 Elo ranks from below the liquipedia section on teamliquid.net
Featured Streams Changes stream sidebar to only feature BW streams on teamliquid.net
BW Liquipedia Changes the liquipedia search bar to search the Brood War liquipedia
Rearrange Forums Rearranges the sidebar forum list to make teamliquid useful for Brood War fans (also scrapes for Power Rank)
I've got a git repo up at Google code if you want to use whatever I've hacked together to barely work.
Changelog: 2.7: Fixed bugs with power rank scraping + Show Spoiler +
2.6: Merged subsection stuff Added power rank scraping to rearrange_forums
2.5: Split off each function into its own script, modified WhuazGoodJaggah's stream filter thing to move all the non-bw live streams into the non-featured section instead of removing them
2.4: Changed the link when clicking on the TLPD banner to go directly to the BW TLPD
2.3: Fixed the script run time to properly change everything before the page shows up on all 3 browsers
2.2: Swapped store and power rank links on the top bar Moved around the order in which the default changes take place so more visibly obvious changes occur first (before the page fully loads)
2.1: Added all of teamliquid and blacklisted specific pages to run the script on, instead of whitelisting every individual page
Now it executes as soon as the html has been downloaded, instead of after everything (including pictures) has been downloaded. It makes it much more seamless but I think it only works on Opera right now.
On August 24 2011 21:49 Black[CAT] wrote: Erm, how to remove the script when I dont want it any longer? Never used greasemonkey before...
if you are using fire fox head on to add ons and click user script and than look on the right side it will say TL BW 2.0 and click remove it simple as 1,2,3 GG No Re.
by the way i would like to tinker around the script is there any word processor to open the script beside note pad ? It looks so clumsy and unfriendly in notepad plus I don't know what lines does what despite me having a programming background .
Now it executes as soon as the html has been downloaded, instead of after everything (including pictures) has been downloaded. It makes it much more seamless but I think it only works on Opera right now.
Oh, I didn't realize it wasn't running until everything loaded. I merged your changes in and tested it with Chrome/Firefox/Opera and it worked on all 3, thanks for the tip Also I missed some pages to whitelist (streams, some other page I forgot), so I just said fuck it and added all of www.teamliquid.net and blacklisted all of the exceptions I could find. Anyone who downloaded the script before reading this post should redownload and update to the newest version.
On August 24 2011 21:45 zatic wrote: Hey, good job! Do you want to make this configurable, so people can choose what to exclude? That would make it a great tool for everyone on this site!
It's "configurable" right now by editing the main function in the script before installing it. It's pretty simple to make it do what you want. move_section(foo, bar) moves section foo to right above bar, remove_section(foo) removes section foo, and the stuff at the bottom can be commented out/uncommented to enable/disable. I'm literally brand new to userscripts, so adding configurability through a browser page or something would probably take me a bit (I'll probably get around to it eventually if no one else does, though.
On August 24 2011 21:48 JustPassingBy wrote: Wow, that is quite nice, didn't even know that you could do this. :o But can't you just collapse all sc2 forums, like you did with the general forum?
Well I actually read the sc2 forums, but less than the brood war forums, so collapsing/uncollapsing them over and over again would be worse than just scrolling past.
On August 24 2011 21:49 Black[CAT] wrote: Erm, how to remove the script when I dont want it any longer? Never used greasemonkey before...
if you are using fire fox head on to add ons and click user script and than look on the right side it will say TL BW 2.0 and click remove it simple as 1,2,3 GG No Re.
by the way i would like to tinker around the script is there any word processor to open the script beside note pad ? It looks so clumsy and unfriendly in notepad plus I don't know what lines does what despite me having a programming background .
I use vim, but notepad2 is pretty good on windows. Also, the stuff you want to edit is right at the top of the file, in the middle to bottom of this function here:
function main() { var news = new Section("nav_news_left_mid", 1, false); var general = new Section("nav_general", 1, false); var sc2 = new Section("nav_starcraft2", 1, false); var bw = new Section("nav_broodwar", 1, false); var games = new Section("nav_games", 1, false); var blogs = new Section("nav_blogs", 1, false); var replays = new Section("nav_replays", 1, false);
var calendar = new Section("nav_calendar", 2, true); var streams = new Section("nav_streams", 1, true); var tlpd = new Section("nav_tlpd", 1, true); var liquipedia = new Section("nav_wiki", 1, true); var tsl = new Section("nav_tslforum", 1, true); var poll = new Section("nav_poll", 1, true);
/* Move the Brood War forums above the SC2 forums */ move_section(bw, sc2);
/* Move replays to above poll */ move_section(replays, poll);
/* Remove poll */ //remove_section(poll);
/* Move streams to above TSL */ move_section(streams, tsl);
/* Change liquipedia search to Brood War liquipedia */ for (var i = 0; i < document.forms.length; i++) { var form = document.forms[i]; if (form.action == "http://wiki.teamliquid.net/starcraft2/index.php") form.action = "http://wiki.teamliquid.net/starcraft/index.php"; }
Now it executes as soon as the html has been downloaded, instead of after everything (including pictures) has been downloaded. It makes it much more seamless but I think it only works on Opera right now.
Oh, I didn't realize it wasn't running until everything loaded. I merged your changes in and tested it with Chrome/Firefox/Opera and it worked on all 3, thanks for the tip Also I missed some pages to whitelist (streams, some other page I forgot), so I just said fuck it and added all of www.teamliquid.net and blacklisted all of the exceptions I could find. Anyone who downloaded the script before reading this post should redownload and update to the newest version.
One thing though, the file needs to end in .js for it to work like that in Opera. i.e. the user. part needs to be removed. Otherwise it just works like normal, i.e. executing after everything has been loaded.
Nice job btw, I had a bunch of hacks for myself (like hiding the SC2 forum through CSS and changing the TLPD search to bw through a userscript) but you're a far better coder than I am
On August 24 2011 22:23 Chef wrote: Is there a way to remove sections completely from the side bar, or just change the order? edit: nevermind I think you answered that.
"remove_section(sc2);" does not work T.T Guess I'll just move them for now
Is there any way you could make a script that removes SC2 events from the calendar :o It might be usable again!
On August 24 2011 22:40 Yodo wrote: Can you add functionality to put all [BW] live-streams as featured (we have only few anyway) and all others as non-featured?
Maybe not featured necessarily, but a way to simply separate all the BW streams from the mass of other SC2 streams would be amazing. I hate having to scroll through the non-featured looking for that little [BW] everytime there are no featured streams on.
On August 24 2011 22:23 Chef wrote: Is there a way to remove sections completely from the side bar, or just change the order? edit: nevermind I think you answered that.
"remove_section(sc2);" does not work T.T Guess I'll just move them for now
Is there any way you could make a script that removes SC2 events from the calendar :o It might be usable again!
On August 24 2011 22:23 Chef wrote: Is there a way to remove sections completely from the side bar, or just change the order? edit: nevermind I think you answered that.
"remove_section(sc2);" does not work T.T Guess I'll just move them for now
Is there any way you could make a script that removes SC2 events from the calendar :o It might be usable again!
On August 24 2011 22:40 Yodo wrote: Can you add functionality to put all [BW] live-streams as featured (we have only few anyway) and all others as non-featured?
You are my new hero sir! I was feeling really depressed with our beloved bw for so many reasons at the moment and you just gave me a reason to be a proud bw fan once again. Thank you!
I thought about that just today, haha sooo nice. Thanks a lot man, I will alter it to my needs and install it on all my browsers.
@Chef are you sure you did it right? What browser are you using? I removed the sc2 section and the news section without any problem. (maybe you need to uninstall the unaltered one before you install the new one)
Just pushed another update to github, the script should run right after all the html is loaded on all 3 browsers now, so you shouldn't see items change and fly around during the page load. I'm going to move this to google code or something to make distribution of versions easier later, and I'll take a poke at the BW streams thing (it'd be a lot easier if each stream were wrapped in a span or something though, text parsing in javascript sucks). Sleep time now though
edit: Also yeah, removing the sc2 forums should work, you should probably make sure you do it after you move all the stuff though. Removing sc2 and then trying to move something above it or something probably results in Bad Things happening. Also make sure you're actually removing the script and installing it again if you're on chrome or firefox, when you install the script it makes a copy of it into your browser user profile.
maybe you have to put the parameter as a string? as in remove_section('sc2'); ? Unless he defined SC2 and such before, didn't look at the script.
I won't use it, it doesn't really bother me, as on the front page I just press the END button and then the PAGE UP button and am at the broodwar forums;)
* Changelog: * 2.4: Changed the link when clicking on the TLPD banner to go directly to the BW TLPD * 2.3: Fixed the script run time to properly change everything before the page shows up on all 3 browsers * 2.2: Swapped store and power rank links on the top bar * Moved around the order in which the default changes take place so more visibly obvious changes occur first (before the page fully loads) * 2.1: Added all of teamliquid and blacklisted specific pages to run the script on, instead of whitelisting every individual page * 2.0: Abstracted the section relocation stuff
Fixed another annoyance that I've had, the big TLPD banner thing goes directly to the BW TLPD with the latest version.
On August 25 2011 00:03 Wolf wrote: All it does for me is make TL load really slow.
What browser are you using? If it's firefox, what version of greasemonkey? The only thing I can think of that could cause that is if you already take forever to download the html, and your browser's engine can't do any predictive rendering because because the userscript has a hook on the document end.
On August 25 2011 00:09 soujiro_ wrote: another idea maybe taking out tsl button and new liquipedia
You can already do that by adding: remove_section(tsl); remove_section(liquipedia);
to the end of the main function. There's already a commented out remove_section(poll); in the code, just add some more stuff after that and make sure you put it in this order: /* Move streams to above TSL */ move_section(streams, tsl);
Any way to make TLPDization the way I want ? For instance when I TLPDize NaDa, I would want it to do NaDa by default. And same with maps, they're always TLPDized to international (ie : Terminus SE and I would want to make it Terminus SE ) That would be an huge time saver as when I make a LR thread I have to manually redo all the TLPD links.
I added a function to remove all streams except bw streams. let bw streams rule tl.net MUAHAHAHHAHAH
var let_bw_streams_rule_the_featured_list = function() { var bwNodes = new Array();
// get all the bw streams var featuredStreams = nextObject(document.getElementById("nav_streams")); featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild; for (var i=0; i < featuredStreams.childNodes.length; i++) { var node = featuredStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
var moreStreams = document.getElementById("more_streams"); for (var i=0; i < moreStreams.childNodes.length; i++) { var node = moreStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
// remove all the old featured streams while (featuredStreams.hasChildNodes()) { featuredStreams.removeChild(featuredStreams.firstChild); }
// insert bw streams into the featured streams list for (var i=0; i < bwNodes.length; i++) { featuredStreams.appendChild(bwNodes[i]); featuredStreams.appendChild(document.createElement("br")); } }
just insert the function somewhere between other functions (f.e. below move_section) and then call it where the other functions (like move_section) are called.
On August 25 2011 02:27 WhuazGoodJaggah wrote: I added a function to remove all streams except bw streams. let bw streams rule tl.net MUAHAHAHHAHAH
var let_bw_streams_rule_the_featured_list = function() { var bwNodes = new Array();
// get all the bw streams var featuredStreams = nextObject(document.getElementById("nav_streams")); featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild; for (var i=0; i < featuredStreams.childNodes.length; i++) { var node = featuredStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
var moreStreams = document.getElementById("more_streams"); for (var i=0; i < moreStreams.childNodes.length; i++) { var node = moreStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
// remove all the old featured streams while (featuredStreams.hasChildNodes()) { featuredStreams.removeChild(featuredStreams.firstChild); }
// insert bw streams into the featured streams list for (var i=0; i < bwNodes.length; i++) { featuredStreams.appendChild(bwNodes[i]); featuredStreams.appendChild(document.createElement("br")); } }
just insert the function somewhere between other functions (f.e. below move_section) and then call it where the other functions (like move_section) are called.
/* Notes: This should be fully compatible with Firefox (Greasemonkey)/Chrome/Opera. * Opera users should replace the .user.js extension with just a .js before putting it into the userjs directory. * * Changelog: * 2.4: Changed the link when clicking on the TLPD banner to go directly to the BW TLPD * 2.3: Fixed the script run time to properly change everything before the page shows up on all 3 browsers * 2.2: Swapped store and power rank links on the top bar * Moved around the order in which the default changes take place so more visibly obvious changes occur first (before the page fully loads) * 2.1: Added all of teamliquid and blacklisted specific pages to run the script on, instead of whitelisting every individual page * 2.0: Abstracted the section relocation stuff */
/* Sections: news, general, sc2, bw, games, blogs, replays, calendar, streams, tlpd, liquipedia, tsl, poll */
// Wrap the script in an anonymous function so Opera doesn't blow up (function() {
function main() { var news = new Section("nav_news_left_mid", 1, false); var general = new Section("nav_general", 1, false); var sc2 = new Section("nav_starcraft2", 1, false); var bw = new Section("nav_broodwar", 1, false); var games = new Section("nav_games", 1, false); var blogs = new Section("nav_blogs", 1, false); var replays = new Section("nav_replays", 1, false);
var calendar = new Section("nav_calendar", 2, true); var streams = new Section("nav_streams", 1, true); var tlpd = new Section("nav_tlpd", 1, true); var liquipedia = new Section("nav_wiki", 1, true); var tsl = new Section("nav_tslforum", 1, true); var poll = new Section("nav_poll", 1, true);
/* Swap Power Rank and Store */ var links = document.getElementsByTagName("a"); for (var i = 0; i < links.length; i++) { if (links[i].getAttribute("href") == "/powerrank/") { links[i].href = "/store/"; links[i].innerHTML = "Store"; } else if (links[i].getAttribute("href") == "/store/") { links[i].href = "/powerrank/"; links[i].innerHTML = "Power Rank"; } }
/* Remove SC2 Elo rank display */ var rank1 = nextObject(document.forms.namedItem("frm_tlpd_search")); var rank2 = nextObject(rank1); rank1.parentNode.removeChild(rank1); rank2.parentNode.removeChild(rank2);
/* Move the Brood War forums above the SC2 forums */ move_section(bw, sc2);
/* Move replays to above poll */ move_section(replays, poll);
/* Remove poll */ remove_section(poll);
/* Only BW streams are important to me */ let_bw_streams_rule_the_featured_list();
/* Move streams to above TSL */ move_section(streams, tsl);
/* Change liquipedia search to Brood War liquipedia */ for (var i = 0; i < document.forms.length; i++) { var form = document.forms[i]; if (form.action == "http://wiki.teamliquid.net/starcraft2/index.php") form.action = "http://wiki.teamliquid.net/starcraft/index.php"; }
}
function Section(id, count, on_right) { this.on_right = on_right; this.elements = new Array();
var link = document.getElementById(id); this.elements.push(link); for (var x = 0; x < count; x++) { this.elements.push(nextObject(link)); } }
var remove_section = function(section) { for (var x = 0; x < section.elements.length; x++) { var node = section.elements[x]; node.parentNode.removeChild(node); } }
var prepend_section = function(section, location) { var loc = location.elements[0]; for (var x = 0; x < section.elements.length; x++) { var node = section.elements[x]; loc.parentNode.insertBefore(node, loc); } }
var move_section = function(from, to) { remove_section(from); prepend_section(from, to); }
var let_bw_streams_rule_the_featured_list = function() { var bwNodes = new Array();
// get all the bw streams var featuredStreams = nextObject(document.getElementById("nav_streams")); featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild; for (var i=0; i < featuredStreams.childNodes.length; i++) { var node = featuredStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
var moreStreams = document.getElementById("more_streams"); for (var i=0; i < moreStreams.childNodes.length; i++) { var node = moreStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
// remove all the old featured streams while (featuredStreams.hasChildNodes()) { featuredStreams.removeChild(featuredStreams.firstChild); }
// insert bw streams into the featured streams list for (var i=0; i < bwNodes.length; i++) { featuredStreams.appendChild(bwNodes[i]; featuredStreams.appendChild(document.createElement("br")); } }
/* Adapted from [url=http://v3.thewatchmakerproject.com/journal/329/]http://v3.thewatchmakerproject.com/journal/329/[/url] */ var nextObject = function(el) { var n = el; do n = n.nextSibling; while (n && n.nodeType != 1); return n; }
var previousObject = function(el) { var p = el; do p = p.previousSibling; while (p && p.nodeType != 1); return p; }
if (window.opera) { if (document.readyState==="loading") { if (window.addEventListener) window.addEventListener("DOMContentLoaded", main, false); else if (window.attachEvent) window.attachEvent("onload", main); } else if (document.readyState==="complete") { main(); } else { if (window.addEventListener) window.addEventListener("load", main, false); else if (window.attachEvent) window.attachEvent("onload", main); } } else { main(); } })();
Ha, thanks for this. I've always been meaning to write a stream filter, but I was too lazy. I'll just use yours
Here is the problem which was fixed in 0.9.9: "(Affecting 0.9.8) Scripts would not install (all scripts in Firefox 3: #1389, always for certain scripts: #1391)"
this stream script is so great. no wonder why BW streams have died long ago thanks to the flood of annoying SC2 streams right over there this will definetly help us to follow bw streams more smoothly!!!
next step: move PR from features at top to right bar and replace it with SC2 elo ranks!
On August 25 2011 02:27 WhuazGoodJaggah wrote: I added a function to remove all streams except bw streams. let bw streams rule tl.net MUAHAHAHHAHAH
var let_bw_streams_rule_the_featured_list = function() { var bwNodes = new Array();
// get all the bw streams var featuredStreams = nextObject(document.getElementById("nav_streams")); featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild; for (var i=0; i < featuredStreams.childNodes.length; i++) { var node = featuredStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
var moreStreams = document.getElementById("more_streams"); for (var i=0; i < moreStreams.childNodes.length; i++) { var node = moreStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
// remove all the old featured streams while (featuredStreams.hasChildNodes()) { featuredStreams.removeChild(featuredStreams.firstChild); }
// insert bw streams into the featured streams list for (var i=0; i < bwNodes.length; i++) { featuredStreams.appendChild(bwNodes[i]); featuredStreams.appendChild(document.createElement("br")); } }
just insert the function somewhere between other functions (f.e. below move_section) and then call it where the other functions (like move_section) are called.
/* Notes: This should be fully compatible with Firefox (Greasemonkey)/Chrome/Opera. * Opera users should replace the .user.js extension with just a .js before putting it into the userjs directory. * * Changelog: * 2.4: Changed the link when clicking on the TLPD banner to go directly to the BW TLPD * 2.3: Fixed the script run time to properly change everything before the page shows up on all 3 browsers * 2.2: Swapped store and power rank links on the top bar * Moved around the order in which the default changes take place so more visibly obvious changes occur first (before the page fully loads) * 2.1: Added all of teamliquid and blacklisted specific pages to run the script on, instead of whitelisting every individual page * 2.0: Abstracted the section relocation stuff */
/* Sections: news, general, sc2, bw, games, blogs, replays, calendar, streams, tlpd, liquipedia, tsl, poll */
// Wrap the script in an anonymous function so Opera doesn't blow up (function() {
function main() { var news = new Section("nav_news_left_mid", 1, false); var general = new Section("nav_general", 1, false); var sc2 = new Section("nav_starcraft2", 1, false); var bw = new Section("nav_broodwar", 1, false); var games = new Section("nav_games", 1, false); var blogs = new Section("nav_blogs", 1, false); var replays = new Section("nav_replays", 1, false);
var calendar = new Section("nav_calendar", 2, true); var streams = new Section("nav_streams", 1, true); var tlpd = new Section("nav_tlpd", 1, true); var liquipedia = new Section("nav_wiki", 1, true); var tsl = new Section("nav_tslforum", 1, true); var poll = new Section("nav_poll", 1, true);
/* Swap Power Rank and Store */ var links = document.getElementsByTagName("a"); for (var i = 0; i < links.length; i++) { if (links[i].getAttribute("href") == "/powerrank/") { links[i].href = "/store/"; links[i].innerHTML = "Store"; } else if (links[i].getAttribute("href") == "/store/") { links[i].href = "/powerrank/"; links[i].innerHTML = "Power Rank"; } }
/* Remove SC2 Elo rank display */ var rank1 = nextObject(document.forms.namedItem("frm_tlpd_search")); var rank2 = nextObject(rank1); rank1.parentNode.removeChild(rank1); rank2.parentNode.removeChild(rank2);
/* Move the Brood War forums above the SC2 forums */ move_section(bw, sc2);
/* Move replays to above poll */ move_section(replays, poll);
/* Remove poll */ remove_section(poll);
/* Only BW streams are important to me */ let_bw_streams_rule_the_featured_list();
/* Move streams to above TSL */ move_section(streams, tsl);
/* Change liquipedia search to Brood War liquipedia */ for (var i = 0; i < document.forms.length; i++) { var form = document.forms[i]; if (form.action == "http://wiki.teamliquid.net/starcraft2/index.php") form.action = "http://wiki.teamliquid.net/starcraft/index.php"; }
}
function Section(id, count, on_right) { this.on_right = on_right; this.elements = new Array();
var link = document.getElementById(id); this.elements.push(link); for (var x = 0; x < count; x++) { this.elements.push(nextObject(link)); } }
var remove_section = function(section) { for (var x = 0; x < section.elements.length; x++) { var node = section.elements[x]; node.parentNode.removeChild(node); } }
var prepend_section = function(section, location) { var loc = location.elements[0]; for (var x = 0; x < section.elements.length; x++) { var node = section.elements[x]; loc.parentNode.insertBefore(node, loc); } }
var move_section = function(from, to) { remove_section(from); prepend_section(from, to); }
var let_bw_streams_rule_the_featured_list = function() { var bwNodes = new Array();
// get all the bw streams var featuredStreams = nextObject(document.getElementById("nav_streams")); featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild; for (var i=0; i < featuredStreams.childNodes.length; i++) { var node = featuredStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
var moreStreams = document.getElementById("more_streams"); for (var i=0; i < moreStreams.childNodes.length; i++) { var node = moreStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
// remove all the old featured streams while (featuredStreams.hasChildNodes()) { featuredStreams.removeChild(featuredStreams.firstChild); }
// insert bw streams into the featured streams list for (var i=0; i < bwNodes.length; i++) { featuredStreams.appendChild(bwNodes[i]; featuredStreams.appendChild(document.createElement("br")); } }
/* Adapted from [url=http://v3.thewatchmakerproject.com/journal/329/]http://v3.thewatchmakerproject.com/journal/329/[/url] */ var nextObject = function(el) { var n = el; do n = n.nextSibling; while (n && n.nodeType != 1); return n; }
var previousObject = function(el) { var p = el; do p = p.previousSibling; while (p && p.nodeType != 1); return p; }
if (window.opera) { if (document.readyState==="loading") { if (window.addEventListener) window.addEventListener("DOMContentLoaded", main, false); else if (window.attachEvent) window.attachEvent("onload", main); } else if (document.readyState==="complete") { main(); } else { if (window.addEventListener) window.addEventListener("load", main, false); else if (window.attachEvent) window.attachEvent("onload", main); } } else { main(); } })();
when I try the full script, it says an 800A03F4 error with "expected /" on line 94 char 49.
This is truly amazing. I've been waiting for something like this for so long. From the bottom of my heart, thank you so much. If we can get the Power Rank back and make all the SC2 stuff disappear then it'll be like the good old TL!
Dude, this is slammin. Any chance the calendar for chrome can be done so it shows only BW events and streams? I would gladly pitch some e hugs to someone for this
On August 25 2011 02:27 WhuazGoodJaggah wrote: I added a function to remove all streams except bw streams. let bw streams rule tl.net MUAHAHAHHAHAH
var let_bw_streams_rule_the_featured_list = function() { var bwNodes = new Array();
// get all the bw streams var featuredStreams = nextObject(document.getElementById("nav_streams")); featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild; for (var i=0; i < featuredStreams.childNodes.length; i++) { var node = featuredStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
var moreStreams = document.getElementById("more_streams"); for (var i=0; i < moreStreams.childNodes.length; i++) { var node = moreStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
// remove all the old featured streams while (featuredStreams.hasChildNodes()) { featuredStreams.removeChild(featuredStreams.firstChild); }
// insert bw streams into the featured streams list for (var i=0; i < bwNodes.length; i++) { featuredStreams.appendChild(bwNodes[i]); featuredStreams.appendChild(document.createElement("br")); } }
just insert the function somewhere between other functions (f.e. below move_section) and then call it where the other functions (like move_section) are called.
/* Notes: This should be fully compatible with Firefox (Greasemonkey)/Chrome/Opera. * Opera users should replace the .user.js extension with just a .js before putting it into the userjs directory. * * Changelog: * 2.4: Changed the link when clicking on the TLPD banner to go directly to the BW TLPD * 2.3: Fixed the script run time to properly change everything before the page shows up on all 3 browsers * 2.2: Swapped store and power rank links on the top bar * Moved around the order in which the default changes take place so more visibly obvious changes occur first (before the page fully loads) * 2.1: Added all of teamliquid and blacklisted specific pages to run the script on, instead of whitelisting every individual page * 2.0: Abstracted the section relocation stuff */
/* Sections: news, general, sc2, bw, games, blogs, replays, calendar, streams, tlpd, liquipedia, tsl, poll */
// Wrap the script in an anonymous function so Opera doesn't blow up (function() {
function main() { var news = new Section("nav_news_left_mid", 1, false); var general = new Section("nav_general", 1, false); var sc2 = new Section("nav_starcraft2", 1, false); var bw = new Section("nav_broodwar", 1, false); var games = new Section("nav_games", 1, false); var blogs = new Section("nav_blogs", 1, false); var replays = new Section("nav_replays", 1, false);
var calendar = new Section("nav_calendar", 2, true); var streams = new Section("nav_streams", 1, true); var tlpd = new Section("nav_tlpd", 1, true); var liquipedia = new Section("nav_wiki", 1, true); var tsl = new Section("nav_tslforum", 1, true); var poll = new Section("nav_poll", 1, true);
/* Swap Power Rank and Store */ var links = document.getElementsByTagName("a"); for (var i = 0; i < links.length; i++) { if (links[i].getAttribute("href") == "/powerrank/") { links[i].href = "/store/"; links[i].innerHTML = "Store"; } else if (links[i].getAttribute("href") == "/store/") { links[i].href = "/powerrank/"; links[i].innerHTML = "Power Rank"; } }
/* Remove SC2 Elo rank display */ var rank1 = nextObject(document.forms.namedItem("frm_tlpd_search")); var rank2 = nextObject(rank1); rank1.parentNode.removeChild(rank1); rank2.parentNode.removeChild(rank2);
/* Move the Brood War forums above the SC2 forums */ move_section(bw, sc2);
/* Move replays to above poll */ move_section(replays, poll);
/* Remove poll */ remove_section(poll);
/* Only BW streams are important to me */ let_bw_streams_rule_the_featured_list();
/* Move streams to above TSL */ move_section(streams, tsl);
/* Change liquipedia search to Brood War liquipedia */ for (var i = 0; i < document.forms.length; i++) { var form = document.forms[i]; if (form.action == "http://wiki.teamliquid.net/starcraft2/index.php") form.action = "http://wiki.teamliquid.net/starcraft/index.php"; }
}
function Section(id, count, on_right) { this.on_right = on_right; this.elements = new Array();
var link = document.getElementById(id); this.elements.push(link); for (var x = 0; x < count; x++) { this.elements.push(nextObject(link)); } }
var remove_section = function(section) { for (var x = 0; x < section.elements.length; x++) { var node = section.elements[x]; node.parentNode.removeChild(node); } }
var prepend_section = function(section, location) { var loc = location.elements[0]; for (var x = 0; x < section.elements.length; x++) { var node = section.elements[x]; loc.parentNode.insertBefore(node, loc); } }
var move_section = function(from, to) { remove_section(from); prepend_section(from, to); }
var let_bw_streams_rule_the_featured_list = function() { var bwNodes = new Array();
// get all the bw streams var featuredStreams = nextObject(document.getElementById("nav_streams")); featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild; for (var i=0; i < featuredStreams.childNodes.length; i++) { var node = featuredStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
var moreStreams = document.getElementById("more_streams"); for (var i=0; i < moreStreams.childNodes.length; i++) { var node = moreStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
// remove all the old featured streams while (featuredStreams.hasChildNodes()) { featuredStreams.removeChild(featuredStreams.firstChild); }
// insert bw streams into the featured streams list for (var i=0; i < bwNodes.length; i++) { featuredStreams.appendChild(bwNodes[i]; featuredStreams.appendChild(document.createElement("br")); } }
/* Adapted from [url=http://v3.thewatchmakerproject.com/journal/329/]http://v3.thewatchmakerproject.com/journal/329/[/url] */ var nextObject = function(el) { var n = el; do n = n.nextSibling; while (n && n.nodeType != 1); return n; }
var previousObject = function(el) { var p = el; do p = p.previousSibling; while (p && p.nodeType != 1); return p; }
if (window.opera) { if (document.readyState==="loading") { if (window.addEventListener) window.addEventListener("DOMContentLoaded", main, false); else if (window.attachEvent) window.attachEvent("onload", main); } else if (document.readyState==="complete") { main(); } else { if (window.addEventListener) window.addEventListener("load", main, false); else if (window.attachEvent) window.attachEvent("onload", main); } } else { main(); } })();
when I try the full script, it says an 800A03F4 error with "expected /" on line 94 char 49.
notes: - pretty messy, I just wanted it to work - I removed the toggle button and show all events by default - so far, only OSL, MSL, SPL and STX are shown, more can be added in isSCBW method by including additional tag - there's nothing stopping you from adding your favourite SC2 tourneys such as "[GSL] " - updated on 08/26/2011
// show all and hide the toggle var toggle = document.getElementById( "span_more_events" ); toggle.style.display = "block"; toggle = document.getElementById( "link_show_more_events" ); toggle.style.display = "none";
// 'less' events var node; var par; var parentXPath; var nodeXPath; for( i = 1; i <= 5; i++ ) { nodeXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table/tbody/tr/td/div[2]/table/tbody/tr[" + i + "]/td[2]/a"; node = findXPathNode( nodeXPath ); if( !isSCBW( node ) ){ parentXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table/tbody/tr/td/div[2]/table/tbody/tr[" + i + "]"; par = findXPathNode( parentXPath ); par.style.display = "none"; } } // 'more' events for( i = 1; i <= 15; i++ ){ nodeXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table/tbody/tr/td/div[2]/div[2]/table/tbody/tr[" + i + "]/td[2]/a"; node = findXPathNode( nodeXPath ); if( !isSCBW( node ) ){ parentXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table/tbody/tr/td/div[2]/div[2]/table/tbody/tr[" + i + "]"; par = findXPathNode( parentXPath ); par.style.display = "none"; } }
function isSCBW( node ) { var tags = new Array( "[OSL] ", "[MSL] ", "[SPL] ", "[STX] ", "[GC] " ); // GC = Gambit Cup var str = node.innerHTML; for (var i in tags) { if (str.indexOf(tags[i]) != -1) { return true; } } return false; }
On August 25 2011 02:27 WhuazGoodJaggah wrote: I added a function to remove all streams except bw streams. let bw streams rule tl.net MUAHAHAHHAHAH
var let_bw_streams_rule_the_featured_list = function() { var bwNodes = new Array();
// get all the bw streams var featuredStreams = nextObject(document.getElementById("nav_streams")); featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild; for (var i=0; i < featuredStreams.childNodes.length; i++) { var node = featuredStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
var moreStreams = document.getElementById("more_streams"); for (var i=0; i < moreStreams.childNodes.length; i++) { var node = moreStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
// remove all the old featured streams while (featuredStreams.hasChildNodes()) { featuredStreams.removeChild(featuredStreams.firstChild); }
// insert bw streams into the featured streams list for (var i=0; i < bwNodes.length; i++) { featuredStreams.appendChild(bwNodes[i]); featuredStreams.appendChild(document.createElement("br")); } }
just insert the function somewhere between other functions (f.e. below move_section) and then call it where the other functions (like move_section) are called.
/* Notes: This should be fully compatible with Firefox (Greasemonkey)/Chrome/Opera. * Opera users should replace the .user.js extension with just a .js before putting it into the userjs directory. * * Changelog: * 2.4: Changed the link when clicking on the TLPD banner to go directly to the BW TLPD * 2.3: Fixed the script run time to properly change everything before the page shows up on all 3 browsers * 2.2: Swapped store and power rank links on the top bar * Moved around the order in which the default changes take place so more visibly obvious changes occur first (before the page fully loads) * 2.1: Added all of teamliquid and blacklisted specific pages to run the script on, instead of whitelisting every individual page * 2.0: Abstracted the section relocation stuff */
/* Sections: news, general, sc2, bw, games, blogs, replays, calendar, streams, tlpd, liquipedia, tsl, poll */
// Wrap the script in an anonymous function so Opera doesn't blow up (function() {
function main() { var news = new Section("nav_news_left_mid", 1, false); var general = new Section("nav_general", 1, false); var sc2 = new Section("nav_starcraft2", 1, false); var bw = new Section("nav_broodwar", 1, false); var games = new Section("nav_games", 1, false); var blogs = new Section("nav_blogs", 1, false); var replays = new Section("nav_replays", 1, false);
var calendar = new Section("nav_calendar", 2, true); var streams = new Section("nav_streams", 1, true); var tlpd = new Section("nav_tlpd", 1, true); var liquipedia = new Section("nav_wiki", 1, true); var tsl = new Section("nav_tslforum", 1, true); var poll = new Section("nav_poll", 1, true);
/* Swap Power Rank and Store */ var links = document.getElementsByTagName("a"); for (var i = 0; i < links.length; i++) { if (links[i].getAttribute("href") == "/powerrank/") { links[i].href = "/store/"; links[i].innerHTML = "Store"; } else if (links[i].getAttribute("href") == "/store/") { links[i].href = "/powerrank/"; links[i].innerHTML = "Power Rank"; } }
/* Remove SC2 Elo rank display */ var rank1 = nextObject(document.forms.namedItem("frm_tlpd_search")); var rank2 = nextObject(rank1); rank1.parentNode.removeChild(rank1); rank2.parentNode.removeChild(rank2);
/* Move the Brood War forums above the SC2 forums */ move_section(bw, sc2);
/* Move replays to above poll */ move_section(replays, poll);
/* Remove poll */ remove_section(poll);
/* Only BW streams are important to me */ let_bw_streams_rule_the_featured_list();
/* Move streams to above TSL */ move_section(streams, tsl);
/* Change liquipedia search to Brood War liquipedia */ for (var i = 0; i < document.forms.length; i++) { var form = document.forms[i]; if (form.action == "http://wiki.teamliquid.net/starcraft2/index.php") form.action = "http://wiki.teamliquid.net/starcraft/index.php"; }
}
function Section(id, count, on_right) { this.on_right = on_right; this.elements = new Array();
var link = document.getElementById(id); this.elements.push(link); for (var x = 0; x < count; x++) { this.elements.push(nextObject(link)); } }
var remove_section = function(section) { for (var x = 0; x < section.elements.length; x++) { var node = section.elements[x]; node.parentNode.removeChild(node); } }
var prepend_section = function(section, location) { var loc = location.elements[0]; for (var x = 0; x < section.elements.length; x++) { var node = section.elements[x]; loc.parentNode.insertBefore(node, loc); } }
var move_section = function(from, to) { remove_section(from); prepend_section(from, to); }
var let_bw_streams_rule_the_featured_list = function() { var bwNodes = new Array();
// get all the bw streams var featuredStreams = nextObject(document.getElementById("nav_streams")); featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild; for (var i=0; i < featuredStreams.childNodes.length; i++) { var node = featuredStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
var moreStreams = document.getElementById("more_streams"); for (var i=0; i < moreStreams.childNodes.length; i++) { var node = moreStreams.childNodes[i]; if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) { bwNodes.push(node); } }
// remove all the old featured streams while (featuredStreams.hasChildNodes()) { featuredStreams.removeChild(featuredStreams.firstChild); }
// insert bw streams into the featured streams list for (var i=0; i < bwNodes.length; i++) { featuredStreams.appendChild(bwNodes[i]; featuredStreams.appendChild(document.createElement("br")); } }
/* Adapted from [url=http://v3.thewatchmakerproject.com/journal/329/]http://v3.thewatchmakerproject.com/journal/329/[/url] */ var nextObject = function(el) { var n = el; do n = n.nextSibling; while (n && n.nodeType != 1); return n; }
var previousObject = function(el) { var p = el; do p = p.previousSibling; while (p && p.nodeType != 1); return p; }
if (window.opera) { if (document.readyState==="loading") { if (window.addEventListener) window.addEventListener("DOMContentLoaded", main, false); else if (window.attachEvent) window.attachEvent("onload", main); } else if (document.readyState==="complete") { main(); } else { if (window.addEventListener) window.addEventListener("load", main, false); else if (window.attachEvent) window.attachEvent("onload", main); } } else { main(); } })();
when I try the full script, it says an 800A03F4 error with "expected /" on line 94 char 49.
Amazing work b0lt! Chill said something about BW TL members needing to step up to help, and you've just done what R1CH doesn't have the time for and made our lives so much easier ^_^ <3 <3
@Cambium
I installed your script too (successfully) but it doesn't appear to be filtering out the SC2 events? Thanks for the work anyway, hopefully I'll figure out what I'm doing wrong
On August 25 2011 12:44 Armathai wrote: Amazing work b0lt! Chill said something about BW TL members needing to step up to help, and you've just done what R1CH doesn't have the time for and made our lives so much easier ^_^ <3 <3
@Cambium
I installed your script too (successfully) but it doesn't appear to be filtering out the SC2 events? Thanks for the work anyway, hopefully I'll figure out what I'm doing wrong
That's strange, it seems to work for me.
Go to manage scripts --> calendar fix --[right click]-> edit
I split up the main script into individual scripts for each feature, I've got them up at http://code.google.com/p/teamliquidbw/source/browse/ now. Also, I polished up WhuazGoodJaggah's stream filter script a bit
On August 25 2011 14:22 Cambium wrote: To OP:
Instead of looping through all forms, you can simply refer to liquipedia via its XPath:
Is this actually any faster than looping through all the forms? There are only like 3 forms on the page, and document.forms should be completely populated as soon as the DOM is ready, shouldn't it? Using XPath goes through the entire html file again, and I'm kinda leery of using it because it's a lot more fragile than just iterating through the forms. (I'm lazy and want to minimize the amount of time I spend maintaining stuff)
On August 25 2011 15:25 b0lt wrote: I split up the main script into individual scripts for each feature, I've got them up at http://code.google.com/p/teamliquidbw/source/browse/ now. Also, I polished up WhuazGoodJaggah's stream filter script a bit
Is this actually any faster than looping through all the forms? There are only like 3 forms on the page, and document.forms should be completely populated as soon as the DOM is ready, shouldn't it? Using XPath goes through the entire html file again, and I'm kinda leery of using it because it's a lot more fragile than just iterating through the forms. (I'm lazy and want to minimize the amount of time I spend maintaining stuff)
I didn't count the number of forms, but if you say there are three, then there definitely isn't an issue with speed.
You are right about the maintenance though, xpaths are a chore.
putting your codes on google code is great but some people will not know how to download the script as when they click the link it doesn't allow them to download it instance and they have to right click raw file to download the specific file .
I made a patch for the streamlist thingy. http://code.google.com/p/teamliquidbw/issues/detail?id=1 The detection of the featured streams node is much better now (no more nextObject.firstChild.firstChild bullshit) All streams are now filled in 1 array and therefore only 1 loop is needed to separate them into featured and non featured. And a cosmetic change from . to •
On August 25 2011 18:10 writer22816 wrote: Now if only it were possible to have Power Rank, TLFE and R&S back on the main page where they belong
It's possible but it would make the script kind of slow, since it'd have to scrape a few pages before it can add those things back in. Not to mention it would take a lot of work.
On August 25 2011 18:10 writer22816 wrote: Now if only it were possible to have Power Rank, TLFE and R&S back on the main page where they belong
It's possible but it would make the script kind of slow, since it'd have to scrape a few pages before it can add those things back in. Not to mention it would take a lot of work.
It'd be ok if it got PR asynchronous (if I remember correctly, js can handle that), but yea, it's a little bit more work.
is it just me or has the replay section disappeared for anyone else?
On August 28 2011 15:17 Armathai wrote: Can someone which file to edit to get the Replays section under the BW rather than over on the right?
I'd rather have them connected, works better in my mind :D
oh thanks man it wasnt in the OP. HINT HINT to me its actually better this way, no more going to the damn bottom of TL and then to the top and back down etc... i hate having to do that in the password entry area on profiles, at least this gives me a break.
Thanks for these. I installed the first three. The "BW Liquipedia" doesn't work for me, and clicking on "Rearrange Forums" just gives me a wall of code.
On September 01 2011 10:30 NeVeR wrote: Thanks for these. I installed the first three. The "BW Liquipedia" doesn't work for me, and clicking on "Rearrange Forums" just gives me a wall of code.
If you use Firefox: 1) Click the greasemonkey icon's dropdown arrow 2) Select "New User Script" 3) Enter in a name. Greasemonkey might insist that you enter in a namespace as well. Just put anything in that box - we'll be deleting that later anyways 4) Your text editor should pop up. Delete all the text. 5) Copy paste all the code from the Google Code site. 6) Save it and you're done!
On September 02 2011 19:52 kuroshiroi wrote: The power rank scraper isn't updating my comment count any more, does it still work for somebody? I'm using Opera 11.51.
Figured out what was causing this, localStorage stores everything as strings, so it was just appending to the stored time instead of adding to it to figure out whether or not to update.
On September 02 2011 19:52 kuroshiroi wrote: The power rank scraper isn't updating my comment count any more, does it still work for somebody? I'm using Opera 11.51.
Figured out what was causing this, localStorage stores everything as strings, so it was just appending to the stored time instead of adding to it to figure out whether or not to update.
On September 12 2011 09:04 soujiro_ wrote: lil bump just installed it again this time on opera, id love to have the news at the bottom and tsl removed =)
Looks like TSL got removed and put up to the top bar.
They've also gotten around to adding an option to search BW in liquipedia now so that's cool, still need the script though to keep it on bw as a default.
Oh yeah same issue here on Opera 11.51. Odd as it was working perfectly fine a few hours ago. Perhaps this is due to the TL web page being updated (TSL is now moved to the top bar).
Thanks so much~!!! I didn't realize how much I missed having power rankings on the side until I got them back again and I was like, O.o ;( "how much I have missed thee"
On September 13 2011 13:01 Bisu-Fan wrote: Thanks so much~!!! I didn't realize how much I missed having power rankings on the side until I got them back again and I was like, O.o ;( "how much I have missed thee"
Feel the same here. The part of me that died was revived with these scripts. Thanks a lot.
I feel its worth bumping this to because TL has included the first BW related poll in over a year, and the current userscripts remove the poll section entirely.
Go into the user script code and comment out the line that declares
After messing around a bit, I just can't get the forum rearrange script to work. As far as I'm concerned it doesn't do anything. The other scripts work fine. Am I silly?
On September 17 2011 02:02 Simplistik wrote: After messing around a bit, I just can't get the forum rearrange script to work. As far as I'm concerned it doesn't do anything. The other scripts work fine. Am I silly?
What browser/version/plugin version are you using? Open up the javascript console (ctrl shift j in chrome, ctrl shift k in firefox, something in opera), clear the messages, then refresh teamliquid. Do any errors show up?
On September 17 2011 06:18 Simplistik wrote: Phew, thanks for the speedy response and thanks for the plugins.
I'm using Firefox 3.6.22 and the 2.7a version of the plugin.
The error console returns two errors: Line 77: Component is not available Line 284: n is null
If it's to do with Firefox 3 then I guess I could finally upgrade. (Do they fonts render correctly in FF 4 now?)
Do you have an old version of the script installed alongside the current one? I'm not sure what would be causing this, it works fine for me on a fresh install of the the latest version of firefox/greasemonkey.
On November 01 2011 19:01 seraphe wrote: Will there be an update to this to go along with the TL site changes? I don't want to lose power rank in the sidebar
Yeah, definitely want to keep power rank, although the rest of the sidebar is pretty great. The rearrange forums script needs to be updated the fastest imo, since being able to get rid of the sc2 section will allow for a nearly BW only TL interface.
edit: the power rank/store swapping script on the main toolbar still seems to work fine.
Thanks for this bolt. Random question, but could you make a userscript for iPad? I mostly go on TL from my iPad and it would be nice if I could use the same userscript. I.e. can you make one for 'safari'?
On November 01 2011 19:01 seraphe wrote: Will there be an update to this to go along with the TL site changes? I don't want to lose power rank in the sidebar
Yeah, definitely want to keep power rank, although the rest of the sidebar is pretty great. The rearrange forums script needs to be updated the fastest imo, since being able to get rid of the sc2 section will allow for a nearly BW only TL interface.
edit: the power rank/store swapping script on the main toolbar still seems to work fine.
You can fix all this stuff yourself since the main problem here is that polls is now gone.
Open the script, and delete
var poll = new Section("nav_poll", 1);
Moving the replay section:
move_section(replays, poll);
This obviously will not work anymore. Replace "poll" with "liquipedia" or something if you want to move it. Otherwise delete the line.
Similarly, power rank can be readded by changing
/* Readd the power rank section */ prepend_section(pr, poll);
Again, just change "poll" to another section name like "liquipedia"
On November 01 2011 19:01 seraphe wrote: Will there be an update to this to go along with the TL site changes? I don't want to lose power rank in the sidebar
Yeah, definitely want to keep power rank, although the rest of the sidebar is pretty great. The rearrange forums script needs to be updated the fastest imo, since being able to get rid of the sc2 section will allow for a nearly BW only TL interface.
edit: the power rank/store swapping script on the main toolbar still seems to work fine.
You can fix all this stuff yourself since the main problem here is that polls is now gone.
Open the script, and delete
var poll = new Section("nav_poll", 1);
Moving the replay section:
move_section(replays, poll);
This obviously will not work anymore. Replace "poll" with "liquipedia" or something if you want to move it.
Similarly, power rank can be readded by changing
/* Readd the power rank section */ prepend_section(pr, poll);
Again, just change "poll" to another section name like "liquipedia"
Thanks a bunch, I'm pretty bad when it comes to this stuff.
The rearrange forum script doesn't seem to work for me. I'm on Firefox using greasemonkey. I'm pretty bad at this stuff, so tell me if I did it wrong. I just left clicked the rearrange forums script on the 1st pg and then installed it. That should make it work, right?
On November 03 2011 05:48 JIJIyO wrote: The rearrange forum script doesn't seem to work for me. I'm on Firefox using greasemonkey. I'm pretty bad at this stuff, so tell me if I did it wrong. I just left clicked the rearrange forums script on the 1st pg and then installed it. That should make it work, right?
It stopped working for me too, so I guess it's something with the new layout that's causing that.
Hoping for a fix for the rearranage forums script and some way to get power rank back in the sidebar : )