4 ms·
I assume you mean seen but not visited, since as the other reply says, the browser tracks :visited for you. I have a more aggressive greasemonkey script that h
by bazzargh 11y ago
I assume you mean seen but not visited, since as the other reply says, the browser tracks :visited for you.
I have a more aggressive greasemonkey script that hides lots of non-technical links on HN
var links = document.links;
var boring = [ "adage.com", "arstechnica", "bbc", "discovermagazine", "bloomberg",
"bloombergview", "buzzfeed", "businessinsider",
"californiasunday","cnn","csmonitor","dailymail",
"digg", "economist","esquire", "fastcompany",
"forbes", "ft.com", "fortune", "fusion", "geekwire",
"gizmodo", "harvard.edu", "huffingtonpost", "inc.com",
"longreads", "medium", "mondaynote",
"nature", "nautil.us", "newscientist", "newstatesman",
"newyorker", "npr.org", "nybooks", "nymag", "nytimes", "pando",
"psychologytoday", "qz.com", "reddit", "reuters", "sciencedaily",
"scientificamerican", "slate", "techcrunch", "telegraph",
"theatlantic", "theguardian", "thenation","theparisreview",
"theverge", "theregister", "time", "usatoday", "vancouversun",
"vice", "vimeo",
"vogue", "washingtonpost", "wired", "wsj", "yahoo",
"youtube", "zdnet" ];
matcher = new RegExp("\\b("+(boring.join("|").replace(/\./g,"\\."))+")\\b");
for (i=0; i<links.length; i++) {
hostname = links[i].hostname.replace(/^www\./,"");
if (hostname.match(matcher)) {
links[i].style.setProperty("display", "none");
links[i].parentNode.insertBefore(document.createTextNode("[removed]"), links[i]);
}
}
Just to be clear, I read a lot of those sites - I'm just not interested in seeing them on HN, where I'm looking for technical news.
Anyway, you could adapt this by parsing the age field and making judgements based on how old the article is and your time of day (ie you'll have seen a 6 hour old article at the end of the day, but at the start of the day, it first appeared overnight)