blob: 80e0a93a69599c118f44449c1bef81d91a1fed38 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// ==UserScript==
// @name Dagbladet noblink
// @namespace snake66
// @description Remove annoying blinking backgrounds and animated marquees at dagbladet.no.
// @include https://*.dagbladet.no/*
// @include https://*.dinside.no/*
// @version 2
// @grant none
// ==/UserScript==
let blink_classes = [
'breaking--just-now',
'breaking--just-now-wave',
'breaking--pulse-background',
'breaking--pulse-kicker',
'breaking--pulsating-dots'
]
function dagbladet_noblink()
{
for (let cls of blink_classes) {
for (let blinker of document.getElementsByClassName(cls)) {
//console.log("Disabling marquee on " + blinker.nodeName + " - " + blinker.nodeId)
blinker.classList.remove(cls)
}
}
}
let dagbladet_obsrvr = new MutationObserver(dagbladet_noblink)
dagbladet_obsrvr.observe(document, { attributes: true, childList: true, subtree: true })// ==UserScript==
|