From 62085ec6e7b8054b0bc3e08188082df5bed1650d Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 24 Jan 2018 00:29:08 -0800 Subject: [PATCH] Make site software and host available to custom CSS (@document is still FF specific). --- src/main/Main.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 25df930db..3065b022d 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -206,6 +206,8 @@ Main = # disable the mobile layout $('link[href*=mobile]', d.head)?.disabled = true + doc.dataset.host = location.host + $.addClass doc, "sw-#{Site.software}" $.addClass doc, if g.VIEW is 'thread' then 'thread-view' else g.VIEW $.onExists doc, '.ad-cnt, .adg-rects > .desktop', (ad) -> $.onExists ad, 'img, iframe', -> $.addClass doc, 'ads-loaded' $.addClass doc, 'autohiding-scrollbar' if Conf['Autohiding Scrollbar']