Spiegel.de: Keine Plus-Artikel

Entfernt SpiegelPlus Artikel

  1. // ==UserScript==
  2. // @name Spiegel.de: Keine Plus-Artikel
  3. // @description Entfernt SpiegelPlus Artikel
  4. // @namespace https://greasyfork.org/de/scripts/377611
  5. // @match https://www.spiegel.de/
  6. // @match https://www.spiegel.de///-a-.html
  7. // @match https://www.spiegel.de/#*
  8. // @match https://www.spiegel.de//
  9. // @match https://www.spiegel.de//#*
  10. // @match https://www.spiegel.de//archiv.html
  11. // @exclude https://www.spiegel.de/international/*
  12. // @exclude https://www.spiegel.de/fotostrecke*
  13. // @exclude https://www.spiegel.de/forum/*
  14. // @noframes
  15. // @version 1.6.5
  16. // @grant none
  17. // ==/UserScript==
  18.  
  19. var candidateSelectors = [
  20. 'div.z-10',
  21. ];
  22.  
  23. candidateSelectors = candidateSelectors.toString();
  24. var links = document.querySelectorAll('[data-contains-flags^="Spplus-paid"]');
  25.  
  26. for(var link of links) {
  27. var containerElement = link.closest(candidateSelectors);
  28. if(containerElement && containerElement.parentElement){
  29. containerElement.parentElement.removeChild(containerElement);
  30. }
  31. }