您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
0px on top
当前为
// ==UserScript== // @name Scroll To Video Top // @namespace https://space.bilibili.com/6727237 // @version 0.9 // @description:zh-cn 0px on top // @author 尺子上的彩虹 // @match https://www.bilibili.com/video/* // @match https://www.bilibili.com/bangumi/play/* // @grant none // @description 0px on top // ==/UserScript== var windyfunction=function() { if (document.location.href.match('bangumi')){ window.scrollTo(0,75) } else if (document.location.href.match('video')) { window.scrollTo(0,151) }}; setInterval( function (){ document.getElementsByClassName('bilibili-player-video-btn bilibili-player-video-btn-widescreen')[0].addEventListener('click',windyfunction); for(var v=0;v<document.getElementsByClassName('ep-item').length;v++){ document.getElementsByClassName('ep-item')[v].addEventListener('click',windyfunction); } document.getElementsByClassName('bilibili-player-video-inputbar')[0].style.width="100%"; document.getElementsByClassName('bilibili-player-video-inputbar')[0].style.maxWidth="100%"; document.getElementsByClassName('bilibili-player-video-sendbar')[0].style.maxWidth="100%"; }, 5000);