aboutsummaryrefslogtreecommitdiffstats
path: root/Dagbladet noblink/Dagbladet noblink.user.js
blob: 233a0353a06d9c55e6853164de703b8baf20a422 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// ==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  		1
// @grant    		none
// ==/UserScript==

let blink_classes = ['breaking--just-now', 'breaking--pulse-background', 'breaking--pulse-kicker']

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)
  }
}