The text-only version of NPR is a great website to get news from, but it suffers from two flaws:
To remedy this, I created two bookmarklets:
var href = location.href;
href = href.split('/');
if (href.length === 8 && href[2] === "www.npr.org") {
location.href = "https://text.npr.org/s.php?sId=" + href[6];
}
var links = document.links;
var href;
for(var i = 0; i < links.length; i++)
{
href = links[i].href.split('/');
if (href.length === 8 && href[2] === "www.npr.org") {
links[i].href = "https://text.npr.org/s.php?sId=" + href[6];
links[i].title = "NPR: " + href[7].replace(/[-]/g, " ")
}
}
Last modified on 12 Mar 2019 at 07:35:46 PM EDT ET