Fix quotelinks inside of resurrected posts

@MayhemYDG
This commit is contained in:
Zixaphir 2013-07-25 14:51:30 -07:00
parent d01c811fe2
commit 22fde6fdb0
4 changed files with 9 additions and 9 deletions

View File

@ -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. * Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

View File

@ -19,7 +19,7 @@
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.2.24 - 2013-07-24 * 4chan X - Version 1.2.24 - 2013-07-25
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -4245,13 +4245,13 @@
if (post = g.posts[quoteID]) { if (post = g.posts[quoteID]) {
if (!post.isDead) { if (!post.isDead) {
a = $.el('a', { a = $.el('a', {
href: "/" + boardID + "/" + post.thread + "/res/#p" + postID, href: "/" + boardID + "/res/" + post.thread + "#p" + postID,
className: 'quotelink', className: 'quotelink',
textContent: quote textContent: quote
}); });
} else { } else {
a = $.el('a', { a = $.el('a', {
href: "/" + boardID + "/" + post.thread + "/res/#p" + postID, href: "/" + boardID + "/res/" + post.thread + "#p" + postID,
className: 'quotelink deadlink', className: 'quotelink deadlink',
target: '_blank', target: '_blank',
textContent: "" + quote + "\u00A0(Dead)" textContent: "" + quote + "\u00A0(Dead)"

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // 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. * Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -4245,13 +4245,13 @@
if (post = g.posts[quoteID]) { if (post = g.posts[quoteID]) {
if (!post.isDead) { if (!post.isDead) {
a = $.el('a', { a = $.el('a', {
href: "/" + boardID + "/" + post.thread + "/res/#p" + postID, href: "/" + boardID + "/res/" + post.thread + "#p" + postID,
className: 'quotelink', className: 'quotelink',
textContent: quote textContent: quote
}); });
} else { } else {
a = $.el('a', { a = $.el('a', {
href: "/" + boardID + "/" + post.thread + "/res/#p" + postID, href: "/" + boardID + "/res/" + post.thread + "#p" + postID,
className: 'quotelink deadlink', className: 'quotelink deadlink',
target: '_blank', target: '_blank',
textContent: "" + quote + "\u00A0(Dead)" textContent: "" + quote + "\u00A0(Dead)"

View File

@ -40,13 +40,13 @@ Quotify =
# Don't (Dead) when quotifying in an archived post, # Don't (Dead) when quotifying in an archived post,
# and we know the post still exists. # and we know the post still exists.
a = $.el 'a', a = $.el 'a',
href: "/#{boardID}/#{post.thread}/res/#p#{postID}" href: "/#{boardID}/res/#{post.thread}#p#{postID}"
className: 'quotelink' className: 'quotelink'
textContent: quote textContent: quote
else else
# Replace the .deadlink span if we can redirect. # Replace the .deadlink span if we can redirect.
a = $.el 'a', a = $.el 'a',
href: "/#{boardID}/#{post.thread}/res/#p#{postID}" href: "/#{boardID}/res/#{post.thread}#p#{postID}"
className: 'quotelink deadlink' className: 'quotelink deadlink'
target: '_blank' target: '_blank'
textContent: "#{quote}\u00A0(Dead)" textContent: "#{quote}\u00A0(Dead)"