From 44350c5f7684fc5a3798229e3f2e70fc811216ce Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 6 Apr 2014 11:52:20 -0700 Subject: [PATCH] Fix thread expansion URL --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/Miscellaneous/ExpandThread.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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