New Social Media Site: substack notes #33
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've been posting to substack notes.
Here's the procedure.
From the substack publisher's dashboard (url: https://freedomain.substack.com/publish/home)
Click "New post" -> "New note" (the XPath here doesn't appear to be terribly unique, but the "New note" element looks like it's in the page source when the menu isn't expanded, so maybe you can find the button containing the text "New note" inside of the
button.pencraft > div.pencraftelement hierarchy. Input dialog is only created once this button is clicked.):Input text
Click "image attachment" button in lower left (again, not much help with unique class IDs, but there is a
button.pencraft > input[type="file"]hierarchy that might work, not sure how detailed you'd need to be):button.pencraftelement containing the text "Post")Neglected to take a screenshot after the image is attached, it shows up at the bottom of the post.
Sorry, i never got a notification on this (my fault, i think I might have disabled them) and am just seeing this.
I'll try to take some time this weekend and take a crack at implementing.
Alright, it only took me 2 months to write about 2 dozen lines of code and test it, but latest update has initial support for Substack. They either have a super complex website framework or do a bunch of obfuscation of the HTML, so it might be slightly prone to breaking. Let me know when you run into any breakage.