From 8f9e6c8ccd0d49b155ab8e680b3db62b18479bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Oliveira?= <37463445+SpecialAro@users.noreply.github.com> Date: Wed, 23 Aug 2023 16:15:50 +0100 Subject: [PATCH] Fix Reddit webpage not rendering (#404) --- recipes/reddit/package.json | 2 +- recipes/reddit/webview.js | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) 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