We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
k s.4
10 years agoNew member | Level 1
remove all shared links
Hi, I have many links in the links-list. Way to many. I take it that the files linked are accessible for anyone with the link. I want all these links removed with one command. It is too many to do it...
- 8 years ago
Please be careful as it will delete all your shared links! You have been warned! Works in Chrome (61.0.3163.100) maybe firefox and internet explorer but no links to test =) Open the browser's console window (right click anywhere and select inspect or control+shift+i) while in the shared links page. Paste the following code in the console command line, click enter and it will delete all shared links.
Due to secure http loading jquery (as suggested by other post) does not work, so this option is fine with vanilla javascript. The script below simulates consecutive mouse clicks: 1. click the three dot button next to the link, 2. click the delete link button in the drop down, 3. click the delete link buttin in the pop up dialog box. Note that it will take a minute to execute all those but in the end the list shall be clear. Hope it save you some trouble... and again be careful
for( var index = 0; index < 1000; index++ )
{
var dots = document.getElementById("bubbleDropdownTarget-" + index );
if( dots == undefined ) continue;
dots.click( );
document.getElementsByClassName( "bubble-menu-item" )[0].click( );
document.getElementsByClassName( "button-primary dbmodal-button" )[0].click( );
}
piousminion
8 years agoNew member | Level 2
Update:
Open your browser's debug/dev console and paste this:
var jq = document.createElement('script'); jq.src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(jq);
Hit enter, wait 2 seconds and paste this:
jQuery.noConflict(); setInterval( function(){ setTimeout(function(){jQuery('.mc-overflow-button')[0].click();}, 500) setTimeout(function(){jQuery('.delete-link')[0].click();}, 1000); setTimeout(function(){jQuery('.button-primary')[0].click();}, 1500);}, 1000);
Hit enter and wait for it to finish.
This was tested 2017/04/15 on Firefox, but should work on Chrome as well.
- thewhitehouse8 years agoHelpful | Level 5
No Worky :(
Content Security Policy: The page's settings blocked the loading of a resource at https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js ("script-src 'unsafe-eval' https://www.dropbox.com/static/compiled/js/ https://www.dropbox.com/static/javascript/ https://www.dropbox.com/static/api/ https://cfl.dropboxstatic.com/static/compiled/js/ https://www.dropboxstatic.com/static/compiled/js/ https://cfl.dropboxstatic.com/static/previews/ https://www.dropboxstatic.com/static/previews/ https://cfl.dropboxstatic.com/static/javascript/ https://www.dropboxstatic.com/static/javascript/ https://cfl.dropboxstatic.com/static/api/ https://www.dropboxstatic.com/static/api/ 'nonce-xxxxxxxxxxxxxxxx'").
- piousminion8 years agoNew member | Level 2
I just tried it on Chrome.
I did get the error you described, but it worked anyway.
WHWYT(What Happens When You Try)?
About Create, upload, and share
Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.
Need more support
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!