From 60d4e19e503d1b6486584684c930f27b95bd88d3 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 25 Jun 2011 11:15:47 -0700 Subject: [PATCH 1/2] tweak auto noko cookies --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index dd3e935dc..9ecb715f3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2684,9 +2684,9 @@ $.bind(form, 'submit', qr.cb.submit); } if ($.config('Auto Noko')) { - document.cookie = "" + NAMESPACE + "auto_noko=true;path=/;domain=.4chan.org"; + document.cookie = "" + NAMESPACE + "auto_noko;path=/;domain=.4chan.org"; } else { - document.cookie = "" + NAMESPACE + "auto_noko=false;path=/;domain=.4chan.org"; + document.cookie = "path=/;domain=.4chan.org"; } if ($.config('Cooldown')) { cooldown.init(); diff --git a/script.coffee b/script.coffee index 46be48c4d..41c87afcd 100644 --- a/script.coffee +++ b/script.coffee @@ -2097,9 +2097,9 @@ main = #major features if $.config 'Auto Noko' - document.cookie = "#{NAMESPACE}auto_noko=true;path=/;domain=.4chan.org" + document.cookie = "#{NAMESPACE}auto_noko;path=/;domain=.4chan.org" else - document.cookie = "#{NAMESPACE}auto_noko=false;path=/;domain=.4chan.org" + document.cookie = "path=/;domain=.4chan.org" if $.config 'Cooldown' cooldown.init() From 61fe734eb5242f94c3696f229d973ee0e4a7bcc3 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 25 Jun 2011 11:17:53 -0700 Subject: [PATCH 2/2] Revert "Simple CSS." This reverts commit 7ab80f7f45793583ff342f9a2fab6f29f33f8c62. --- script.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.coffee b/script.coffee index 0d209554b..e61c28bd2 100644 --- a/script.coffee +++ b/script.coffee @@ -2327,7 +2327,8 @@ main = height: 120px; } #qr.auto:not(:hover) > form { - display: none; + height: 0; + overflow: hidden; } /* http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css */ #qr input::-webkit-input-placeholder {