Cosmetic fixes for blocked ads.

This commit is contained in:
ccd0 2015-12-05 15:41:05 -08:00
parent d30ea62d14
commit 05b13d4fdd
2 changed files with 12 additions and 6 deletions

View File

@ -158,6 +158,7 @@ Main =
$.addClass doc, 'fourchan-x', 'seaweedchan'
$.addClass doc, if g.VIEW is 'thread' then 'thread-view' else g.VIEW
$.addClass doc, $.engine if $.engine
$.onExists doc, '.ad-cnt', true, (ad) -> $.onExists ad, 'img', true, -> $.addClass doc, 'ads-loaded'
$.addStyle Main.css, 'fourchanx-css'
keyboard = false

View File

@ -71,9 +71,6 @@ body.hasDropDownNav{
border-radius: 3px;
padding: 0px 2px;
}
.ad-plea {
display: none;
}
/* 4chan style fixes */
.opContainer, .op {
@ -91,9 +88,6 @@ body.hasDropDownNav{
[hidden] {
display: none !important;
}
hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) {
display: none !important;
}
.page-num {
margin-right: -8px;
}
@ -123,6 +117,17 @@ body > div[style*=" top: -10000px;"] {
visibility: hidden !important;
}
/* Ads */
:root:not(.ads-loaded) .ad-cnt,
: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) {
display: none !important;
}
/* Anti-autoplay */
audio.controls-added {
display: block;