forked from okb/UserScripts
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathfotballfilter.user.js
More file actions
12 lines (11 loc) · 828 Bytes
/
fotballfilter.user.js
File metadata and controls
12 lines (11 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
// ==UserScript==
// @name Fotballfilter
// @namespace http://www.okblogg.no
// @description Gjør et tappert forsøk på å fjerne fotballnyheter fra nettaviser
// @match http://www.dagbladet.no/*
// @match http://www.vg.no/*
// @match http://www.nrk.no/*
// @match http://www.aftenposten.no/*
// @match http://www.nettavisen.no/*
// ==/UserScript==
for(var a=document.evaluate("//a[contains(@href, 'fotball') or contains(@title, 'fotball')]/ancestor::div[contains(@class,'ddCell') or contains(@class,'article-extract') or contains(@class,'gridUnit') or contains(@class,'article_small') or contains(@class,'art_medium')][1]",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),b=a.snapshotLength-1;b>=0;b--){var c=a.snapshotItem(b);c.parentNode.removeChild(c)};