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.
From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

June 2017

S M T W T F S
    123
45678 910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Style Credit

Page generated 2017-06-28 00:17
Powered by Dreamwidth Studios