Skip to content

Commit

Permalink
fix: reddit adblock
Browse files Browse the repository at this point in the history
  • Loading branch information
ApocalypseCalculator committed Jun 24, 2024
1 parent 7570249 commit 58de45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion injects/reddit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ console.log('[AnotherAdBlock]: Reddit script injected!');
try {
const interval = setInterval(() => {
// remove ads
let ads = document.querySelectorAll('shreddit-ad-post');
let ads = document.querySelectorAll('shreddit-ad-post, shreddit-comments-page-ad, shreddit-sidebar-ad');
if(ads.length > 0) {
ads.forEach(e => {
e.remove();
Expand Down

0 comments on commit 58de45d

Please sign in to comment.