Skip to content

Commit

Permalink
fix issue with reddit webpage not rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecialAro committed Aug 23, 2023
1 parent 6770f56 commit ea25d75
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions recipes/reddit/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@ module.exports = Ferdium => {
Ferdium.setBadge(count);
};

if (document.querySelectorAll('.promotedlink').length > 0) {
for (const sponsoredLink of document.querySelectorAll('.promotedlink')) {
if (
sponsoredLink.parentElement &&
sponsoredLink.parentElement.parentElement
) {
sponsoredLink.parentElement.parentElement.style.display = 'none';
}
}
}

Ferdium.loop(getMessages);

// Use CSS to hide Google Ads
Expand Down

0 comments on commit ea25d75

Please sign in to comment.