Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Greasemonkey script: Warn when posting anonymously [Jan. 21st, 2006|09:18 pm]
LiveJournal Client Discussions


Every day, it seems somebody accidentally posts anonymously and quickly follows up with a "That was me" logged-in post. This GreaseMonkey script pops up a 'confirm' dialog and asks you to click 'OK' to continue posting anonymously. It works by adding an event listener to the 'click' event on the submit button. When you click the 'Post Comment' submit button, the event handler looks for the session cookie and a username inside the session cookie. If it finds the cookie and a username, no problem. If not, the dialog pops up to confirm.

Look it over and see if I've missed anything important. If all is well, I'll formally submit it to UserScripts.org.

LJ Anonymous Comment Warning

Of course, you'll need FireFox and the Greasemonkey extension.

[User Picture]From: clayfoot
2006-01-23 05:41 am (UTC)
Huh. Didn't even know that existed. I'll do it!!!
(Reply) (Parent) (Thread)