Fix quotelinks inside of resurrected posts
@MayhemYDG
This commit is contained in:
parent
d01c811fe2
commit
22fde6fdb0
2
LICENSE
2
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.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -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)"
|
||||||
|
|||||||
@ -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)"
|
||||||
|
|||||||
@ -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)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user