Update due to 4chan's ad changes.
This commit is contained in:
parent
ca6cfd690e
commit
25d4d764d8
@ -113,7 +113,7 @@ Settings =
|
||||
Enable it on boards.4chan.org in your browser's privacy settings (may be listed as part of "local data" or "cookies").
|
||||
"""
|
||||
ads: (cb) ->
|
||||
$.onExists doc, '.ad-cnt', (ad) -> $.onExists ad, 'img', ->
|
||||
$.onExists doc, '.ad-cnt, .adg-rects', (ad) -> $.onExists ad, 'img, iframe', ->
|
||||
url = Redirect.to 'thread', {boardID: 'qa', threadID: 362590}
|
||||
cb $.el 'li',
|
||||
<%= html(
|
||||
|
||||
@ -119,12 +119,13 @@ body > div[style*=" top: -10000px;"] {
|
||||
:root:not(.ads-loaded) .ad-cnt > * {
|
||||
height: auto;
|
||||
}
|
||||
:root:not(.ads-loaded) .adg-rects,
|
||||
:root:not(.ads-loaded) .ad-plea,
|
||||
:root:not(.ads-loaded) hr.abovePostForm,
|
||||
:root:not(.ads-loaded) .ad-plea-bottom + hr {
|
||||
display: none;
|
||||
}
|
||||
hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) {
|
||||
div.center[style] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
@ -185,7 +185,7 @@ Main =
|
||||
$.addClass doc, 'fourchan-x', 'seaweedchan'
|
||||
$.addClass doc, if g.VIEW is 'thread' then 'thread-view' else g.VIEW
|
||||
$.addClass doc, "ua-#{$.engine}" if $.engine
|
||||
$.onExists doc, '.ad-cnt', (ad) -> $.onExists ad, 'img', -> $.addClass doc, 'ads-loaded'
|
||||
$.onExists doc, '.ad-cnt, .adg-rects', (ad) -> $.onExists ad, 'img, iframe', -> $.addClass doc, 'ads-loaded'
|
||||
$.addClass doc, 'autohiding-scrollbar' if Conf['Autohiding Scrollbar']
|
||||
$.ready ->
|
||||
if d.body.clientHeight > doc.clientHeight and (window.innerWidth is doc.clientWidth) isnt Conf['Autohiding Scrollbar']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user