From 0c0a8c6dbd99becaf2ff3c111d7742d3a14ec03f Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 31 Jul 2011 15:50:35 -0700 Subject: [PATCH] s/auto_// --- 4chan_x.user.js | 8 ++++---- script.coffee | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 9925be6d3..ab4cb3e58 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1402,9 +1402,9 @@ c = $('b').lastChild; if (c.nodeType === 8) { _ref = c.textContent.match(/thread:(\d+),no:(\d+)/), _ = _ref[0], thread = _ref[1], id = _ref[2]; - noko = /auto_noko/.test(location.search); + noko = /noko/.test(location.search); if (thread === '0') { - if (/auto_watch/.test(location.search)) { + if (/watch/.test(location.search)) { return window.location = "http://boards.4chan.org/" + g.BOARD + "/res/" + id + "#watch"; } else if (noko) { return window.location = "http://boards.4chan.org/" + g.BOARD + "/res/" + id; @@ -2716,7 +2716,7 @@ } threading.init(); if (conf['Auto Noko']) { - $('.postarea form').action += '?auto_noko'; + $('.postarea form').action += '?noko'; } if (conf['Cooldown']) { cooldown.init(); @@ -2808,7 +2808,7 @@ expandComment.init(); } if (conf['Auto Watch']) { - $('.postarea form').action += '?auto_watch'; + $('.postarea form').action += '?watch'; } } _ref3 = $$('div.op'); diff --git a/script.coffee b/script.coffee index c10d2d644..ee4ec26af 100644 --- a/script.coffee +++ b/script.coffee @@ -1127,9 +1127,9 @@ qr = if c.nodeType is 8 #comment node [_, thread, id] = c.textContent.match(/thread:(\d+),no:(\d+)/) - noko = /auto_noko/.test location.search + noko = /noko/.test location.search if thread is '0' - if /auto_watch/.test location.search + if /watch/.test location.search window.location = "http://boards.4chan.org/#{g.BOARD}/res/#{id}#watch" else if noko window.location = "http://boards.4chan.org/#{g.BOARD}/res/#{id}" @@ -2105,7 +2105,7 @@ main = threading.init() if conf['Auto Noko'] - $('.postarea form').action += '?auto_noko' + $('.postarea form').action += '?noko' if conf['Cooldown'] cooldown.init() @@ -2198,7 +2198,7 @@ main = expandComment.init() if conf['Auto Watch'] - $('.postarea form').action += '?auto_watch' + $('.postarea form').action += '?watch' for op in $$ 'div.op' for callback in g.callbacks