您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
try to take over the world!
当前为
// ==UserScript== // @name 直播平台自动网页全屏 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match http://*/* // @grant none // ==/UserScript== (function () { function clickBtn() { let url = window.location.host; if (url.indexOf("douyu.com") != -1) { document.getElementsByClassName("wfs-2a8e83")[0].click() document.getElementsByClassName("showdanmu-42b0ac")[0].click() } else if (url.indexOf("panda.tv") != -1) { document.getElementsByClassName("h5player-control-circlebar-btn h5player-control-circlebar-danmu open-switch")[0].click() document.getElementsByClassName("h5player-control-bar-btn h5player-control-bar-fullscreen")[0].click() } else if (url.indexOf("huya.com") != -1) { document.getElementById("player-danmu-btn").click() document.getElementById("player-fullpage-btn").click() } } setTimeout(clickBtn, 4000) })();