Skip to content

Instantly share code, notes, and snippets.

@PsyChip PsyChip/youtubefilter.js
Last active May 25, 2017

Embed
What would you like to do?
/*
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
You can’t perform that action at this time.