Greasy Fork is available in English.
进入视频自动开始并静音。移除自动暂停
当前为
// ==UserScript==
// @name 视频相关
// @include *://*
// @version 1.2
// @description 进入视频自动开始并静音。移除自动暂停
// @author sndcyp
// @match *://*
// @grant none
// @namespace
// ==/UserScript==
$(document).ready(function () {
// (function () {
// 'use strict';
window.onfocus = function () { console.log('原始事件已被替换') };
window.onblur = function () { console.log('原始事件已被替换') };
var tmp = setInterval(function () {
if (player) {
player.addListener('loadedmetadata', function () {
player.videoPlay();
player.videoMute();
clearInterval(tmp);
});
}
}, 500);
});