• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 03:23
CEST 09:23
KST 16:23
  • 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
[ASL19] Finals Recap: Standing Tall10HomeStory 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 Energy6
Community News
Weekly Cups (June 30 - July 6): Classic Doubles4[BSL20] Non-Korean Championship 4x BSL + 4x China9Flash Announces Hiatus From ASL66Weekly Cups (June 23-29): Reynor in world title form?14FEL Cracov 2025 (July 27) - $8000 live event22
StarCraft 2
General
How Esports Is Reshaping the Future of Competitive The GOAT ranking of GOAT rankings Weekly Cups (June 30 - July 6): Classic Doubles The SCII GOAT: A statistical Evaluation Weekly Cups (June 23-29): Reynor in world title form?
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays Korean Starcraft League Week 77
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
i aint gon lie to u bruh... BGH Auto Balance -> http://bghmmr.eu/ ASL20 Preliminary Maps [ASL19] Finals Recap: Standing Tall SC uni coach streams logging into betting site
Tourneys
[BSL20] Non-Korean Championship 4x BSL + 4x China [BSL20] Grand Finals - Sunday 20:00 CET CSL Xiamen International Invitational The Casual Games of the Week Thread
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread 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
Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2025! US Politics Mega-thread Russo-Ukrainian War Thread Summer Games Done Quick 2024!
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread 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
momentary artworks from des…
tankgirl
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 669 users

XPath / Autopager Question

Blogs > JeeJee
Post a Reply
1 2 Next All
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2009-12-08 03:32:24
December 08 2009 03:29 GMT
#1
Hiyo~
Long story short, I recently found out about Autopager firefox addon and am trying to get it to work with TL. Unfortunately I have zero XPath experience, so here's where you guys come in =D

Autopager is basically an addon that, for multi-page websites, lets you scroll down to the bottom, and automatically load the next page as part of current html, so you essentially get infinite scrolling (kind of like the All link but on-demand)

To do this it needs 2 things: the url pattern and what to load. The second part is easy, the first one I'm having trouble with..

Here's the default script it presents me with
//a[@title='Next Page (2)' and (text()='Next')]

It basically looks for a link whose Alt Text is Next Page (2) and text is Next and is a subset of http://www.teamliquid.net/forum/viewmessage.php? This works well for the first page and doesn't work for any other page, because the Alt Txt becomes Next Page (3) for the second page, Next Page (4) for the third page, etc

I'm trying to use the starts-with function so that it essentially works like "@title starts-with 'Next Page' and text is Next" but can't figure it out. I got something like
//a[starts-with(@title, 'Next Page') and (text()='Next')]
but it's not working because I think it doesn't link @title to the link.. not sure.

Any experts here? =D

+ Show Spoiler +
Alternatively maybe those Alt Txts could just be changed to say Next Page? ^_^


