diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-09-23 19:54:53 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-09-23 19:56:08 +0200 |
commit | 37d9a5fcb85778c19eb33f5e37a66f74de4fd71a (patch) | |
tree | 09df41720193577d58be47e2f4e4c561631a49e3 /Dagbladet noblink | |
parent | 25f440f7361264a9af07145d472364eee079f761 (diff) | |
download | userscripts-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.js | 18 |
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 |