From 763311f7dd88cb8b991ade45b5ffdc54203377be Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 15 Dec 2012 15:54:49 +0100 Subject: [PATCH] Add a / to foolfukka path redirection. That'll avoid reloading a page when clicking on `No.` to highlight a post. --- 4chan_x.user.js | 3 +++ script.coffee | 2 ++ 2 files changed, 5 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index 63a31bb07..72ffc7796 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4899,6 +4899,9 @@ postID = postID.match(/\d+/)[0]; } path = threadID ? "" + board + "/thread/" + threadID : "" + board + "/post/" + postID; + if (archiver === 'foolfuuka') { + path += '/'; + } if (threadID && postID) { path += archiver === 'foolfuuka' ? "#" + postID : "#p" + postID; } diff --git a/script.coffee b/script.coffee index aa0d8c912..3c2c86073 100644 --- a/script.coffee +++ b/script.coffee @@ -3988,6 +3988,8 @@ Redirect = "#{board}/thread/#{threadID}" else "#{board}/post/#{postID}" + if archiver is 'foolfuuka' + path += '/' if threadID and postID path += if archiver is 'foolfuuka'