您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Autoplays all videos on the page
// ==UserScript== // @name Wyze Web View Auto Play // @namespace http://tampermonkey.net/ // @version 0.1 // @description Autoplays all videos on the page // @author [email protected] // @license MIT // @match https://view.wyze.com/* // @icon https://wyze.com/media/favicon/stores/1/favicon-32x32.png // @grant none // @run-at document-idle // ==/UserScript== (function() { 'use strict'; //set timeout isn't a perfect solution, slower connections 2s might not be sufficient. //possibly change this is the future. const autoPlay = setTimeout(()=>{ //class might change, will prob need to dynamically get the play button in the future let playbuttons = document.querySelectorAll(".c-fYPKku") || []; Array.from(playbuttons).map((play_button, i) => { play_button.click(); }); }, 2000); })();