mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Remove instapaper_ignore elements from articles. Fixes #3501.
This commit is contained in:
1 parent
8ce9a7251c
commit
d55c93376f
1 file changed
+6
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user