您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Works as of 17-Oct-2021, prevents the search bar from following as you scroll down the page
当前为
// ==UserScript== // @name New YouTube Obnoxious Bar Fix // @description Works as of 17-Oct-2021, prevents the search bar from following as you scroll down the page // @include https://www.youtube.com/* // @grant none // @namespace https://gf.qytechs.cn/users/8233 // @version 0.0.10 // ==/UserScript== function adjustBar(x) { document.getElementById('masthead-container').style.position = 'absolute'; //if above is 'absolute' and not 'static' this must be commented out or the header will overlap the vid //document.getElementById('page-manager').style['margin-top'] = 0; if(document.getElementById('frex-downbut') !== null) return true; var downbut = document.createElement('button'); downbut.id = 'frex-downbut'; downbut.innerHTML = '\u25BC'; downbut.style.background = 'none'; downbut.style.color = 'red'; downbut.style.border = 'none'; var endnode = document.getElementById('end'); endnode.parentElement.insertBefore(downbut, endnode); downbut.onclick = function () { var cont = document.getElementById('end').parentElement; window.scrollTo(0, Math.max(0, cont.offsetHeight - 10)); }; downbut.click(); return false; } function doadjustments() { //retry if its not done yet if(adjustBar() === false) window.setTimeout(doadjustments, 250); } doadjustments();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址