Skip to content

Commit

Permalink
Merge branch 'main' into fix-custom-website-css
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecialAro committed Aug 23, 2023
2 parents 024d692 + 8f9e6c8 commit acbb54f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion recipes/reddit/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "reddit",
"name": "Reddit",
"version": "1.3.0",
"version": "1.4.0",
"license": "MIT",
"repository": "https://github.com/ferdium/ferdium-recipes",
"config": {
Expand Down
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 acbb54f

Please sign in to comment.