Skip to content

Instantly share code, notes, and snippets.

@wixaw
Created October 19, 2022 13:33
Show Gist options
  • Save wixaw/25c69b1b0349e7f0a00fdbf93a4574d5 to your computer and use it in GitHub Desktop.
Save wixaw/25c69b1b0349e7f0a00fdbf93a4574d5 to your computer and use it in GitHub Desktop.
disable youtube shorts in browser in javascript js jquery
// 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