Update due to 4chan's ad changes.

This commit is contained in:
ccd0 2016-10-27 10:30:56 -07:00
parent ca6cfd690e
commit 25d4d764d8
3 changed files with 4 additions and 3 deletions

View File

@ -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"). Enable it on boards.4chan.org in your browser's privacy settings (may be listed as part of "local data" or "cookies").
""" """
ads: (cb) -> 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} url = Redirect.to 'thread', {boardID: 'qa', threadID: 362590}
cb $.el 'li', cb $.el 'li',
<%= html( <%= html(

View File

@ -119,12 +119,13 @@ body > div[style*=" top: -10000px;"] {
:root:not(.ads-loaded) .ad-cnt > * { :root:not(.ads-loaded) .ad-cnt > * {
height: auto; height: auto;
} }
:root:not(.ads-loaded) .adg-rects,
:root:not(.ads-loaded) .ad-plea, :root:not(.ads-loaded) .ad-plea,
:root:not(.ads-loaded) hr.abovePostForm, :root:not(.ads-loaded) hr.abovePostForm,
:root:not(.ads-loaded) .ad-plea-bottom + hr { :root:not(.ads-loaded) .ad-plea-bottom + hr {
display: none; display: none;
} }
hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) { div.center[style] {
display: none !important; display: none !important;
} }

View File

@ -185,7 +185,7 @@ Main =
$.addClass doc, 'fourchan-x', 'seaweedchan' $.addClass doc, 'fourchan-x', 'seaweedchan'
$.addClass doc, if g.VIEW is 'thread' then 'thread-view' else g.VIEW $.addClass doc, if g.VIEW is 'thread' then 'thread-view' else g.VIEW
$.addClass doc, "ua-#{$.engine}" if $.engine $.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'] $.addClass doc, 'autohiding-scrollbar' if Conf['Autohiding Scrollbar']
$.ready -> $.ready ->
if d.body.clientHeight > doc.clientHeight and (window.innerWidth is doc.clientWidth) isnt Conf['Autohiding Scrollbar'] if d.body.clientHeight > doc.clientHeight and (window.innerWidth is doc.clientWidth) isnt Conf['Autohiding Scrollbar']