diff --git a/4chan_x.user.js b/4chan_x.user.js index 047bc2aae..e8ef1ce9c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1233,8 +1233,8 @@ $.on(a, 'click', options.dialog); $.replace(home, a); if (!$.get('firstrun')) { - options.dialog(); - return $.set('firstrun', true); + $.set('firstrun', true); + return options.dialog(); } }, dialog: function() { @@ -2741,11 +2741,11 @@ unread = { init: function() { - unread.replies = []; d.title = '(0) ' + d.title; $.on(window, 'scroll', unread.scroll); return g.callbacks.push(unread.node); }, + replies: [], node: function(root) { if (root.hidden || root.className) return; unread.replies.push(root); @@ -3284,6 +3284,7 @@ bottom: 0;\ text-align: center;\ background: rgba(0,0,0,.5);\ + z-index: 1;\ }\ #overlay::after {\ content: "";\ diff --git a/changelog b/changelog index 7fa1efe9f..e33f0f2b2 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ master +- mayhem + fix options popping up everytime a page loads 2.24.1 - mayhem diff --git a/script.coffee b/script.coffee index 5e4591701..5b91fb240 100644 --- a/script.coffee +++ b/script.coffee @@ -897,8 +897,8 @@ options = $.on a, 'click', options.dialog $.replace home, a unless $.get 'firstrun' - options.dialog() $.set 'firstrun', true + options.dialog() dialog: -> dialog = ui.dialog 'options', '', ' @@ -2134,11 +2134,12 @@ threadStats = unread = init: -> - unread.replies = [] d.title = '(0) ' + d.title $.on window, 'scroll', unread.scroll g.callbacks.push unread.node + replies: [] + node: (root) -> return if root.hidden or root.className unread.replies.push root @@ -2640,6 +2641,7 @@ Main = bottom: 0; text-align: center; background: rgba(0,0,0,.5); + z-index: 1; } #overlay::after { content: "";