Skip to content

Instantly share code, notes, and snippets.

@TheB1ackSheep
Created April 17, 2016 06:09
Show Gist options
  • Save TheB1ackSheep/bdde74e57cfa0a14207c1f818cb187ca to your computer and use it in GitHub Desktop.
Save TheB1ackSheep/bdde74e57cfa0a14207c1f818cb187ca to your computer and use it in GitHub Desktop.
Just go to album and run each line orderly. Note that before run the 3rd line you have to wait till all dialog show up.
a = document.querySelectorAll('a[data-tooltip]');for(var i=0;i < a.length; i++){a[i].click();}
b = document.querySelectorAll('li[data-label="Delete this photo"]>a');for(var i=0;i < b.length; i++){b[i].click();}
c = document.querySelectorAll('div[class*=uiLayer] button[type="submit"]');for(var i=0;i < c.length; i++){c[i].click();}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment