GruensFroeschli / BoingBoing Shop Filter

// ==UserScript==
// @name         BoingBoing Shop Filter
// @namespace    http://tampermonkey.net/
// @version      1.2
// @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].remove();
    }
  }
})();