diff --git a/4chan_x.user.js b/4chan_x.user.js index 7cc063e91..a5d48798f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1529,7 +1529,7 @@ return $.on(d, 'dragstart dragend', QR.drag); }, node: function(post) { - return $.on($('.postInfo > .postNum > a[title="Quote this post"]', post.el), 'click', QR.quote); + return $.on($('.postNum > a[title="Quote this post"]', post.el), 'click', QR.quote); }, open: function() { if (QR.el) { @@ -3236,7 +3236,7 @@ } quote.href = "/" + board + "/res/" + href; } - link = $('.postInfo > .postNum > a[title="Highlight this post"]', pc); + link = $('.postNum > a[title="Highlight this post"]', pc); link.href = "/" + board + "/res/" + threadID + "#p" + postID; link.nextSibling.href = "/" + board + "/res/" + threadID + "#q" + postID; $.replace(root.firstChild, pc); @@ -3770,7 +3770,7 @@ nodes.push($.tn(text)); } id = quote.match(/\d+$/)[0]; - board = (m = quote.match(/^>>>\/([a-z\d]+)/)) ? m[1] : $('.postInfo > .postNum > a[title="Highlight this post"]', post.el).pathname.split('/')[1]; + board = (m = quote.match(/^>>>\/([a-z\d]+)/)) ? m[1] : $('.postNum > a[title="Highlight this post"]', post.el).pathname.split('/')[1]; nodes.push(a = $.el('a', { textContent: "" + quote + "\u00A0(Dead)" })); diff --git a/script.coffee b/script.coffee index 17c00eabe..00b644e39 100644 --- a/script.coffee +++ b/script.coffee @@ -1135,7 +1135,7 @@ QR = $.on d, 'dragstart dragend', QR.drag node: (post) -> - $.on $('.postInfo > .postNum > a[title="Quote this post"]', post.el), 'click', QR.quote + $.on $('.postNum > a[title="Quote this post"]', post.el), 'click', QR.quote open: -> if QR.el @@ -2500,7 +2500,7 @@ Get = href = quote.getAttribute 'href' continue if href[0] is '/' # Cross-board quote, or board link quote.href = "/#{board}/res/#{href}" # Fix pathnames - link = $ '.postInfo > .postNum > a[title="Highlight this post"]', pc + link = $ '.postNum > a[title="Highlight this post"]', pc link.href = "/#{board}/res/#{threadID}#p#{postID}" link.nextSibling.href = "/#{board}/res/#{threadID}#q#{postID}" @@ -2948,7 +2948,7 @@ Quotify = m[1] else # Get the post's board, whether it's inlined or not. - $('.postInfo > .postNum > a[title="Highlight this post"]', post.el).pathname.split('/')[1] + $('.postNum > a[title="Highlight this post"]', post.el).pathname.split('/')[1] nodes.push a = $.el 'a', # \u00A0 is nbsp