diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-17 09:16:56 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-17 09:16:56 +0900 |
| commit | b930c710a29410daa2368258db69d9830a656c5d (patch) | |
| tree | 5665d798d2601619940230a0e6dfaecd61dcab57 /ar/.config/qutebrowser/greasemonkey/youtube.css.js | |
| parent | 6560acee5bf5fce09b6ced1c9a3d3d111459878d (diff) | |
updates
Diffstat (limited to 'ar/.config/qutebrowser/greasemonkey/youtube.css.js')
| -rw-r--r-- | ar/.config/qutebrowser/greasemonkey/youtube.css.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ar/.config/qutebrowser/greasemonkey/youtube.css.js b/ar/.config/qutebrowser/greasemonkey/youtube.css.js new file mode 100644 index 0000000..6807ff3 --- /dev/null +++ b/ar/.config/qutebrowser/greasemonkey/youtube.css.js @@ -0,0 +1,31 @@ +// ==UserScript== +// @name YouTube +// @include *://*.youtube.com/* +// ==/UserScript== + +/* ~/.config/qutebrowser/greasemonkey/youtube.css.js :: */ + +document.addEventListener( + "load", + () => { + try { + document.querySelector(".ad-showing video").currentTime = 99999; + } catch {} + try { + document.querySelector(".ytp-ad-skip-button").click(); + } catch {} + }, + true, +); + +GM_addStyle(` + ytd-compact-promoted-video-renderer, + .ytd-action-companion-ad-renderer, + .ytd-ad-slot-renderer, + .ytd-promoted-sparkles-web-renderer { + display: none !important; + }, + .ytp-gradient-bottom { + display: none !important + } +`); |
