From d55c93376fb9ddeea89388f7a73a8dde5d3199da Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 23 Sep 2026 09:26:30 -0700 Subject: [PATCH] Remove instapaper_ignore elements from articles. Fixes #3501. --- Shared/Article Rendering/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Shared/Article Rendering/main.js b/Shared/Article Rendering/main.js index 76cfb3ae3..03d294091 100644 --- a/Shared/Article Rendering/main.js +++ b/Shared/Article Rendering/main.js @@ -203,6 +203,11 @@ function removeWpSmiley() { } } +// +function removeInstapaperIgnoreElements() { + document.querySelectorAll(".instapaper_ignore").forEach(element => element.remove()); +} + function processPage() { // stripStyles must run first — wrapFrames sets aspect-ratio on fixed-size iframes, which stripStyles would remove. stripStyles(); @@ -215,6 +220,7 @@ function processPage() { flattenPreElements(); styleLocalFootnotes(); removeWpSmiley() + removeInstapaperIgnoreElements(); postRenderProcessing(); }