您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
b站/哔哩哔哩/bilibili自动宽屏模式
// ==UserScript== // @name b站视频自动宽屏模式 // @description b站/哔哩哔哩/bilibili自动宽屏模式 // @version 1.0.2 // @author hty // @namespace https://github.com/HTY-DBY/script-biliRight // @icon https://hty.ink/logo.jpg // @grant none // @match *.bilibili.com/bangumi* // @match *.bilibili.com/video* // @license MIT // ==/UserScript== // @note 1.0.2 描述信息的修改 // @note 1.0.1 描述信息的修改 // @note 1.0.0 这里是版本更新注释 // 宽屏处理 let timer_kp = setInterval(function () { if (document.getElementById('bilibili-player')) { if (!document.getElementsByClassName('bpx-state-entered')[0]) { try { document.getElementsByClassName('bpx-player-ctrl-wide')[0].click() } catch { } } if (!document.getElementsByClassName('squirtle-video-widescreen squirtle-video-item active')[0]) { try { document.getElementsByClassName('squirtle-video-widescreen squirtle-video-item')[0].click() } catch { } } if (!document.getElementsByClassName('bilibili-player-video-btn bilibili-player-video-btn-widescreen closed')[0]) { try { document.getElementsByClassName('bilibili-player-video-btn bilibili-player-video-btn-widescreen')[0].click() } catch { } } if (getComputedStyle(document.querySelector("#bilibili-player"), null).position == 'relative') { clearInterval(timer_kp) } } }, 200)