?

Log in

No account? Create an account
Greasemonkey script: Warn when posting anonymously - 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

lj_clients

[clayfoot]
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.
linkReply

Comments:
[User Picture]From: mrlachatte
2006-01-22 04:43 pm (UTC)
I recommend posting this to greasemonkies
(Reply) (Thread)
[User Picture]From: clayfoot
2006-01-23 02:41 am (UTC)
Huh. Didn't even know that existed. I'll do it!!!
(Reply) (Parent) (Thread)
[User Picture]From: hythloday
2006-01-23 07:42 am (UTC)
Also lj_nifty.
(Reply) (Thread)
[User Picture]From: clayfoot
2006-01-23 10:23 am (UTC)
Sure, why not? Anywhere else?
(Reply) (Parent) (Thread)
[User Picture]From: taomrois01
2006-02-01 07:47 pm (UTC)

accidental anonymous commentor

This is such a great idea!
(Reply) (Thread)