• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:59
CEST 23:59
KST 06:59
  • 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
TL.net Map Contest #21: Voting8[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)80Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition325.0.15 Balance Patch Notes (Live version)119
StarCraft 2
General
TL.net Map Contest #21: Voting Revisiting the game after10 years and wow it's bad herO Talks: Poor Performance at EWC and more... Weekly Cups (Oct 6-12): Four star herO Ladder Impersonation (only maybe)
Tourneys
WardiTV Mondays RSL Offline Finals Dates + Ticket Sales! SC4ALL $6,000 Open LAN in Philadelphia Crank Gathers Season 2: SC II Pro Teams LiuLi Cup - September 2025 Tournaments
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
BW General Discussion Question regarding recent ASL Bisu vs Larva game [Interview] Grrrr... 2024 Pros React To: BarrackS + FlaSh Coaching vs SnOw BW caster Sayle
Tourneys
[ASL20] Semifinal B SC4ALL $1,500 Open Bracket LAN [Megathread] Daily Proleagues [ASL20] Semifinal A
Strategy
BW - ajfirecracker Strategy & Training Current Meta Relatively freeroll strategies Siegecraft - a new perspective
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
[Manga] One Piece Series you have seen recently... Anime Discussion Thread Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion 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 Recent Gifted Posts
Blogs
Rocket League: Traits, Abili…
TrAiDoS
Inbreeding: Why Do We Do It…
Peanutsc
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1402 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
Zurich15353 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
Romania8437 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
The PiG Daily
21:00
Best Games of SC
Rogue vs Classic
MaxPax vs Clem
ByuN vs Clem
PiGStarcraft392
LiquipediaDiscussion
3D!Clan Event
16:00
Kyuub1's CHallenge 2
3DClanTV 82
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft392
StarCraft: Brood War
Britney 17276
firebathero 55
NaDa 8
Dota 2
PGG 150
Super Smash Bros
AZ_Axe65
Heroes of the Storm
Grubby2552
Liquid`Hasu415
Other Games
summit1g6687
ScreaM1392
Skadoodle255
Pyrionflax200
mouzStarbuck152
C9.Mang0126
Dewaltoss37
Trikslyr35
PPMD29
Organizations
Other Games
gamesdonequick3697
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• StrangeGG 57
• musti20045 42
• Hupsaiya 40
• davetesta33
• Kozan
• AfreecaTV YouTube
• intothetv
• sooper7s
• IndyKCrew
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Azhi_Dahaki13
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Other Games
• imaqtpie1408
• Shiphtur195
• WagamamaTV179
Upcoming Events
CranKy Ducklings
12h 1m
Safe House 2
19h 1m
Sparkling Tuna Cup
1d 12h
Safe House 2
1d 19h
Monday Night Weeklies
2 days
Tenacious Turtle Tussle
5 days
The PondCast
5 days
Online Event
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
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

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 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.