Skip to content

Commit

Permalink
Block AMP ADs
Browse files Browse the repository at this point in the history
  • Loading branch information
JingMatrix committed Jan 5, 2023
1 parent d20f5d5 commit 9067a69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cosmetic-filter.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ if (filter != null) {
});
}

document.querySelectorAll("amp-ad,amp-embed,amp-sticky-ad").forEach((node) => node.remove());

const removeIframe = () => {
iframes = document.querySelectorAll("iframe");
iframes.forEach((node) => {
Expand Down

0 comments on commit 9067a69

Please sign in to comment.