// ==UserScript== // @name Spiegel Online: Bentoblocker // @namespace http://tampermonkey.net/ // @version 1.0 // @description Entfernt Bento aus der SPON-Homepage. // @author Sebastian Haberey // @match https://www.spiegel.de/* // @grant none // @locale de // @license MIT // @noframes // @downloadURL none // ==/UserScript== 'use strict'; (function() { function removeElement(element) { if (!element) { return; } console.debug(element); element.parentNode.removeChild(element); } var elements = document.querySelectorAll('.bento'); var elementCount = elements.length; if (!elementCount) { console.log('Did not find any Bento elements on page.'); } console.debug('Found ' + elementCount + ' Bento element(s):'); elements.forEach(removeElement); console.debug('All elements removed.'); })();