diff --git a/4chan_x.user.js b/4chan_x.user.js index 05998b5be..bb2132dc5 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2066,12 +2066,12 @@ type: 'post', el: div, open: function(_arg) { - var ID, board, redirect, thread; - ID = _arg.ID, thread = _arg.thread, board = _arg.board; + var board, postID, redirect, threadID; + postID = _arg.ID, threadID = _arg.thread, board = _arg.board; redirect = Redirect.to({ - board: board, - threadID: thread, - postID: ID + postID: postID, + threadID: threadID, + board: board }); return redirect !== ("//boards.4chan.org/" + board + "/"); }, @@ -2092,12 +2092,12 @@ }); if (type === 'post') { open = function(_arg) { - var ID, board, thread; - ID = _arg.ID, thread = _arg.thread, board = _arg.board; + var board, postID, threadID; + postID = _arg.ID, threadID = _arg.thread, board = _arg.board; el.href = Redirect.to({ - board: board, - threadID: thread, - postID: ID + postID: postID, + threadID: threadID, + board: board }); return true; }; diff --git a/src/features.coffee b/src/features.coffee index 9c77df8e3..02eb03b7d 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -947,11 +947,8 @@ ArchiveLink = entry = type: 'post' el: div - open: ({ID, thread, board}) -> - redirect = Redirect.to - board: board - threadID: thread - postID: ID + open: ({ID: postID, thread: threadID, board}) -> + redirect = Redirect.to {postID, threadID, board} redirect isnt "//boards.4chan.org/#{board}/" subEntries: [] @@ -975,11 +972,8 @@ ArchiveLink = target: '_blank' if type is 'post' - open = ({ID, thread, board}) -> - el.href = Redirect.to - board: board - threadID: thread - postID: ID + open = ({ID: postID, thread: threadID, board}) -> + el.href = Redirect.to {postID, threadID, board} true else open = (post) ->