Skip to content

Commit

Permalink
Merge pull request brave#7525 from brave/wapo-cleanup
Browse files Browse the repository at this point in the history
Fixes element blocking content on Washington Post
  • Loading branch information
bsclifton committed Mar 12, 2017
2 parents 99efb5a + 290aff9 commit 1fee0cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ let generateBraveManifest = () => {
persistent: true
},
content_scripts: [
{
run_at: 'document_start',
all_frames: true,
matches: ['https://www.washingtonpost.com/*'],
css: [
'content/styles/removeEmptyElements.css'
]
},
{
run_at: 'document_start',
all_frames: true,
Expand Down
3 changes: 3 additions & 0 deletions app/extensions/brave/content/styles/removeEmptyElements.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.ad-hideable {
display: none !important;
}

0 comments on commit 1fee0cd

Please sign in to comment.