diff --git a/components/brave_extension/extension/brave_extension/assets/removeEmptyElements.css b/components/brave_extension/extension/brave_extension/assets/removeEmptyElements.css deleted file mode 100644 index 823625d92f36..000000000000 --- a/components/brave_extension/extension/brave_extension/assets/removeEmptyElements.css +++ /dev/null @@ -1,27 +0,0 @@ -.ad-hideable, - .ad-div, - .masthead-ad-control, - .video-ads, - .promoted-sparkles-text-search-root-container, - .ytd-compact-promoted-video-renderer, - #ytd-promoted-sparkles-web-renderer, - #ytm-promoted-sparkles-text-search-renderer, - #pla-shelf, - #merch-shelf, - #ad_creative_3, - #footer-ads, - #watch7-sidebar-ads, - .ytp-ad-progress-list, - .ad-container, - #video-masthead, - #watch-channel-brand-div, - #Billboard-ad { - display: none !important; -} - -/* YouTube Masthead and Sidebar Ads */ -#player-ads.ytd-watch, -ytd-page-manager #masthead-ad.ytd-browse { - display: none !important; -} - diff --git a/components/brave_extension/extension/brave_extension/assets/siteHack-coinmarketcap.com.css b/components/brave_extension/extension/brave_extension/assets/siteHack-coinmarketcap.com.css deleted file mode 100644 index fe92b2bb858e..000000000000 --- a/components/brave_extension/extension/brave_extension/assets/siteHack-coinmarketcap.com.css +++ /dev/null @@ -1,5 +0,0 @@ -#icobanner-wrapper, -.container #leaderboard, -.container #leaderboard-bottom { - display: none !important; -} diff --git a/components/brave_extension/extension/brave_extension/assets/siteHack-glennbeck.com.js b/components/brave_extension/extension/brave_extension/assets/siteHack-glennbeck.com.js deleted file mode 100644 index fc6f41f143cd..000000000000 --- a/components/brave_extension/extension/brave_extension/assets/siteHack-glennbeck.com.js +++ /dev/null @@ -1,6 +0,0 @@ -// Site checks indexOf(' gb3...') - Note the leading space. -// Thus we add it after __a=1 -document.cookie = '__a=1' -document.cookie = 'gb3lightbox=1' -document.cookie = 'lightbox_ad=true' -console.log('we set some cookies!!') diff --git a/components/brave_extension/extension/brave_extension/assets/siteHack-marketwatch.com.css b/components/brave_extension/extension/brave_extension/assets/siteHack-marketwatch.com.css deleted file mode 100644 index 03de69bfbe04..000000000000 --- a/components/brave_extension/extension/brave_extension/assets/siteHack-marketwatch.com.css +++ /dev/null @@ -1,7 +0,0 @@ -.element--ad, -.container--bannerAd, -#brass-rail, -.ad.module, -iframe[src*="smartads.epl"] { - display: none !important; -} \ No newline at end of file diff --git a/components/brave_extension/extension/brave_extension/manifest.json b/components/brave_extension/extension/brave_extension/manifest.json index 6ef22c012fb2..3b2ea3aba122 100644 --- a/components/brave_extension/extension/brave_extension/manifest.json +++ b/components/brave_extension/extension/brave_extension/manifest.json @@ -52,40 +52,6 @@ ], "run_at": "document_start", "all_frames": true - }, { - "run_at": "document_start", - "all_frames": true, - "matches": [ - "https://www.washingtonpost.com/*", - "https://www.youtube.com/*", - "https://www.yahoo.com/*" - ], - "css": [ - "assets/removeEmptyElements.css" - ] - }, { - "run_at": "document_start", - "all_frames": true, - "matches": [ - "https://coinmarketcap.com/*" - ], - "css": [ - "assets/siteHack-coinmarketcap.com.css" - ] - }, { - "run_at": "document_start", - "all_frames": true, - "matches": ["https://www.marketwatch.com/*"], - "css": [ - "assets/siteHack-marketwatch.com.css" - ] - }, { - "run_at": "document_start", - "all_frames": true, - "matches": ["https://www.glennbeck.com/*"], - "js": [ - "assets/siteHack-glennbeck.com.js" - ] } ], "permissions": [ "contentSettings", "settingsPrivate", "management", "tabs", "storage", "webNavigation", "contextMenus", "cookies", "*://*/*", "chrome://favicon/*" ], diff --git a/components/brave_extension/extension/resources.grd b/components/brave_extension/extension/resources.grd index 6bc03b75e80e..0d7b93d120fd 100644 --- a/components/brave_extension/extension/resources.grd +++ b/components/brave_extension/extension/resources.grd @@ -26,9 +26,6 @@ - - -