diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 795736b9b..9f9bb4a60 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -12768,7 +12768,7 @@ }, navigate: function(e) { var boardID, path, threadID, view; - if (this.hostname !== 'boards.4chan.org' || /rs\.4chan\.org/.test(window.location)) { + if (this.hostname !== 'boards.4chan.org' || window.location.hostname === 'rs.4chan.org') { return; } path = this.pathname.split('/'); diff --git a/builds/crx/script.js b/builds/crx/script.js index 462d843fd..692c277b1 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -12745,7 +12745,7 @@ }, navigate: function(e) { var boardID, path, threadID, view; - if (this.hostname !== 'boards.4chan.org' || /rs\.4chan\.org/.test(window.location)) { + if (this.hostname !== 'boards.4chan.org' || window.location.hostname === 'rs.4chan.org') { return; } path = this.pathname.split('/'); diff --git a/src/General/Main.coffee b/src/General/Main.coffee index ec5b2d17f..dc1994be5 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -357,7 +357,7 @@ Main = return navigate: (e) -> - return if @hostname isnt 'boards.4chan.org' or /rs\.4chan\.org/.test window.location + return if @hostname isnt 'boards.4chan.org' or window.location.hostname is 'rs.4chan.org' path = @pathname.split '/' path.shift() if path[0] is ''