fiers-grease/YouTube Mobile - No minimiz...

19 lines
547 B
JavaScript
Raw Permalink Normal View History

2020-11-20 22:06:15 +00:00
// ==UserScript==
// @name YouTube Mobile - No minimization halt
// @namespace youtube-nomini
// @description Do not halt videos when the page is minimized
// @include http://m.youtube.com/*
// @include https://m.youtube.com/*
// @version 1.0
// @grant none
// @run-at document-start
// ==/UserScript==
2021-03-16 17:05:21 +00:00
var docEventListener = document.__proto__.addEventListener
2020-11-20 22:06:15 +00:00
document.__proto__.addEventListener = function() {
if (arguments[0] == "visibilitychange") {
return
}
return docEventListener(...arguments)
}