• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:45
CEST 21:45
KST 04:45
  • 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
Power Rank - Esports World Cup 202573RSL Season 1 - Final Week9[ASL19] Finals Recap: Standing Tall15HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16
Community News
Google Play ASL (Season 20) Announced13BSL Team Wars - Bonyth, Dewalt, Hawk & Sziky teams10Weekly Cups (July 14-20): Final Check-up0Esports World Cup 2025 - Brackets Revealed19Weekly Cups (July 7-13): Classic continues to roll8
StarCraft 2
General
What tournaments are world championships? I offer completely free coaching services #1: Maru - Greatest Players of All Time Power Rank - Esports World Cup 2025 Server Blocker
Tourneys
Esports World Cup 2025 $25,000 Streamerzone StarCraft Pro Series announced $5,000 WardiTV Summer Championship 2025 WardiTV Mondays FEL Cracov 2025 (July 27) - $8000 live event
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation #239 Bad Weather Mutation # 483 Kill Bot Wars Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Google Play ASL (Season 20) Announced Dewalt's Show Matches in China Simple editing of Brood War save files? (.mlx) Ginuda's JaeDong Interview Series
Tourneys
[Megathread] Daily Proleagues [BSL20] Non-Korean Championship 4x BSL + 4x China CSL Xiamen International Invitational [CSLPRO] It's CSLAN Season! - Last Chance
Strategy
[G] Mineral Boosting Does 1 second matter in StarCraft? Simple Questions, Simple Answers
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Total Annihilation Server - TAForever [MMORPG] Tree of Savior (Successor of Ragnarok) Path of Exile
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
US Politics Mega-thread Stop Killing Games - European Citizens Initiative Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Post Pic of your Favorite Food!
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
[\m/] Heavy Metal Thread Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion
Sports
Formula 1 Discussion 2024 - 2025 Football Thread TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
Ping To Win? Pings And Their…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Socialism Anyone?
GreenHorizons
Eight Anniversary as a TL…
Mizenhauer
Customize Sidebar...

Website Feedback

Closed Threads



Active: 697 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
Zurich15326 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
Romania8023 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
BSL20 Non-Korean Champi…
18:00
RO8 Round Robin Group - Day 3
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
ZZZero.O377
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SpeCial 419
BRAT_OK 215
JuggernautJason194
MindelVK 24
StarCraft: Brood War
Britney 16122
ZZZero.O 377
Aegong 75
HiyA 35
910 7
Counter-Strike
fl0m5373
flusha808
oskar345
Super Smash Bros
hungrybox1449
Mew2King212
Westballz61
Heroes of the Storm
Khaldor626
Liquid`Hasu589
Other Games
Grubby4305
FrodaN1977
Dendi1164
Sick181
KnowMe151
QueenE123
ProTech68
Trikslyr55
Organizations
Other Games
gamesdonequick2937
StarCraft 2
angryscii 44
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• printf 106
• StrangeGG 78
• davetesta61
• Adnapsc2 8
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• FirePhoenix6
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21214
League of Legends
• Nemesis5780
• Doublelift287
Other Games
• imaqtpie1508
Upcoming Events
FEL
13h 15m
BSL20 Non-Korean Champi…
18h 15m
BSL20 Non-Korean Champi…
22h 15m
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Sparkling Tuna Cup
2 days
Online Event
2 days
uThermal 2v2 Circuit
3 days
The PondCast
4 days
Replay Cast
5 days
Korean StarCraft League
6 days
CranKy Ducklings
6 days
Liquipedia Results

Completed

CSL Xiamen Invitational
Esports World Cup 2025
Murky Cup #2

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
BSL Team Wars
CSLPRO Last Chance 2025
CC Div. A S7
Underdog Cup #2
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25

Upcoming

ASL Season 20: Qualifier #1
ASL Season 20: Qualifier #2
ASL Season 20
CSLPRO Chat StarLAN 3
BSL Season 21
RSL Revival: Season 2
Maestros of the Game
SEL Season 2 Championship
WardiTV Summer 2025
uThermal 2v2 Main Event
FEL Cracov 2025
HCC Europe
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
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.