• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:51
CEST 11:51
KST 18:51
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6Code S RO8 Preview: herO, Zoun, Bunny, Classic7
Community News
Weekly Cups (June 23-29): Reynor in world title form?7FEL Cracov 2025 (July 27) - $8000 live event13Esports World Cup 2025 - Final Player Roster14Weekly Cups (June 16-22): Clem strikes back1Weekly Cups (June 9-15): herO doubles on GSL week4
StarCraft 2
General
Weekly Cups (June 23-29): Reynor in world title form? StarCraft Mass Recall: SC1 campaigns on SC2 thread The SCII GOAT: A statistical Evaluation How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster
Tourneys
HomeStory Cup 27 (June 27-29) WardiTV Mondays SOOPer7s Showmatches 2025 FEL Cracov 2025 (July 27) - $8000 live event $200 Biweekly - StarCraft Evolution League #1
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers [G] Darkgrid Layout
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion StarCraft & BroodWar Campaign Speedrun Quest ASL20 Preliminary Maps Unit and Spell Similarities
Tourneys
[BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [Megathread] Daily Proleagues [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Things Aren’t Peaceful in Palestine Stop Killing Games - European Citizens Initiative Effective Commercial Building Cost Assessment Tips Trading/Investing Thread US Politics Mega-thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 576 users

TL BW Userscript

Forum Index > BW General
Post a Reply
1 2 3 4 5 7 8 9 Next All
b0lt
Profile Joined March 2009
United States790 Posts
Last Edited: 2011-09-12 07:14:16
August 24 2011 12:05 GMT
#1
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.

[image loading]
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

2.0: Abstracted the section relocation stuff
Enderbantoo
Profile Blog Joined December 2009
United States465 Posts
August 24 2011 12:10 GMT
#2
Wow this is actually really cool. Thanks a ton, will be using this
At the biggest upset of all of bw, Shanghai SPL finals 2011
Sawamura
Profile Blog Joined August 2010
Malaysia7602 Posts
August 24 2011 12:13 GMT
#3
bless you my friend
BW/KT Forever R.I.P KT.Violet dearly missed ..
Elroi
Profile Joined August 2009
Sweden5595 Posts
August 24 2011 12:14 GMT
#4
This seems like a very good idea.
"To all eSports fans, I want to be remembered as a progamer who can make something out of nothing, and someone who always does his best. I think that is the right way of living, and I'm always doing my best to follow that." - Jaedong. /watch?v=jfghAzJqAp0
bITt.mAN
Profile Blog Joined March 2009
Switzerland3693 Posts
August 24 2011 12:18 GMT
#5
This is a better place to put it (:, I'm sure to use this, but please implement one more thing:

Have an option to filter out all SC2 streams, which can be ?toggled? so that the stream list is actually readable.
BW4LYF . . . . . . PM me, I LOVE PMs. . . . . . Long live "NaDa's Body" . . . . . . Fantasy | Bisu/Best | Jaedong . . . . .
BobTheBuilder1377
Profile Joined August 2011
Somalia335 Posts
August 24 2011 12:30 GMT
#6
Thank you sir! We appreciate your work.
kuroshiroi
Profile Joined November 2010
3149 Posts
August 24 2011 12:32 GMT
#7
I enhanced it for Opera, http://pastebin.com/7kdgzvms

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.
Fly Jaedong, fly!
zatic
Profile Blog Joined September 2007
Zurich15325 Posts
August 24 2011 12:45 GMT
#8
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!
ModeratorI know Teamliquid is known as a massive building
JustPassingBy
Profile Blog Joined January 2011
10776 Posts
August 24 2011 12:48 GMT
#9
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?
Black[CAT]
Profile Blog Joined July 2010
Malaysia2589 Posts
August 24 2011 12:49 GMT
#10
Erm, how to remove the script when I dont want it any longer? Never used greasemonkey before...
You mean ESPORTS isnt a synonym for SC2? ¯\_(ツ)_/¯ -Proud owner of a Filco Majestouch 2 with Cherry Blue Switches- BW or SC2? Why not both?
Sawamura
Profile Blog Joined August 2010
Malaysia7602 Posts
Last Edited: 2011-08-24 12:55:45
August 24 2011 12:53 GMT
#11
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 .
BW/KT Forever R.I.P KT.Violet dearly missed ..
b0lt
Profile Joined March 2009
United States790 Posts
August 24 2011 12:58 GMT
#12
On August 24 2011 21:32 kuroshiroi wrote:
I enhanced it for Opera, http://pastebin.com/7kdgzvms

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.
b0lt
Profile Joined March 2009
United States790 Posts
Last Edited: 2011-08-24 13:04:39
August 24 2011 12:59 GMT
#13
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:53 Sawamura wrote:
Show nested quote +
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";
}

/* Change default tlpd search to BW (Korea) */
document.forms.namedItem('frm_tlpd_search').elements.namedItem("type").children[3].selected = true;

/* 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);
}
OpticalShot
Profile Blog Joined October 2009
Canada6330 Posts
August 24 2011 13:11 GMT
#14
AWESOME
Just got it.
Bless you sir.
[TLMS] REBOOT
Sawamura
Profile Blog Joined August 2010
Malaysia7602 Posts
Last Edited: 2011-08-24 13:15:37
August 24 2011 13:13 GMT
#15
thanks bolt wordpad did the job .
BW/KT Forever R.I.P KT.Violet dearly missed ..
prosatan
Profile Joined September 2009
Romania7964 Posts
August 24 2011 13:15 GMT
#16
Thank you b0lt !
Happy Birthday Zatic !!
Lee JaeDong Fighting! The only church that illuminates is the one that burns.
Chef
Profile Blog Joined August 2005
10810 Posts
August 24 2011 13:16 GMT
#17
It's good to have SC2 in it's rightful place. Below Brood War
LEGEND!! LEGEND!!
mdb
Profile Blog Joined February 2003
Bulgaria4059 Posts
August 24 2011 13:20 GMT
#18
Thanks, absolutely amazing.
kuroshiroi
Profile Joined November 2010
3149 Posts
August 24 2011 13:20 GMT
#19
On August 24 2011 21:58 b0lt wrote:
Show nested quote +
On August 24 2011 21:32 kuroshiroi wrote:
I enhanced it for Opera, http://pastebin.com/7kdgzvms

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
Fly Jaedong, fly!
Chef
Profile Blog Joined August 2005
10810 Posts
Last Edited: 2011-08-24 13:36:30
August 24 2011 13:23 GMT
#20
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!
LEGEND!! LEGEND!!
1 2 3 4 5 7 8 9 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 1h 9m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Calm 9210
Sea 3191
Flash 1645
TY 668
Zeus 224
Soma 192
Rush 138
Pusan 138
Stork 91
ToSsGirL 79
[ Show more ]
EffOrt 67
Shinee 53
Sharp 34
ZerO 33
Aegong 29
Movie 19
Mind 17
Noble 11
Free 9
ajuk12(nOOB) 7
Hm[arnc] 3
Bale 2
Britney 0
Dota 2
420jenkins659
BananaSlamJamma644
XcaliburYe538
XaKoH 453
League of Legends
singsing920
Counter-Strike
Stewie2K1213
shoxiejesuss734
Super Smash Bros
Mew2King125
Other Games
shahzam1275
ceh9770
Happy366
crisheroes254
KnowMe247
Pyrionflax162
ZerO(Twitch)11
Organizations
Other Games
gamesdonequick690
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• LUISG 34
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt461
Upcoming Events
Wardi Open
1h 9m
PiGosaur Monday
14h 9m
The PondCast
1d
Replay Cast
1d 14h
RSL Revival
2 days
ByuN vs Classic
Clem vs Cham
WardiTV European League
2 days
Replay Cast
2 days
RSL Revival
3 days
herO vs SHIN
Reynor vs Cure
WardiTV European League
3 days
FEL
3 days
[ Show More ]
Korean StarCraft League
3 days
CranKy Ducklings
4 days
RSL Revival
4 days
FEL
4 days
Sparkling Tuna Cup
5 days
RSL Revival
5 days
FEL
5 days
BSL: ProLeague
5 days
Dewalt vs Bonyth
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.