diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index b458f233c..5b279fafc 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -11417,7 +11417,7 @@ } a = $.el('a', { textContent: ExpandThread.text.apply(ExpandThread, ['+'].concat(__slice.call(summary.textContent.match(/\d+/g)))), - href: "" + thread.board.ID + "/res/" + thread.ID, + href: "res/" + thread.ID, className: 'summary' }); $.on(a, 'click', ExpandThread.cbToggle); diff --git a/builds/crx/script.js b/builds/crx/script.js index 79be81f36..1d77ba198 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11433,7 +11433,7 @@ } a = $.el('a', { textContent: ExpandThread.text.apply(ExpandThread, ['+'].concat(__slice.call(summary.textContent.match(/\d+/g)))), - href: "" + thread.board.ID + "/res/" + thread.ID, + href: "res/" + thread.ID, className: 'summary' }); $.on(a, 'click', ExpandThread.cbToggle); diff --git a/src/Miscellaneous/ExpandThread.coffee b/src/Miscellaneous/ExpandThread.coffee index 77c5fdc6d..4f4059fe2 100755 --- a/src/Miscellaneous/ExpandThread.coffee +++ b/src/Miscellaneous/ExpandThread.coffee @@ -8,7 +8,7 @@ ExpandThread = return unless summary = $.x 'following-sibling::*[contains(@class,"summary")][1]', thread.OP.nodes.root a = $.el 'a', textContent: ExpandThread.text '+', summary.textContent.match(/\d+/g)... - href: "#{thread.board.ID}/res/#{thread.ID}" + href: "res/#{thread.ID}" className: 'summary' $.on a, 'click', ExpandThread.cbToggle $.replace summary, a