aboutsummaryrefslogtreecommitdiffstats
path: root/Dagbladet noblink
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-09-23 19:54:53 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-09-23 19:56:08 +0200
commit37d9a5fcb85778c19eb33f5e37a66f74de4fd71a (patch)
tree09df41720193577d58be47e2f4e4c561631a49e3 /Dagbladet noblink
parent25f440f7361264a9af07145d472364eee079f761 (diff)
downloaduserscripts-37d9a5fcb85778c19eb33f5e37a66f74de4fd71a.tar.gz
userscripts-37d9a5fcb85778c19eb33f5e37a66f74de4fd71a.tar.bz2
userscripts-37d9a5fcb85778c19eb33f5e37a66f74de4fd71a.zip
Update dagbladet noblink script + fix fs struct
Now uses the same structure as the Greasemonkey backup archive.
Diffstat (limited to 'Dagbladet noblink')
-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