Scroll To Video Top

0px on top

目前为 2021-07-20 提交的版本。查看 最新版本

// ==UserScript==
// @name         Scroll To Video Top
// @namespace    https://space.bilibili.com/6727237
// @version      1.4
// @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')){
                        document.getElementById("app").style.marginTop="20px"
						window.scrollTo(0,76)
					} else if (document.location.href.match('video')) {
						window.scrollTo(0,152)
					} else if (document.location.href.match('play')) {
						window.scrollTo(0,76)
					}};
setInterval(
    function (){
        //bilibili-player-video-btn bilibili-player-video-btn-widescreen
		document.getElementsByClassName('squirtle-widescreen-wrap')[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('bpx-player-video-inputbar')[0].style.width="100%";
        document.getElementsByClassName('bpx-player-video-inputbar')[0].style.maxWidth="100%";
        document.getElementsByClassName('bpx-player-video-inputbar-wrap')[0].style.width="100%";
        document.getElementsByClassName('bpx-player-dm-input')[0].style.minWidth="500px";
    },
    5000);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址