Skip to content

Commit

Permalink
scan-for-feeds: if on a feed page, hide its contents
Browse files Browse the repository at this point in the history
Avoid flashing during redirect by not drawing it.
  • Loading branch information
tanriol committed May 17, 2019
1 parent 91a34b0 commit 23743f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content_scripts/scan-for-feeds.js
Expand Up @@ -31,6 +31,8 @@
if(isFeedPage()) {
let TITLE = "RDF > *|title, channel > *|title, *|feed > *|title";
let linkTitle = document.querySelector(TITLE).textContent || "";
let html = document.createElementNS("http://www.w3.org/1999/xhtml", "html");
document.documentElement.replaceWith(html);
return [{linkTitle, url: document.location.href, kind: 'self'}];
}

Expand Down

0 comments on commit 23743f0

Please sign in to comment.