19 lines
547 B
JavaScript
19 lines
547 B
JavaScript
// ==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==
|
|
|
|
var docEventListener = document.__proto__.addEventListener
|
|
document.__proto__.addEventListener = function() {
|
|
if (arguments[0] == "visibilitychange") {
|
|
return
|
|
}
|
|
return docEventListener(...arguments)
|
|
}
|