From af98c5c96f0465aa6f767054ac7b5aadc258d31d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 25 May 2011 21:49:15 +0200 Subject: [PATCH] Go for it, Shinji-kun! This isn't for someone else! It's for the sake of your own wishes --- 4chan_x.js | 13 ++++--------- script.coffee | 13 +++---------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 10a302b46..1fbe42497 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -90,9 +90,9 @@ 'Persistent QR': [false, 'Quick reply won\'t disappear after posting. Only in replies.'] }, quote: { - 'Quote Backlinks': [false, 'Add quote backlinks'], - 'Quote Inline': [false, 'Show quoted post inline on quote click'], - 'Quote Preview': [false, 'Show quote content on hover'], + 'Quote Backlinks': [true, 'Add quote backlinks'], + 'Quote Inline': [true, 'Show quoted post inline on quote click'], + 'Quote Preview': [true, 'Show quote content on hover'], 'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes'] }, hide: { @@ -1228,9 +1228,7 @@ init: function() { var node; node = $('form[name=delform] > *:not([id])'); - $.bind(d, 'DOMNodeInserted', threading.stopPropagation); - threading.thread(node); - return $.unbind(d, 'DOMNodeInserted', threading.stopPropagation); + return threading.thread(node); }, op: function(node) { var op; @@ -1264,9 +1262,6 @@ if (!(node.align || node.nodeName === 'CENTER')) { return threading.thread(node); } - }, - stopPropagation: function(e) { - return e.stopPropagation(); } }; threadHiding = { diff --git a/script.coffee b/script.coffee index b1e32f576..dede6ae7d 100644 --- a/script.coffee +++ b/script.coffee @@ -30,9 +30,9 @@ config = 'Quick Reply': [true, 'Reply without leaving the page'] 'Persistent QR': [false, 'Quick reply won\'t disappear after posting. Only in replies.'] quote: - 'Quote Backlinks': [false, 'Add quote backlinks'] - 'Quote Inline': [false, 'Show quoted post inline on quote click'] - 'Quote Preview': [false, 'Show quote content on hover'] + 'Quote Backlinks': [true, 'Add quote backlinks'] + 'Quote Inline': [true, 'Show quoted post inline on quote click'] + 'Quote Preview': [true, 'Show quote content on hover'] 'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes'] hide: 'Reply Hiding': [true, 'Hide single replies'] @@ -992,11 +992,7 @@ threading = init: -> # don't thread image controls node = $ 'form[name=delform] > *:not([id])' - # don't confuse other scripts *cough*/b/ackwash*cough* - # gotta have a named function to unbind. - $.bind d, 'DOMNodeInserted', threading.stopPropagation threading.thread node - $.unbind d, 'DOMNodeInserted', threading.stopPropagation op: (node) -> op = $.el 'div', @@ -1027,9 +1023,6 @@ threading = unless node.align or node.nodeName is 'CENTER' threading.thread node - stopPropagation: (e) -> - e.stopPropagation() - threadHiding = init: -> hiddenThreads = $.getValue "hiddenThreads/#{g.BOARD}/", {}