From f45da76cc1e8a148392c7c1ff332a1ba6cc967a9 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 29 Dec 2011 04:42:30 +0100 Subject: [PATCH] Load and save name/email with localStorage instead of cookies, sync them between tabs. Load password from the normal post form. --- 4chan_x.user.js | 19 ++++++++++++++++++- script.coffee | 13 ++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 2751dde7e..dcee79f44 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1194,6 +1194,7 @@ qr = { init: function() { + if (!$('form[name=post]')) return; g.callbacks.push(function(root) { return $.on($('.quotejs + .quotejs', root), 'click', qr.quote); }); @@ -1237,6 +1238,7 @@ return ta.selectionEnd = ta.selectionStart = caretPos + text.length; }, dialog: function() { + var input, _i, _len, _ref; qr.el = ui.dialog('qr', 'top:0;right:0;', '\