您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动选择最高画质,自动网页全屏,自动定位到播放器
当前为
// ==UserScript== // @name BiliBili播放页调整(自用) // @namespace https://greasyfork.org/zh-CN/scripts/415804-bilibili%E6%92%AD%E6%94%BE%E9%A1%B5%E8%B0%83%E6%95%B4-%E8%87%AA%E7%94%A8 // @version 0.1.5 // @description 自动选择最高画质,自动网页全屏,自动定位到播放器 // @author QIAN // @match *://*.bilibili.com/video/* // @match *://*.bilibili.com/bangumi/play/* // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js // ==/UserScript== $(function() { //自动选择最高画质,自动网页宽屏 function autoSelect() { let changeSet = setInterval(function() { if ($('.bilibili-player-video-btn.bilibili-player-video-btn-widescreen').hasClass("closed")) { clearInterval(changeSet); // $('.bilibili-player-video-btn.bilibili-player-video-btn-widescreen').addClass('temp'); } else { $('.bilibili-player-video-btn.bilibili-player-video-btn-widescreen').click(); $('.bui-select-list-wrap > ul > li').eq(0).click(); changeSet = setInterval(function() {}, 1000); } }, 1000); } function autoLocation() { if ($('#bilibiliPlayer').length > 0 || $("#bilibili-player").length > 0) { $('#bilibiliPlayer').on("click", function() { $("html,body").scrollTop($("#bilibiliPlayer").offset().top - 9); }); $('#bilibili-player').on("click", function() { $("html,body").scrollTop($("#bilibili-player").offset().top - 9); }); } } autoSelect(); autoLocation(); });