Last active
December 10, 2024 23:48
-
-
Save surajmandalcell/9218878e8c8b91a826230172045527d2 to your computer and use it in GitHub Desktop.
Prevent Annoying Youtube Scroll When Clicking Play Bar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Prevent Youtube Scroll When Clicking Play Bar | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-12-10 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.youtube.com/watch* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
document.querySelector('.ytp-chrome-bottom').addEventListener('click', (e) => { | |
e.preventDefault(); | |
e.stopPropagation(); | |
}, true); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment