Script Summary: Inserts a username for any given LJ-esque site, or Twitter, into your post.
This is for the HTML page only, not for Rich Text.
The code by default checks for these journals:
That's a generous mix of LJ-esque sites and sites that are (or soon will be) explicitly supported.
If you type in something not on that list, the "site" attribute puts it in anyhow.
If you are having an issue, or you have a suggestion, feel free to comment here! Feel encouraged, even! I want my scripts to be good, so. ^^
[2011-04-02 12:04] I literally just found out today that one can put in non-standard "site" URLs, and DW will put in a generic icon. So, I removed the part that removes what you type if it's not on the list.
[2011-03-18 08:37] DW adds Twitter support, I add Twitter support.
[2009-12-09 16:42] Arr, added code for if the user erases the site name.
[2009-12-09 14:51] Moved default option to the GM menu.
[2009-10-19 08:53] Added a bit of character verification. The character must be alphanumeric or have an underscore or hyphen. So:
If some site permits more than that, lemme know.
[2009-09-08 11:35] You can specify a default journal, plus the vertical alignment of the "Add LJesque User" text is way better.
[2009-09-07 11:58] If you highlight text, it'll assume you want that for the username, and will put that as the default answer for "username?". It also now not only returns you to your post, it returns you to your post where you left off. So if you were in the middle somewhere and inserted username=lj_news, you'd remain in the middle of the paragraph.
[2009-09-06 22:02] Added the editjournal page to the @includes list.
[2009-09-06 14:26] I cleaned it up a bit. It now removes all spaces from the username field, and adding other LJesque journals is infinitely easier.
[2009-09-02 10:30] And now, it returns focus to the text box! Aren't I a clever girl.
[2009-09-02 20:36] When you click Cancel, it cancels out. Also, used toLowerCase() correctly, hi.