From 054037aba2113824131b8a95968964461650ab1f Mon Sep 17 00:00:00 2001 From: Jonathan Sampson Date: Tue, 20 Mar 2018 21:42:28 -0500 Subject: [PATCH] Block empty containers --- app/extensions.js | 8 ++++++++ .../brave/content/styles/siteHack-marketwatch.com.css | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 app/extensions/brave/content/styles/siteHack-marketwatch.com.css diff --git a/app/extensions.js b/app/extensions.js index 9cae84b5d07..71cda8d9a1c 100644 --- a/app/extensions.js +++ b/app/extensions.js @@ -42,6 +42,14 @@ let generateBraveManifest = () => { persistent: true }, content_scripts: [ + { + run_at: 'document_start', + all_frames: true, + matches: ['https://www.marketwatch.com/*'], + css: [ + 'content/styles/siteHack-marketwatch.com.css' + ] + }, { run_at: 'document_start', all_frames: true, diff --git a/app/extensions/brave/content/styles/siteHack-marketwatch.com.css b/app/extensions/brave/content/styles/siteHack-marketwatch.com.css new file mode 100644 index 00000000000..03de69bfbe0 --- /dev/null +++ b/app/extensions/brave/content/styles/siteHack-marketwatch.com.css @@ -0,0 +1,7 @@ +.element--ad, +.container--bannerAd, +#brass-rail, +.ad.module, +iframe[src*="smartads.epl"] { + display: none !important; +} \ No newline at end of file