Skip to content

Instantly share code, notes, and snippets.

@PsyChip
Last active May 25, 2017 09:19
Show Gist options
  • Save PsyChip/5353d6b34c2f81e4acc9bc4cdf5c7db7 to your computer and use it in GitHub Desktop.
Save PsyChip/5353d6b34c2f81e4acc9bc4cdf5c7db7 to your computer and use it in GitHub Desktop.
/*
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