您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
B站视频播放自动网页全屏
// ==UserScript== // @name Bilibili视频播放自动网页全屏 // @namespace http://tampermonkey.net/ // @version 0.2 // @description B站视频播放自动网页全屏 // @author lscsczl // @license MIT // @match https://www.bilibili.com/video/* // @match https://www.bilibili.com/list/* // @grant none // @icon http://bilibili.com/favicon.ico // ==/UserScript== (function() { 'use strict'; document.addEventListener("DOMContentLoaded", function() { var customCtrlButton = document.querySelector('.bpx-player-ctrl-btn.bpx-player-ctrl-web'); if (customCtrlButton) { customCtrlButton.click(); console.log('Yes'); } else { console.log('No'); } }); var observer = new MutationObserver(function(mutationsList) { mutationsList.forEach(function(mutation) { Array.from(mutation.addedNodes).forEach(function(node) { if (node.nodeType === Node.ELEMENT_NODE && node.classList.contains('bpx-player-ctrl-btn') && node.classList.contains('bpx-player-ctrl-web')) { node.click(); console.log('Fine'); } }); }); }); observer.observe(document.body, {childList: true, subtree: true}); })();