您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide Youtube's seek bar with your context menu
- // ==UserScript==
- // @name Hide Youtube seek bar
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Hide Youtube's seek bar with your context menu
- // @author WhiteTapeti
- // @match *://www.youtube.com/watch?v=*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
- // @run-at context-menu
- // ==/UserScript==
- (function() {
- var hiddenSeekbarThingE = 0;
- if (hiddenSeekbarThingE == 0) {
- console.log('add seekbar styles')
- var elemDivHiddenSeekbarThing = document.createElement('div');
- elemDivHiddenSeekbarThing.innerHTML = ( `
- <style>
- .ytp-chrome-top.hidden-seekbar-thing,.ytp-chrome-bottom.hidden-seekbar-thing, .ytp-gradient-top.hidden-seekbar-thing, .ytp-gradient-bottom.hidden-seekbar-thing {display:none!important;}
- </style>
- `);
- document.body.append(elemDivHiddenSeekbarThing);
- hiddenSeekbarThingE = 1;
- }
- var seekBarThing = document.querySelector('.ytp-chrome-top');
- seekBarThing.classList.toggle('hidden-seekbar-thing');
- console.log(seekBarThing);
- seekBarThing = document.querySelector('.ytp-chrome-bottom');
- seekBarThing.classList.toggle('hidden-seekbar-thing');
- console.log(seekBarThing);
- seekBarThing = document.querySelector('.ytp-gradient-top');
- seekBarThing.classList.toggle('hidden-seekbar-thing');
- console.log(seekBarThing);
- seekBarThing = document.querySelector('.ytp-gradient-bottom');
- seekBarThing.classList.toggle('hidden-seekbar-thing');
- console.log(seekBarThing);
- })();