healplz / No Noise Hacker News

// ==UserScript==
// @name            No Noise Hacker News
// @description     Removes low quality links from Hacker News
// @license         MIT
// @include         https://news.ycombinator.com/*
// ==/UserScript==

document.body.innerHTML = document.body.innerHTML.replace(new RegExp(/<tr class="spacer"(?:(?!<tr)[\s\S])+<tr(?:(?!<tr)[\s\S])+<a href="from\?site=(techcrunch\.com|nytimes\.com|arstechnica\.com|wired\.com|bbc\.co\.uk|wsj\.com|businessinsider\.com|forbes\.com|cnn\.com|venturebeat\.com|mashable\.com|theverge\.com|thenextweb\.com|cnet\.com|washingtonpost\.com|theatlantic\.com|readwriteweb\.com|gigaom\.com	|theguardian\.com|economist\.com|reuters\.com|bloomberg\.com|yahoo\.com|guardian\.co\.uk|zdnet\.com|engadget\.com|slate\.com|technologyreview\.com|theregister\.co\.uk|posterous\.com|bbc\.com|gizmodo\.com|npr\.org|businessweek\.com|itworld\.com|fastcompany\.com|huffingtonpost\.com|telegraph\.co\.uk|networkworld\.com)">.+?<tr[\s\S]+?<\/tr>/, "g"), "");