diff --git a/recipes/reddit/package.json b/recipes/reddit/package.json index 07b71123d..b20f4bc69 100644 --- a/recipes/reddit/package.json +++ b/recipes/reddit/package.json @@ -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": { diff --git a/recipes/reddit/webview.js b/recipes/reddit/webview.js index aac376663..7b36b1a65 100644 --- a/recipes/reddit/webview.js +++ b/recipes/reddit/webview.js @@ -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