• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:58
CEST 12:58
KST 19:58
  • 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
Team TLMC #5 - Finalists & Open Tournaments0[ASL20] Ro16 Preview Pt2: Turbulence10Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12
Community News
BSL 2025 Warsaw LAN + Legends Showmatch0Weekly Cups (Sept 8-14): herO & MaxPax split cups4WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia8Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues29
StarCraft 2
General
#1: Maru - Greatest Players of All Time Weekly Cups (Sept 8-14): herO & MaxPax split cups Team Liquid Map Contest #21 - Presented by Monster Energy SpeCial on The Tasteless Podcast Team TLMC #5 - Finalists & Open Tournaments
Tourneys
RSL: Revival, a new crowdfunded tournament series Maestros of The Game—$20k event w/ live finals in Paris Sparkling Tuna Cup - Weekly Open Tournament SC4ALL $6,000 Open LAN in Philadelphia WardiTV TL Team Map Contest #5 Tournaments
Strategy
Custom Maps
External Content
Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around
Brood War
General
ASL20 General Discussion ASL TICKET LIVE help! :D Soulkey on ASL S20 BW General Discussion NaDa's Body
Tourneys
[ASL20] Ro16 Group D [ASL20] Ro16 Group C [Megathread] Daily Proleagues BSL 2025 Warsaw LAN + Legends Showmatch
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Borderlands 3 General RTS Discussion Thread
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread UK Politics Mega-thread Canadian Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
I <=> 9
KrillinFromwales
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1608 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
RSL Revival
10:00
Season 2: Playoffs Day 5
Maru vs ReynorLIVE!
Cure vs TriGGeR
Tasteless856
Crank 600
IndyStarCraft 125
CranKy Ducklings100
3DClanTV 79
Rex77
IntoTheiNu 33
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Tasteless 856
Crank 600
IndyStarCraft 125
Rex 77
StarCraft: Brood War
Calm 8043
Bisu 1250
Horang2 640
Hyuk 425
actioN 320
Stork 313
ZerO 227
Mini 208
Pusan 195
EffOrt 176
[ Show more ]
Snow 171
Hyun 144
Light 128
Last 118
Soma 115
sorry 81
Soulkey 78
Liquid`Ret 74
ggaemo 69
ToSsGirL 57
Mind 53
HiyA 33
Free 29
Sharp 28
hero 26
Rush 19
scan(afreeca) 17
SilentControl 13
Terrorterran 13
Sexy 12
JYJ5
sas.Sziky 4
Icarus 2
Dota 2
singsing2438
XcaliburYe150
Counter-Strike
olofmeister1448
shoxiejesuss550
x6flipin486
allub195
edward16
Other Games
DeMusliM162
XaKoH 131
Pyrionflax88
B2W.Neo63
NeuroSwarm48
Trikslyr8
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 747
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 1
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1409
Other Games
• WagamamaTV189
Upcoming Events
Map Test Tournament
3m
WardiTV2
The PondCast
2h 3m
RSL Revival
23h 3m
Zoun vs Classic
Korean StarCraft League
1d 16h
BSL Open LAN 2025 - War…
1d 21h
RSL Revival
1d 23h
BSL Open LAN 2025 - War…
2 days
RSL Revival
2 days
Online Event
3 days
Wardi Open
4 days
[ Show More ]
Monday Night Weeklies
4 days
Sparkling Tuna Cup
4 days
LiuLi Cup
6 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
Chzzk MurlocKing SC1 vs SC2 Cup #2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
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

Upcoming

2025 Chongqing Offline CUP
BSL World Championship of Poland 2025
IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
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.