diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee
index 7ab49173a..ed8f15443 100644
--- a/src/General/Settings.coffee
+++ b/src/General/Settings.coffee
@@ -97,19 +97,28 @@ Settings =
$.event 'OpenSettings', null, section
main: (section) ->
- warnings = []
+ warnings = $.el 'fieldset',
+ hidden: true
+ ,
+ <%= html('
') %>
+ addWarning = (item) ->
+ $.add $('ul', warnings), item
+ warnings.hidden = false
+ $.add section, warnings
+
if $.cantSync
why = if $.cantSet then 'save your settings' else 'synchronize settings between tabs'
- warnings.push $.el 'li',
+ addWarning $.el 'li',
textContent: """
<%= meta.name %> needs local storage to #{why}.
Enable it on boards.4chan.org in your browser's privacy settings (may be listed as part of "local data" or "cookies").
"""
- if warnings.length
- fs = $.el 'fieldset',
- <%= html('') %>
- $.add $('ul', fs), warnings
- $.add section, fs
+ $.onExists d.body, '.ad-cnt', true, (ad) -> $.onExists ad, 'img', true, ->
+ addWarning $.el 'li',
+ <%= html(
+ 'For security reasons' +
+ ' you should block ads on 4chan.'
+ ) %>
items = {}
inputs = {}
diff --git a/src/css/style.css b/src/css/style.css
index 7823f8750..f180d807f 100644
--- a/src/css/style.css
+++ b/src/css/style.css
@@ -563,7 +563,7 @@ div[data-checked="false"] > .suboption-list {
.section-filter textarea {
height: 500px;
}
-.section-filter a, .section-advanced a {
+.section-main a, .section-filter a, .section-advanced a {
text-decoration: underline;
}
.section-sauce textarea {