From 17976954d8bb8bfc7829b2cbae18b4e50f26a9d8 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 14 Jun 2011 23:28:01 +0200 Subject: [PATCH] You can inline backlinks within normal quotes too. --- 4chan_x.user.js | 10 ++++------ script.coffee | 5 ++--- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index bdf625cb9..14eedd892 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1880,12 +1880,10 @@ if (table = $("#i" + id, $.x('ancestor::td[1]', this))) { $.rm(table); $.removeClass(this, 'inlined'); - if (this.className === 'backlink') { - _ref = $$('input', table); - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - inlined = _ref[_i]; - $.show($.x('ancestor::table[1]', d.getElementById(inlined.name))); - } + _ref = $$('input', table); + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + inlined = _ref[_i]; + $.show($.x('ancestor::table[1]', d.getElementById(inlined.name))); } return; } diff --git a/script.coffee b/script.coffee index c1cc61430..e633694cb 100644 --- a/script.coffee +++ b/script.coffee @@ -1475,9 +1475,8 @@ quoteInline = if table = $ "#i#{id}", $.x 'ancestor::td[1]', @ $.rm table $.removeClass @, 'inlined' - if @className is 'backlink' - for inlined in $$ 'input', table - $.show $.x 'ancestor::table[1]', d.getElementById inlined.name + for inlined in $$ 'input', table + $.show $.x 'ancestor::table[1]', d.getElementById inlined.name return root = if @parentNode.nodeName is 'FONT' then @parentNode else @nextSibling if el = d.getElementById id