diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 6de834f61..b0e6fcd5e 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -57,6 +57,9 @@ Main = $.onExists doc, 'body', false, Main.initStyle initFeatures: -> + if location.hostname in ['boards.4chan.org', 'sys.4chan.org'] + $.globalEval 'document.documentElement.classList.add("js-enabled");' + switch location.hostname when 'a.4cdn.org' return diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 413e92ff8..1559e8e62 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -9,7 +9,6 @@ QR = return if g.VIEW is 'archive' - $.globalEval 'document.documentElement.classList.add("js-enabled");' noscript = Conf['Force Noscript Captcha'] or not $.hasClass doc, 'js-enabled' @captcha = Captcha[if noscript then 'noscript' else 'v2']