Skip to content

Instantly share code, notes, and snippets.

@benpage26
Created July 6, 2016 16:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benpage26/f9ca98a317660ab99aa3f8ea223b2051 to your computer and use it in GitHub Desktop.
Save benpage26/f9ca98a317660ab99aa3f8ea223b2051 to your computer and use it in GitHub Desktop.
remove all dropbox public links
# Using chrome dev tools at https://www.dropbox.com/links/your_links run:
$x('//a[@class="remove-link"]').each( function(x) {
x.click()
$x('//button[text()="Delete link"]')[0].click()
})
@piousminion
Copy link

Firefox console gives the following. Any tips?
TypeError: $x(...).each is not a function

@max-pub
Copy link

max-pub commented Aug 23, 2019

$$('#links-list .mc-popover-trigger').forEach(n=>{
    console.log('delete',n);
    n.click();
    $('.delete-link').click()
    $('.button-primary').click()
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment