diff --git a/4chan-X.user.js b/4chan-X.user.js index 08ee9792a..be5d93ffa 100644 --- a/4chan-X.user.js +++ b/4chan-X.user.js @@ -20,7 +20,7 @@ // @icon data:image/gif;base64,R0lGODlhEAAQAKECAAAAAGbMM////////yH5BAEKAAIALAAAAAAQABAAAAIxlI+pq+D9DAgUoFkPDlbs7lGiI2bSVnKglnJMOL6omczxVZK3dH/41AG6Lh7i6qUoAAA7 // ==/UserScript== -/* 4chan X Beta - Version 3.0.0 - 2013-03-18 +/* 4chan X Beta - Version 3.0.0 - 2013-03-19 * http://mayhemydg.github.com/4chan-x/ * * Copyright (c) 2009-2011 James Campos @@ -6535,13 +6535,13 @@ return $.toggleClass(this, 'disabled'); }); Header.addShortcut(sc); - $.asap((function() { - return doc; - }), function() { - if (Conf['Hide Original Post Form']) { + if (Conf['Hide Original Post Form']) { + $.asap((function() { + return doc; + }), function() { return $.addClass(doc, 'hide-original-post-form'); - } - }); + }); + } $.on(d, '4chanXInitFinished', this.initReady); return Post.prototype.callbacks.push({ name: 'Quick Reply', @@ -6553,9 +6553,6 @@ if (!QR.postingIsEnabled) { return; } - if (Conf['Hide Original Post Form']) { - $.addClass(doc, 'hide-original-post-form'); - } if ($.engine === 'webkit') { $.on(d, 'paste', QR.paste); } diff --git a/src/qr.coffee b/src/qr.coffee index fc9bf67cf..3950ff973 100644 --- a/src/qr.coffee +++ b/src/qr.coffee @@ -21,8 +21,8 @@ QR = Header.addShortcut sc - $.asap (-> doc), -> - if Conf['Hide Original Post Form'] + if Conf['Hide Original Post Form'] + $.asap (-> doc), -> $.addClass doc, 'hide-original-post-form' $.on d, '4chanXInitFinished', @initReady @@ -35,9 +35,6 @@ QR = QR.postingIsEnabled = !!$.id 'postForm' return unless QR.postingIsEnabled - if Conf['Hide Original Post Form'] - $.addClass doc, 'hide-original-post-form' - if $.engine is 'webkit' $.on d, 'paste', QR.paste $.on d, 'dragover', QR.dragOver