• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 13:13
CEST 19:13
KST 02:13
  • 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
[ASL21] Ro24 Preview Pt2: News Flash8[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy12ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
Weekly Cups (March 23-29): herO takes triple5Aligulac acquired by REPLAYMAN.com/Stego Research3Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool49Weekly Cups (March 9-15): herO, Clem, ByuN win4
StarCraft 2
General
What mix of new & old maps do you want in the next ladder pool? (SC2) herO wins SC2 All-Star Invitational Weekly Cups (March 23-29): herO takes triple Team Liquid Map Contest #22 - Presented by Monster Energy Aligulac acquired by REPLAYMAN.com/Stego Research
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays World University TeamLeague (500$+) | Signups Open
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
Mutation # 519 Inner Power The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat
Brood War
General
[ASL21] Ro24 Preview Pt2: News Flash BGH Auto Balance -> http://bghmmr.eu/ Pros React To: SoulKey vs Ample ASL21 General Discussion RepMastered™: replay sharing and analyzer site
Tourneys
[ASL21] Ro24 Group E [Megathread] Daily Proleagues [ASL21] Ro24 Group D [ASL21] Ro24 Group C
Strategy
What's the deal with APM & what's its true value Fighting Spirit mining rates Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game Nintendo Switch Thread General RTS Discussion Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
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
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI European Politico-economics QA Mega-thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1878 users

TL BW Userscript - Page 6

Forum Index > BW General
Post a Reply
Prev 1 4 5 6 7 8 9 Next All
b0lt
Profile Joined March 2009
United States790 Posts
August 25 2011 06:25 GMT
#101
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:


var bwlpXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table[4]/tbody/tr/td/form";
node = findXPathNode( bwlpXPath );
node.action = "h__p://wiki.teamliquid.net/starcraft/index.php";


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)
Cambium
Profile Blog Joined June 2004
United States16368 Posts
August 25 2011 07:04 GMT
#102
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


Show nested quote +
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:


var bwlpXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table[4]/tbody/tr/td/form";
node = findXPathNode( bwlpXPath );
node.action = "h__p://wiki.teamliquid.net/starcraft/index.php";


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.
When you want something, all the universe conspires in helping you to achieve it.
Sawamura
Profile Blog Joined August 2010
Malaysia7602 Posts
August 25 2011 07:20 GMT
#103
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 .
BW/KT Forever R.I.P KT.Violet dearly missed ..
WhuazGoodJaggah
Profile Blog Joined January 2009
Lesotho777 Posts
August 25 2011 08:16 GMT
#104
@b0lt

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 •
small dicks have great firepower
writer22816
Profile Blog Joined September 2008
United States5775 Posts
August 25 2011 09:10 GMT
#105
Now if only it were possible to have Power Rank, TLFE and R&S back on the main page where they belong
8/4/12 never forget, never forgive.
kuroshiroi
Profile Joined November 2010
3149 Posts
August 25 2011 10:18 GMT
#106
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.
Fly Jaedong, fly!
Necosarius
Profile Blog Joined September 2009
Sweden4042 Posts
August 26 2011 20:55 GMT
#107
Wow I Have to use this O_O Thank you for doing this <3
quirinus
Profile Blog Joined May 2007
Croatia2489 Posts
August 26 2011 21:06 GMT
#108
On August 25 2011 19:18 kuroshiroi wrote:
Show nested quote +
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.
All candles lit within him, and there was purity. | First auto-promoted BW LP editor.
PUPATREE
Profile Joined August 2009
340 Posts
August 27 2011 00:16 GMT
#109
That user streams script is fucking wonderful. Thank you.
ㅋㄲㅈㅁ
rift
Profile Blog Joined September 2007
1819 Posts
August 27 2011 23:09 GMT
#110
Can you replicate this script, which removes the SC2 forums entirely from the sidebar? https://chrome.google.com/webstore/detail/fchfgjknoimegjpgekahllojjfilcdno#
quirinus
Profile Blog Joined May 2007
Croatia2489 Posts
August 28 2011 00:14 GMT
#111
On August 28 2011 08:09 rift wrote:
Can you replicate this script, which removes the SC2 forums entirely from the sidebar? https://chrome.google.com/webstore/detail/fchfgjknoimegjpgekahllojjfilcdno#


http://www.teamliquid.net/forum/viewpost.php?post_id=11049981

just add:
remove_section(sc2);
with notepad.
All candles lit within him, and there was purity. | First auto-promoted BW LP editor.
fishbowl
Profile Joined January 2010
United States1575 Posts
August 28 2011 00:40 GMT
#112
You sir, are awesome. Thanks for the script.
Armathai
Profile Joined October 2007
1023 Posts
August 28 2011 06:17 GMT
#113
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