(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Elemenope
Profile Blog Joined March 2006
Burkina Faso1704 Posts
December 08 2009 03:52 GMT
#2
Sup jeejee ze
In DotA you could
Nitrogen
Profile Blog Joined February 2008
United States5345 Posts
December 08 2009 03:53 GMT
#3
hey jeejee, i can't really help you with this, but if i know one thing for certain, it's that your name is jeejee.
UNFUCK YOURSELF
geegee1
Profile Blog Joined April 2009
United States618 Posts
December 08 2009 03:56 GMT
#4
hey hey my name is geegee1 LOLOL
pew pew
Nitrogen
Profile Blog Joined February 2008
United States5345 Posts
December 08 2009 03:57 GMT
#5
what the fuck
UNFUCK YOURSELF
Elemenope
Profile Blog Joined March 2006
Burkina Faso1704 Posts
December 08 2009 03:57 GMT
#6
wow are you fucking serious ze?
In DotA you could
SonuvBob
Profile Blog Joined October 2006
Aiur21549 Posts
December 08 2009 04:03 GMT
#7
Maybe try 'Next Page (*)'?
Administrator
Elemenope
Profile Blog Joined March 2006
Burkina Faso1704 Posts
December 08 2009 04:06 GMT
#8
Bob is such a silly silly person ze
In DotA you could
SonuvBob
Profile Blog Joined October 2006
Aiur21549 Posts
December 08 2009 04:15 GMT
#9
Keep the trash in the dota thread ze
Administrator
onmach
Profile Blog Joined March 2009
United States1241 Posts
December 08 2009 04:26 GMT
#10
This works:

//a[text() = 'Next' and contains(@title, 'Next Page')]


A bit more thorough:
//a[text() = 'Next' and contains(@title, 'Next Page') and contains(@href, 'viewmessage')]
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2009-12-08 04:29:22
December 08 2009 04:28 GMT
#11
On December 08 2009 13:03 SonuvBob wrote:
Maybe try 'Next Page (*)'?


the quotes seem to be treating it as a literal asterisk rather than a regex symbol
i tried \* and then i tried separating .. made a typo and it worked
//a[@title='Next Page ('=*+')' and (text()='Next')]


no idea why this works. i meant to put +'s on both sides, but that doesn't work.
oh well whatever, problem fixed =D

but onmach's solution is cleaner and i'll be using that instead
tyvm ^_^
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Elemenope
Profile Blog Joined March 2006
Burkina Faso1704 Posts
December 08 2009 04:29 GMT
#12
WHERE'S THE SUP BACK JEEJEE, WHERE IS IT ZE?
In DotA you could
onmach
Profile Blog Joined March 2009
United States1241 Posts
December 08 2009 04:35 GMT
#13
This is an awesome extension, by the way. Thanks for the tip.
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
December 08 2009 04:36 GMT
#14
oh why the devil are blogs coded differently
good thing it's just one extra line <3

and @ dota guys
this isn't the dota thread, i believe there are standards on TL re: posting outside that thread
and i'm still shinbi you jerkwads.
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Elemenope
Profile Blog Joined March 2006
Burkina Faso1704 Posts
December 08 2009 04:41 GMT
#15
Then why is charliemurphy able to post ze
In DotA you could
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
December 08 2009 04:46 GMT
#16
yeah good point.
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
onmach
Profile Blog Joined March 2009
United States1241 Posts
December 08 2009 04:57 GMT
#17
I had to tweak a few things to get it to work just right.

For url pattern, enable regexp and use this:
http://www.teamliquid.net/(forum|blogs)/view(message|blog)\.php.*


For link xpath:
//a[text() = 'Next' and contains(@title, 'Next Page') and contains(@href, 'view')]


For content xpath:
//td[@valign="top"]//table[@width=600]


Sure makes following the fitness thread easier.
SonuvBob
Profile Blog Joined October 2006
Aiur21549 Posts
December 08 2009 05:26 GMT
#18
On December 08 2009 13:41 Elemenope wrote:
Then why is charliemurphy able to post ze

He's only able to post about half the time :p
Administrator
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
December 08 2009 05:55 GMT
#19
random followup question (probably @onmach )
currently my next page loads at the top of my current one rather than the bottom -- any way to change this? (i.e. not make it load the next page until i've reached the bottom of the current one)
i've tried experimenting with "paging when space is less than X window heights" but that option doesn't seem to do anything at all >.>
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
ForTheSwarm
Profile Blog Joined April 2009
United States556 Posts
December 08 2009 06:33 GMT
#20
On December 08 2009 14:26 SonuvBob wrote:
Show nested quote +
On December 08 2009 13:41 Elemenope wrote:
Then why is charliemurphy able to post ze

He's only able to post about half the time :p


Ha ha ha. So true too, lol.
Whenever I see a dropship, my asshole tingles, because it knows whats coming... - TheAntZ
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 2h 38m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
GuemChi 1232
actioN 1066
PianO 253
Tasteless 247
Leta 217
Soma 153
Dewaltoss 84
EffOrt 58
Sacsri 34
Movie 33
[ Show more ]
yabsab 23
Free 22
Bale 15
Dota 2
ODPixel327
XcaliburYe260
League of Legends
JimRising 640
Counter-Strike
Stewie2K1815
shoxiejesuss95
Other Games
summit1g8920
Liquid`RaSZi136
SortOf111
Mew2King84
Organizations
Other Games
gamesdonequick13989
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH368
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2108
League of Legends
• Lourlo1325
• Rush1321
• HappyZerGling138
Upcoming Events
Sparkling Tuna Cup
2h 38m
WardiTV European League
8h 38m
MaNa vs sebesdes
Mixu vs Fjant
ByuN vs HeRoMaRinE
ShoWTimE vs goblin
Gerald vs Babymarine
Krystianer vs YoungYakov
PiGosaur Monday
16h 38m
The PondCast
1d 2h
WardiTV European League
1d 4h
Jumy vs NightPhoenix
Percival vs Nicoract
ArT vs HiGhDrA
MaxPax vs Harstem
Scarlett vs Shameless
SKillous vs uThermal
uThermal 2v2 Circuit
1d 8h
Replay Cast
1d 16h
RSL Revival
2 days
ByuN vs SHIN
Clem vs Reynor
Replay Cast
2 days
RSL Revival
3 days
Classic vs Cure
[ Show More ]
FEL
3 days
RSL Revival
4 days
FEL
4 days
FEL
4 days
CSO Cup
4 days
BSL20 Non-Korean Champi…
4 days
Bonyth vs QiaoGege
Dewalt vs Fengzi
Hawk vs Zhanhun
Sziky vs Mihu
Mihu vs QiaoGege
Zhanhun vs Sziky
Fengzi vs Hawk
Sparkling Tuna Cup
5 days
RSL Revival
5 days
FEL
5 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs Dewalt
QiaoGege vs Dewalt
Hawk vs Bonyth
Sziky vs Fengzi
Mihu vs Zhanhun
QiaoGege vs Zhanhun
Fengzi vs Mihu
Liquipedia Results

Completed

BSL Season 20
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
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

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
CSL Xiamen Invitational
2025 ACS Season 2
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.