From b5baa3a67b0f99064034542fccab9f250e74bf02 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 5 Sep 2012 20:17:32 +0200 Subject: [PATCH] MOOOOOOOT --- 4chan_x.user.js | 7 +++---- changelog | 2 ++ script.coffee | 7 +++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 8bec9e11a..82b13957d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2541,7 +2541,7 @@ Options = { init: function() { var a, el, settings, _i, _len, _ref; - _ref = ['navtopr', 'navbotr']; + _ref = ['navtopright', 'navbotright']; for (_i = 0, _len = _ref.length; _i < _len; _i++) { settings = _ref[_i]; a = $.el('a', { @@ -2551,8 +2551,7 @@ }); $.on(a, 'click', Options.dialog); el = $.id(settings).firstElementChild; - el.hidden = true; - $.before(el, a); + $.before(el, [a, $.tn('] ')]); } if (!$.get('firstrun')) { if (!Favicon.el) { @@ -5086,7 +5085,7 @@ } return; } - if (!$.id('navtopr')) { + if (!$.id('navtopright')) { return; } $.addClass(d.body, $.engine); diff --git a/changelog b/changelog index 487c03dab..239fabe6b 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ master +- Mayhem + Fix 4chan X. Blame moot. 2.34.9 - Mayhem diff --git a/script.coffee b/script.coffee index 151cdf1ec..341aa7bc2 100644 --- a/script.coffee +++ b/script.coffee @@ -1995,15 +1995,14 @@ QR = Options = init: -> - for settings in ['navtopr', 'navbotr'] + for settings in ['navtopright', 'navbotright'] a = $.el 'a', href: 'javascript:;' className: 'settingsWindowLink' textContent: '4chan X Settings' $.on a, 'click', Options.dialog el = $.id(settings).firstElementChild - el.hidden = true - $.before el, a + $.before el, [a, $.tn('] ')] unless $.get 'firstrun' # Prevent race conditions Favicon.init() unless Favicon.el @@ -3981,7 +3980,7 @@ Main = if Conf['404 Redirect'] and /^\d+$/.test g.THREAD_ID location.href = Redirect.thread g.BOARD, g.THREAD_ID, location.hash return - unless $.id 'navtopr' + unless $.id 'navtopright' return $.addClass d.body, $.engine $.addClass d.body, 'fourchan_x'