background preloader

Youtube

Facebook Twitter

How to Remove "Recommended" Videos / Center the YouTube Layout! Javascript Code to Delete Youtube’s Recommended | geoffritchey. Youtube’s recommended video’s really annoy me. When I got ‘rickrolled’ by one of the videos, I decided to write some code to filter them out. Firstly, If all you want is the completed Firefox plugin, you can get that here.

A cautionary note: this plugin relies on youtube naming the link with the word ‘recommended’. If youtube ever changes that, this program will stop working. To use the following script you should visit your Youtube home page. I developed the Javascript by using Firefox and the addon Firebug. Var count = 0; function doStuff() { console.log("do stuff... "); var uls = document.getElementsByTagName('li'); var length = uls.length; if (length == count) { setTimeout(doStuff, 10000); return; } console.log("really do stuff"); var as; var removed = 0; for ( var i = length - 1; i >= 0; i--) { var remove = false; as = uls[i].getElementsByTagName('a'); for ( var j = 0, jLen = as.length; j < jLen; j++) { if (as[j].href.indexOf("recommended") ! Download the addon-sdk from mozilla.

No. Curiosidad - ¿Qué es maldad? Curiosidad 01 - ¿Creó Dios el Universo? (Stephen Hawking)