Bei mir funktioniert das Script von aborix noch.
Das hier steckt in der Erweiterung:
Code
var s = document.createElement('script')
s.textContent =
'(function() {' +
'var a = Node.prototype.addEventListener;' +
'Node.prototype.addEventListener = function(e) {' +
"if (e !== 'visibilitychange' && e !== 'webkitvisibilitychange') {" +
'a.apply(this, arguments)' +
'}}' +
'})()'
;(document.head || document.documentElement).appendChild(s)
s.remove()
Alles anzeigen
Funktioniert auch. Für den -Monkey:
Code
// ==UserScript==
// @name Don't Make Me Watch 2
// @run-at document-start
// @include *
// @grant none
// ==/UserScript==
var s = document.createElement('script')
s.textContent =
'(function() {' +
'var a = Node.prototype.addEventListener;' +
'Node.prototype.addEventListener = function(e) {' +
"if (e !== 'visibilitychange' && e !== 'webkitvisibilitychange') {" +
'a.apply(this, arguments)' +
'}}' +
'})()'
;(document.head || document.documentElement).appendChild(s)
s.remove()
Alles anzeigen