Skip to content

Instantly share code, notes, and snippets.

@zainengineer
Last active February 16, 2017 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zainengineer/ba1eaf1159e8d3f605c42a20535d6665 to your computer and use it in GitHub Desktop.
Save zainengineer/ba1eaf1159e8d3f605c42a20535d6665 to your computer and use it in GitHub Desktop.
youtube history remove bulk
#go to youtube history page and copy pate the javascript
#in history load videos roughly upto where you want to delete
#I use it so youtube does not suggest me nursery rhyms
removeHistory = function (){
this('.yt-uix-button-icon.yt-uix-button-icon-dismissal.yt-sprite').click();
window.setTimeout(function () {
this('.yt-uix-button-icon.yt-uix-button-icon-dismissal.yt-sprite').remove();
this('.yt-uix-button-icon.yt-uix-button-icon-dismissal.yt-sprite').scrollIntoView();
console.log('done');
}.bind(this), 10);
}.bind($);
function triggerRemoveHistory()
{
removeHistory();
window.setTimeout(triggerRemoveHistory,250);
}
triggerRemoveHistory();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment