• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 15:49
CET 21:49
KST 05:49
  • 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
RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13
Community News
Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation13Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge [TLMC] Fall/Winter 2025 Ladder Map Rotation Mech is the composition that needs teleportation t RSL Season 3 - RO16 Groups C & D Preview
Tourneys
2025 RSL Offline Finals Dates + Ticket Sales! $5,000+ WardiTV 2025 Championship RSL Revival: Season 3 Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle What happened to TvZ on Retro? BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review BW General Discussion
Tourneys
[BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET
Strategy
How to stay on top of macro? Current Meta PvZ map balance Simple Questions, Simple Answers
Other Games
General Games
Clair Obscur - Expedition 33 Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Path of Exile Nintendo Switch Thread
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1837 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
Sweden5599 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
Zurich15355 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
Romania8495 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
Monday Night Weeklies
17:00
#30
MaxPax vs ClemLIVE!
ByuN vs TBD
RotterdaM1118
TKL 515
SteadfastSC245
IndyStarCraft 219
BRAT_OK 126
ZombieGrub111
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 1118
TKL 515
SteadfastSC 245
IndyStarCraft 219
BRAT_OK 126
ZombieGrub111
UpATreeSC 87
JuggernautJason69
StarCraft: Brood War
Britney 21607
sas.Sziky 47
scan(afreeca) 43
yabsab 10
Dota 2
qojqva3276
Counter-Strike
fl0m1030
ScreaM951
kRYSTAL_18
Other Games
Grubby4957
Beastyqt893
shahzam332
Trikslyr62
Organizations
Other Games
BasetradeTV38
Algost 4
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• kabyraGe 174
• StrangeGG 56
• Reevou 4
• IndyKCrew
• AfreecaTV YouTube
• intothetv
• Kozan
• sooper7s
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• FirePhoenix4
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Other Games
• imaqtpie1113
• WagamamaTV444
• Shiphtur300
Upcoming Events
Replay Cast
2h 11m
ChoboTeamLeague
4h 11m
WardiTV Korean Royale
15h 11m
BSL: GosuLeague
1d
PiGosaur Cup
1d 4h
The PondCast
1d 13h
Replay Cast
2 days
RSL Revival
2 days
herO vs Zoun
Classic vs Reynor
Maru vs SHIN
MaxPax vs TriGGeR
BSL: GosuLeague
3 days
RSL Revival
3 days
[ Show More ]
WardiTV Korean Royale
3 days
RSL Revival
4 days
WardiTV Korean Royale
4 days
IPSL
4 days
Julia vs Artosis
JDConan vs DragOn
RSL Revival
5 days
Wardi Open
5 days
IPSL
5 days
StRyKeR vs OldBoy
Sziky vs Tarson
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-14
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
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.