diff --git a/4chan_x.user.js b/4chan_x.user.js index 2015f4ca8..d9f06aa9d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2231,7 +2231,7 @@ return $.addClass(this, 'inlined'); }, parse: function(req, pathname, id, threadID, inline) { - var body, html, newInline, op, quote, reply, _i, _j, _len, _len2, _ref, _ref2; + var body, html, link, newInline, op, quote, reply, _i, _j, _len, _len2, _ref, _ref2; if (!inline.parentNode) { return; } @@ -2263,6 +2263,9 @@ quote.pathname = pathname; } } + link = $('a.quotejs', newInline); + link.href = "" + pathname + "#" + id; + link.nextSibling.href = "" + pathname + "#q" + id; $.addClass(newInline, 'crossquote'); return $.replace(inline, newInline); }, diff --git a/changelog b/changelog index 21bc0fcec..fe0cfe0ff 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,9 @@ master + +2.19.1 - mayhem fix OP indication in expanded comments + fix no.id links within cross thread/board inlined quote 2.19.0 - mayhem diff --git a/script.coffee b/script.coffee index 40e908e89..c9f3b6c5d 100644 --- a/script.coffee +++ b/script.coffee @@ -1778,6 +1778,9 @@ quoteInline = for quote in $$ 'a.quotelink', newInline if quote.getAttribute('href') is quote.hash quote.pathname = pathname + link = $ 'a.quotejs', newInline + link.href = "#{pathname}##{id}" + link.nextSibling.href = "#{pathname}#q#{id}" $.addClass newInline, 'crossquote' $.replace inline, newInline table: (id, html) ->