отключение задержки перед воспроизведением
当前为
// ==UserScript==
// @name Delay removal Moonwalk
// @namespace play once
// @description отключение задержки перед воспроизведением
// @match *://*/*
// @version 1.0
// @run-at document-start
// @grant unsafeWindow
// ==/UserScript==
(function () {
var w = unsafeWindow || window;
//if (w.self === w.top)
// return;
function playonce() {
if (typeof delay !== undefined)
delay=0;
}
w.addEventListener('load',function() {
if (typeof condition_detected !== undefined) {
playonce();
var player = document.getElementById('player');
if (player) player.onclick=function(){
playonce();
showVideo();
};
}
},false);
})();