Looking for ArcticCerebrate formerly from @USEast
WhuazGoodJaggah
Profile Blog Joined January 2009
Lesotho777 Posts
August 28 2011 06:57 GMT
#114
edit the rearrange_forums.user.js

Search for:
/* Move replays to above poll */
move_section(replays, poll);

replace with:
/* Move replays below bw */
move_section(replays, bw);
move_section(bw, replays);
small dicks have great firepower
wishbones
Profile Blog Joined April 2009
Canada2600 Posts
Last Edited: 2011-08-28 07:27:37
August 28 2011 07:15 GMT
#115
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.
joined TL.net in 2006 (aka GMer) - http://www.teamliquid.net/forum/viewmessage.php?topic_id=41944#2
WhuazGoodJaggah
Profile Blog Joined January 2009
Lesotho777 Posts
Last Edited: 2011-08-28 10:15:02
August 28 2011 10:10 GMT
#116
Submited another patch for these scripts: http://code.google.com/p/teamliquidbw/issues/detail?id=2

+ Show Spoiler +
Added another @exclude path (for the ad frame) (threw always an error)
Added SubSections
Added a count argument for nextObject and previousObject


Now it's possible to just remove certain sub sections, like Dota 2 or League of Legends.

You can get this version here or wait until b0lt updates the main repo.
small dicks have great firepower
b0lt
Profile Joined March 2009
United States790 Posts
Last Edited: 2011-08-29 21:53:21
August 29 2011 21:52 GMT
#117
On August 28 2011 19:10 WhuazGoodJaggah wrote:
Submited another patch for these scripts: http://code.google.com/p/teamliquidbw/issues/detail?id=2

+ Show Spoiler +
Added another @exclude path (for the ad frame) (threw always an error)
Added SubSections
Added a count argument for nextObject and previousObject


Now it's possible to just remove certain sub sections, like Dota 2 or League of Legends.

You can get this version here or wait until b0lt updates the main repo.


Merged this, also added power rank scraping while I was at it:

[image loading]
Wolf
Profile Blog Joined April 2010
Korea (South)3290 Posts
August 30 2011 08:16 GMT
#118
Going to try this again tonight most likely. Crossing my fingers!
Commentatorhttp://twitter.com/proxywolf
TL+ Member
kuroshiroi
Profile Joined November 2010
3149 Posts
August 30 2011 16:22 GMT
#119
The re-added PR works great, thanks a bunch

Also, bumpity bump.
Fly Jaedong, fly!
WhuazGoodJaggah
Profile Blog Joined January 2009
Lesotho777 Posts
August 31 2011 06:57 GMT
#120
there is a small bug in the Section code.

+ Show Spoiler +
function Section(id, count) {
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, x));
}
}
small dicks have great firepower
Prev 1 4 5 6 7 8 9 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 6h 47m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech154
UpATreeSC 47
MindelVK 19
elazer 1
StarCraft: Brood War
Bisu 2102
EffOrt 1285
Mini 552
Stork 499
Larva 442
firebathero 335
actioN 285
Snow 257
Hyuk 134
hero 91
[ Show more ]
Aegong 80
Dewaltoss 64
Barracks 50
Backho 47
IntoTheRainbow 34
ggaemo 30
Shine 30
Terrorterran 21
Dota 2
qojqva3005
capcasts39
Counter-Strike
fl0m1750
byalli293
Other Games
FrodaN2371
Grubby2025
Liquid`RaSZi1555
B2W.Neo822
Beastyqt375
DeMusliM304
ceh9229
Hui .124
QueenE101
RotterdaM94
Trikslyr55
Mew2King48
Organizations
StarCraft 2
angryscii 1
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Reevou 8
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• HerbMon 28
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV883
League of Legends
• Nemesis3931
• TFBlade1242
Other Games
• Shiphtur195
• imaqtpie109
Upcoming Events
PiGosaur Cup
6h 47m
Replay Cast
15h 47m
Afreeca Starleague
16h 47m
BeSt vs Leta
Queen vs Jaedong
Kung Fu Cup
17h 47m
Replay Cast
1d 6h
The PondCast
1d 16h
OSC
2 days
RSL Revival
2 days
TriGGeR vs Cure
ByuN vs Rogue
Replay Cast
3 days
RSL Revival
3 days
Maru vs MaxPax
[ Show More ]
BSL
4 days
RSL Revival
4 days
uThermal 2v2 Circuit
4 days
BSL
5 days
Replay Cast
6 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Acropolis #4 - TS6
WardiTV Winter 2026
NationLESS Cup

Ongoing

BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
RSL Revival: Season 4
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Season 20: Qualifier 2
Escore Tournament S2: W1
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
StarCraft2 Community Team League 2026 Spring
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 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 © 2026 TLnet. All Rights Reserved.