Best.
This commit is contained in:
parent
aaf1ee06ee
commit
4e56d17d54
@ -12768,7 +12768,7 @@
|
||||
},
|
||||
navigate: function(e) {
|
||||
var boardID, path, threadID, view;
|
||||
if (this.hostname !== 'boards.4chan.org') {
|
||||
if (this.hostname !== 'boards.4chan.org' || /rs\.4chan\.org/.test(window.location)) {
|
||||
return;
|
||||
}
|
||||
path = this.pathname.split('/');
|
||||
@ -12776,7 +12776,7 @@
|
||||
path.shift();
|
||||
}
|
||||
boardID = path[0], view = path[1], threadID = path[2];
|
||||
if (view === 'catalog' || boardID === 'f') {
|
||||
if (view === 'catalog' || ('f' === boardID || 'f' === g.BOARD.ID)) {
|
||||
return;
|
||||
}
|
||||
if (e) {
|
||||
|
||||
@ -12745,7 +12745,7 @@
|
||||
},
|
||||
navigate: function(e) {
|
||||
var boardID, path, threadID, view;
|
||||
if (this.hostname !== 'boards.4chan.org') {
|
||||
if (this.hostname !== 'boards.4chan.org' || /rs\.4chan\.org/.test(window.location)) {
|
||||
return;
|
||||
}
|
||||
path = this.pathname.split('/');
|
||||
@ -12753,7 +12753,7 @@
|
||||
path.shift();
|
||||
}
|
||||
boardID = path[0], view = path[1], threadID = path[2];
|
||||
if (view === 'catalog' || boardID === 'f') {
|
||||
if (view === 'catalog' || ('f' === boardID || 'f' === g.BOARD.ID)) {
|
||||
return;
|
||||
}
|
||||
if (e) {
|
||||
|
||||
@ -357,13 +357,13 @@ Main =
|
||||
return
|
||||
|
||||
navigate: (e) ->
|
||||
return if @hostname isnt 'boards.4chan.org'
|
||||
# Lets have a good idea of what we should we should be expecting for this kind of feature
|
||||
return if @hostname isnt 'boards.4chan.org' or /rs\.4chan\.org/.test window.location
|
||||
|
||||
path = @pathname.split '/'
|
||||
path.shift() if path[0] is ''
|
||||
[boardID, view, threadID] = path
|
||||
|
||||
return if view is 'catalog' or boardID is 'f'
|
||||
return if view is 'catalog' or 'f' in [boardID, g.BOARD.ID]
|
||||
|
||||
e.preventDefault() if e
|
||||
history.pushState null, '', @pathname unless @id is 'popState'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user