Skip to content

Commit 620d28c

Browse files
committed
Update for FF 48
1 parent 7783add commit 620d28c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content-script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 = /(\[@href='.*)(\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;

0 commit comments

Comments
 (0)