Remove instapaper_ignore elements from articles. Fixes #3501.

This commit is contained in:
Brent Simmons committed 2026-09-23 09:26:30 -07:00
1 parent 8ce9a7251c
commit d55c93376f
1 file changed
+6
+6
View File
@@ -203,6 +203,11 @@ function removeWpSmiley() {
}
}
// <https://github.com/Ranchero-Software/NetNewsWire/issues/3501>
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();
}