Skip to content

Commit d024a66

Browse files
committed
Homestuck hack
1 parent 4d93f45 commit d024a66

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content-script.js

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

0 commit comments

Comments
 (0)