From 7c103f99f29fa1076423b94ea9b3a18e9032dbd4 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 26 Nov 2011 22:41:29 +0100 Subject: [PATCH] Firstrun will open the options. --- 4chan_x.user.js | 6 +++++- script.coffee | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 4a9444e83..637a8bdc8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1228,7 +1228,11 @@ href: 'javascript:;' }); $.on(a, 'click', options.dialog); - return $.replace(home, a); + $.replace(home, a); + if (!$.get('firstrun')) { + options.dialog(); + return $.set('firstrun', true); + } }, dialog: function() { var arr, back, checked, description, dialog, hiddenNum, hiddenThreads, input, key, li, obj, overlay, ta, time, ul, _i, _j, _len, _len2, _ref, _ref2, _ref3; diff --git a/script.coffee b/script.coffee index aee14b183..c591d7dd9 100644 --- a/script.coffee +++ b/script.coffee @@ -882,6 +882,9 @@ options = href: 'javascript:;' $.on a, 'click', options.dialog $.replace home, a + unless $.get 'firstrun' + options.dialog() + $.set 'firstrun', true dialog: -> dialog = ui.dialog 'options', '', '