xtina: (Default)
I have put together a Selenium IDE script to overwrite previous entries, then delete them, individually. It takes a long while, but if you're looking with interest at this script, you probably already knew it wasn't gonna be swift.

You will need to agree to the TOS for this to work. There is no getting around that that I'm aware of. Sorry about that.

Details below the cut.

Setup

  • Firefox is required.

  • Install the Firefox add-on Selenium IDE and restart Firefox.

  • Install the Selenium plugin Flow Control and restart Firefox.


Script

The script is located here. To install:

  • Open Firefox.

  • Open Selenium IDE.

  • In the new window, click the Source tab.

  • Delete everything out.

  • On the gist script page, click "Raw".

  • Copy everything on that page into the Source tab.

  • Click the Table tab in Selenium.


You'll need to add your username and password so that the script can log in as you. This is NOT stored anywhere on the internet! All local, all the time. 🤘

  • At the top of the script, select the line that reads:

    store   your-username   username

  • In the bottom pane, you'll see three fields: Command, Target, and Value. In the Target field, change the text from your-username to your actual username.

  • Follow the same steps for the password line.

  • Follow the same steps for the customText line.



Run that thing

To run the script, click the green Play button at the top, or go to Actions > "Play current test case".

What it does:

  1. Logs into LJ on your behalf.

  2. Goes to your main journal page.

  3. For every entry, it overwrites the entry body with your own text, changes the setting to private, saves, then deletes the entry.


Thing to know:

You can't use Firefox while this is running. Ideally you have access to another browser.

I also have a total hax for the Python package "lj"... I'll put that up later.

Sharing is fine.

Date: 2017-04-24 02:24 (UTC)From: [personal profile] aedifica
aedifica: Silhouette of a girl sitting at a computer (Girl at computer)
Thank you for this!

Do you know off the top of your head if there's a way to mass delete comments (other than by deleting the entries the comments are on)? I'm not worried about comments I've left in other journals, but I'm thinking about overwriting my entries without deleting them, and don't want to leave my friends' comments hanging around if I do that. If you don't know, I'll go digging to see if I can find it--but I thought it worth asking in case you do happen to know.

(waves hi from slack)

September 2017

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Page generated 2017-09-19 11:42
Powered by Dreamwidth Studios