From 22fde6fdb05ca17393477d79c1134e61c8471f53 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 25 Jul 2013 14:51:30 -0700 Subject: [PATCH] Fix quotelinks inside of resurrected posts @MayhemYDG --- LICENSE | 2 +- builds/4chan-X.user.js | 6 +++--- builds/crx/script.js | 6 +++--- src/Quotelinks/Quotify.coffee | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LICENSE b/LICENSE index 8758af562..bc43a4ec5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.2.24 - 2013-07-24 +* 4chan X - Version 1.2.24 - 2013-07-25 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index c443d26fa..760591baa 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -19,7 +19,7 @@ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC // ==/UserScript== /* -* 4chan X - Version 1.2.24 - 2013-07-24 +* 4chan X - Version 1.2.24 - 2013-07-25 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -4245,13 +4245,13 @@ if (post = g.posts[quoteID]) { if (!post.isDead) { a = $.el('a', { - href: "/" + boardID + "/" + post.thread + "/res/#p" + postID, + href: "/" + boardID + "/res/" + post.thread + "#p" + postID, className: 'quotelink', textContent: quote }); } else { a = $.el('a', { - href: "/" + boardID + "/" + post.thread + "/res/#p" + postID, + href: "/" + boardID + "/res/" + post.thread + "#p" + postID, className: 'quotelink deadlink', target: '_blank', textContent: "" + quote + "\u00A0(Dead)" diff --git a/builds/crx/script.js b/builds/crx/script.js index 2bba076ae..11d727ab7 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.2.24 - 2013-07-24 +* 4chan X - Version 1.2.24 - 2013-07-25 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -4245,13 +4245,13 @@ if (post = g.posts[quoteID]) { if (!post.isDead) { a = $.el('a', { - href: "/" + boardID + "/" + post.thread + "/res/#p" + postID, + href: "/" + boardID + "/res/" + post.thread + "#p" + postID, className: 'quotelink', textContent: quote }); } else { a = $.el('a', { - href: "/" + boardID + "/" + post.thread + "/res/#p" + postID, + href: "/" + boardID + "/res/" + post.thread + "#p" + postID, className: 'quotelink deadlink', target: '_blank', textContent: "" + quote + "\u00A0(Dead)" diff --git a/src/Quotelinks/Quotify.coffee b/src/Quotelinks/Quotify.coffee index 524f74f6c..2b20e4dcc 100644 --- a/src/Quotelinks/Quotify.coffee +++ b/src/Quotelinks/Quotify.coffee @@ -40,13 +40,13 @@ Quotify = # Don't (Dead) when quotifying in an archived post, # and we know the post still exists. a = $.el 'a', - href: "/#{boardID}/#{post.thread}/res/#p#{postID}" + href: "/#{boardID}/res/#{post.thread}#p#{postID}" className: 'quotelink' textContent: quote else # Replace the .deadlink span if we can redirect. a = $.el 'a', - href: "/#{boardID}/#{post.thread}/res/#p#{postID}" + href: "/#{boardID}/res/#{post.thread}#p#{postID}" className: 'quotelink deadlink' target: '_blank' textContent: "#{quote}\u00A0(Dead)"