NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name BoingBoing Shop Filter
// @namespace http://tampermonkey.net/
// @version 1.3
// @description Filter out BoingBoing Shop advertisements
// @author Matthias May
// @license LGPL-2.0-or-later
// @match https://boingboing.net/blog*
// @grant none
// ==/UserScript==
(function () {
const elements = document.getElementsByTagName('article');
for (var i = elements.length - 1; i >= 0; i--) {
if ((elements[i].getElementsByClassName('byline')[0].getAttribute('href') == "https://boingboing.net/author/boingboingstore") ||
(elements[i].getElementsByClassName('byline')[0].getAttribute('href') == "https://boingboing.net/author/sponsoredpost") ||
(elements[i].getElementsByClassName('byline')[0].getAttribute('href') == "https://boingboing.net/author/treymartin")) {
elements[i].remove();
}
}
})();