File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,13 @@ Repaginator.prototype = {
158158 this . query = "" ;
159159
160160 ( function buildQuery ( ) {
161+ // Homestuck hack
162+ if ( el . href . contains ( "mspaintadventures.com" ) ) {
163+ this . query = "//center[position() = 1]/table[position() = 1]/tbody[position() = 1]/tr[position() = 2]/td[position() = 1]/table[position() = 1]/tbody[position() = 1]/tr[position() = 1]/td[position() = 1]/table[position() = 1]/tbody[position() = 1]/tr[position() = 2]/td[position() = 1]/center[position() = 1]/table[position() = 1]/tbody[position() = 1]/tr[position() = 6]/td[position() = 1]/table[position() = 1]/tbody[position() = 1]/tr[position() = 1]/td[position() = 1]/font[position() = 1]/a[position() = 1]" ;
164+ this . numberToken = / ( \[ @ h r e f = ' .* ) ( \d + ) ( .* ?' \] ) / ;
165+ return ;
166+ }
167+
161168 // See if the anchor has an ID
162169 // Note: cannot use the id() xpath function here, as there might
163170 // be duplicate ids
You can’t perform that action at this time.
0 commit comments