aboutsummaryrefslogtreecommitdiffstats
path: root/Dagbladet noblink/Dagbladet noblink.user.js
diff options
context:
space:
mode:
Diffstat (limited to 'Dagbladet noblink/Dagbladet noblink.user.js')
-rw-r--r--Dagbladet noblink/Dagbladet noblink.user.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/Dagbladet noblink/Dagbladet noblink.user.js b/Dagbladet noblink/Dagbladet noblink.user.js
new file mode 100644
index 0000000..233a035
--- /dev/null
+++ b/Dagbladet noblink/Dagbladet noblink.user.js
@@ -0,0 +1,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)
+ }
+} \ No newline at end of file