Created
October 19, 2022 13:33
-
-
Save wixaw/25c69b1b0349e7f0a00fdbf93a4574d5 to your computer and use it in GitHub Desktop.
disable youtube shorts in browser in javascript js jquery
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
// Disable youtube shorts in chrome chromium brave firefox edge browser etc .... | |
// Use with "Custom Javascript for websites 2" addon ( https://chrome.google.com/webstore/detail/custom-javascript-for-web/ddbjnfjiigjmcpcpkmhogomapikjbjdk ) | |
// Jquery 3 | |
//console.log("every 10 secondes"); | |
setInterval(function(){ | |
//console.log("time to delete"); | |
$('ytd-grid-video-renderer').each(function(){ | |
$(this).find('ytd-thumbnail-overlay-time-status-renderer[overlay-style="SHORTS"]').each(function(){ | |
//console.log("find and remove"); | |
$(this).parent().parent().parent().parent().remove(); | |
}); | |
}); | |
}, 10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment