This file contains 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 to hide youtube's recommended channels from mainpage | |
root@psychip.net | |
march 2017 | |
updated 25 May 2017 | |
*/ | |
setTimeout(function() { | |
$(document).ready(function() { | |
$('span') | |
.filter(function(){ return $(this).text() == 'Recommended channel for you'; }) | |
.parents("ol").parents("li").hide(); | |
}); | |
$('span') | |
.filter(function(){ return $(this).text() == 'Live Recommendations'; }) | |
.parents("ol").parents("li").hide(); | |
setTimeout(function() { | |
$('span') | |
.filter(function(){ return $(this).text() == 'Top Stories'; }) | |
.parents("ol").parents("li").hide(); | |
$('span') | |
.filter(function(){ return $(this).text() == 'Popular With Gamers'; }) | |
.parents("ol").parents("li").hide(); | |
},3000); | |
},100); | |
/* | |
Userscript browser extensions: | |
chrome: https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija | |
firefox: https://addons.mozilla.org/en-us/firefox/addon/jsinjector/ | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment