diff --git a/4chan_x.user.js b/4chan_x.user.js index 510a6bb8d..694801d68 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2689,9 +2689,9 @@ $.bind(form, 'submit', qr.cb.submit); } if ($.config('Auto Noko')) { - d.cookie = "" + NAMESPACE + "auto_noko=true;path=/;domain=.4chan.org"; + document.cookie = "" + NAMESPACE + "auto_noko;path=/;domain=.4chan.org"; } else { - d.cookie = "" + NAMESPACE + "auto_noko=false;path=/;domain=.4chan.org"; + document.cookie = "path=/;domain=.4chan.org"; } if ($.config('Cooldown')) { cooldown.init(); @@ -2928,8 +2928,7 @@ height: 120px;\ }\ #qr.auto:not(:hover) > form {\ - height: 0;\ - overflow: hidden;\ + display: none;\ }\ /* http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css */\ #qr input::-webkit-input-placeholder {\ diff --git a/script.coffee b/script.coffee index d30c6387d..af68cd614 100644 --- a/script.coffee +++ b/script.coffee @@ -2103,9 +2103,9 @@ main = #major features if $.config 'Auto Noko' - d.cookie = "#{NAMESPACE}auto_noko=true;path=/;domain=.4chan.org" + document.cookie = "#{NAMESPACE}auto_noko;path=/;domain=.4chan.org" else - d.cookie = "#{NAMESPACE}auto_noko=false;path=/;domain=.4chan.org" + document.cookie = "path=/;domain=.4chan.org" if $.config 'Cooldown' cooldown.init() @@ -2329,7 +2329,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 {