您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
牙刷科技,还原哔哩哔哩播放器,404页面视频需挂代理
当前为
// ==UserScript== // @name bilibili toothbrush // @namespace http://www.icycat.com // @description 牙刷科技,还原哔哩哔哩播放器,404页面视频需挂代理 // @author 冻猫 // @include *www.bilibili.tv/* // @include *www.bilibili.com/* // @include *bangumi.bilibili.com/* // @include *bilibili.kankanews.com/* // @version 6.1 // @grant GM_xmlhttpRequest // @run-at document-end // ==/UserScript== (function() { if (window.top !== window.self) { return; } function init() { console.log('bilibili toothbrush 初始化'); var playerArea = document.getElementById('bofqi').parentNode; if (playerArea) { setTimeout(function() { window.scrollTo(0, getRect(playerArea).pageY); }, 100); } } function getRect(element) { var rect = element.getBoundingClientRect(); var scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft; var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; return { pageX: rect.left + scrollLeft, pageY: rect.top + scrollTop }; } init(); })();