diff --git a/4chan_x.user.js b/4chan_x.user.js index b938c53a8..0a5cc8417 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3843,7 +3843,7 @@ return $.ready(Main.ready); }, ready: function() { - var MutationObserver, form, nodes, observer; + var MutationObserver, form, nav, nodes, observer, _i, _len, _ref; if (d.title === '4chan - 404') { redirect.init(); return; @@ -3851,6 +3851,11 @@ if (!$.id('navtopr')) return; $.addClass(d.body, "chanx_" + (VERSION.match(/\.(\d+)/)[1])); $.addClass(d.body, engine); + _ref = ['navtop', 'navbot']; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + nav = _ref[_i]; + $.addClass($("a[href$='/" + g.BOARD + "/']", $.id(nav)), 'current'); + } form = $('form[name=delform]'); threading.thread(form.firstElementChild); Favicon.init(); diff --git a/script.coffee b/script.coffee index 59c62feb7..2d476e352 100644 --- a/script.coffee +++ b/script.coffee @@ -3141,6 +3141,8 @@ Main = return $.addClass d.body, "chanx_#{VERSION.match(/\.(\d+)/)[1]}" $.addClass d.body, engine + for nav in ['navtop', 'navbot'] + $.addClass $("a[href$='/#{g.BOARD}/']", $.id nav), 'current' form = $ 'form[name=delform]' threading.thread form.firstElementChild Favicon.init()