Bestimmte Elemente bei spiegel.de ausblenden
Code
// ==UserScript==
// @name Spiegel+ ausblenden
// @author Andreas
// @include *spiegel.de*
// @noframes
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @version 2.0
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// ==/UserScript==
console.log('Script is running')
$(document).ready(function(){
console.log('ready have fired');
//ele=document.getElementsByClassName('spplus')[1];
element=document.querySelectorAll('.spplus');
element.forEach((i) => {
i=i.parentNode;
i=i.parentNode;
i=i.parentNode;
inp=i.outerHTML;
inp=inp.indexOf('class="teaser');
if(inp!=-1){
console.log('kill');
i.style.display='none';
}else{
console.log('no kill');
}
});
});