File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ Repaginator.prototype = {
156156
157157 ( function buildQuery ( ) {
158158 // Homestuck hack
159- if ( el . href . contains ( "mspaintadventures.com" ) ) {
159+ if ( el . href . includes ( "mspaintadventures.com" ) ) {
160160 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]" ;
161161 this . numberToken = / ( \[ @ h r e f = ' .* ) ( \d + ) ( .* ?' \] ) / ;
162162 return ;
@@ -251,7 +251,7 @@ Repaginator.prototype = {
251251
252252 // Fourth: See if there is rel=next or rel=prev
253253 let rel = ( el . getAttribute ( "rel" ) || "" ) . trim ( ) ;
254- if ( rel && ( rel . contains ( "next" ) || rel . contains ( "prev" ) ) ) {
254+ if ( rel && ( rel . includes ( "next" ) || rel . includes ( "prev" ) ) ) {
255255 this . query += "//a[@rel='" + escapeXStr ( rel ) + "']" ;
256256 // no point in checking for numbers
257257 this . attemptToIncrement = false ;
You can’t perform that action at this time.
0 commit comments