Make site software and host available to custom CSS (@document is still FF specific).
This commit is contained in:
parent
1261ff71ab
commit
62085ec6e7
@ -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']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user