Quickly empty your timeline, status, and share with JavaScript

Source: Internet
Author: User

Now there are fewer people playing, many people worry about not playing after the things put on the above unsafe. I have the same idea, but manually delete hundreds of things, too tired, so I wrote some javascript to help delete

First of all, remind:

    • You can save your stuff locally by saving it as a browser page before deleting it (it's too bad to save it)
    • It took me a few minutes to write this code, just to delete my own, not guaranteed to work all the time.

In fact, the principle of code is very simple, according to the class name to find all the delete button, then go to click, then click OK button

How to use:

Go to the corresponding page, press F12, the review element appears, paste the following code directly at the bottom, press ENTER. (If there is no input at the bottom, press the ESC key)

This code is not a delete all, just delete the current page, Please enter the run multiple times , until all delete.

Delete Status (go to Status page)

var btn = document.getelementsbyclassname (' del-status ');  for (var i=0; i<btn.length; i++)  {    btn[i].click ();     Document.getelementsbyclassname (' Ui-button-text ') [2].click ();} Location.reload (true);

Delete Share (go to share page)

var  for (var i=0; i<btn.length; i++) {     btn[i].click ();     Document.getelementsbyclassname (' ui-button-blue ') [0].click ();}

Clear Timeline (go to profile)

var btn = Document.getelementsbyclassname (' del ');  for (var i=0; i<btn.length; i++) {     btn[i].click ();     Document.getelementsbyclassname (' input-submit ') [0].click ();}

OK, finished, suddenly a little sad, unexpectedly so all deleted.

(album deleted code is more complex, not written, the opportunity to fill in the back)

Quickly empty your timeline, status, and share with JavaScript

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.