Last active
February 16, 2017 11:27
-
-
Save zainengineer/ba1eaf1159e8d3f605c42a20535d6665 to your computer and use it in GitHub Desktop.
youtube history remove bulk
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
#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