Created
March 31, 2017 13:44
-
-
Save adrinavarro/85953c811e441815e6cc8ccae821409b to your computer and use it in GitHub Desktop.
Delete everything from Twitpic
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
javascript:(function()%7Bfunction%20delete_current()%20%7Bvar%20i%20%3D%200%3B%24(%22span.delete-image%22).each(function()%20%7Bi%2B%2B%3Bvar%20da%20%3D%20%24(this).attr(%22data-auth%22)%3Bvar%20id%20%3D%20%24(this).attr(%22data-id%22)%3BsetTimeout(()%20%3D%3E%20%7B%20%24.post(%22%2Fmedia%2Fdelete.json%22%2C%20%7Bauth_code%3A%20da%2C%20media_id%3A%20id%7D)%3B%20%7D%2C%20900*i)%3B%7D)%3B%7D%3Bfunction%20next_runs()%20%7BsetTimeout(()%20%3D%3E%20%7Bconsole.log(%22starting%20subsequent%22)%3B%24.get(%22%2Fphotos%2Fadrinavarro%22%2C%20%7B%7D%2C%20function(data)%20%7B%24(%22%23photo-container%22).html(%24(data).find(%22%23photo-container%22).html())%3Bdelete_current()%3B%7D)%3Bnext_runs()%3B%7D%2C%2022000)%3B%7D%3Bfunction%20main_run()%20%7Bconsole.log(%22starting%20main%22)%3Bdelete_current()%3Bnext_runs()%3B%7D%3Bmain_run()%7D)() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please swap "adrinavarro" with your username. Otherwise, it should just work. https://support.mozilla.org/t5/Learn-the-Basics-get-started/Use-bookmarklets-to-quickly-perform-common-web-page-tasks/ta-p/5218