HTML5自动播放视频(Video Autoplay)

模拟Youtube效果,访问页面时自动播放<video>视频。

目前為 2017-08-23 提交的版本,檢視 最新版本

// ==UserScript==
// @name         HTML5自动播放视频(Video Autoplay)
// @namespace     dking.com
// @version      0.1
// @description  模拟Youtube效果,访问页面时自动播放<video>视频。
// @author       DKing
// @match        http://*/*
// @match        https://*/*
// @include      http://*/*
// @include      https://*/*
// @grant        none
// ==/UserScript==

var wait4load = setInterval(function(){
        if(document.visibilityState == 'visible' && $('video').length > 0){
            clearInterval(wait4load);
            for(var idx =0;i++;i< $('video').length){
                $('video').get(idx).play();
            }
        }
},200);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址