xtina: (Default)
Xtina ([personal profile] xtina) wrote2017-04-10 03:24 pm

Selenium IDE script for overwriting and deleting.

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.


  • Firefox is required.

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

  • Install the Selenium plugin Flow Control and restart Firefox.


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.