|
Sometimes you just slap your head because a very hard problem has such a simple answer.
If you use Digg, you're well aware how painful it is to delete your incoming shouts if you have a large number of friends. And of course, if you're serious about promoting anything on Digg, you'll have a lot of friends. After a week of vacation over the 4th of July, I recently came back to 50 pages of incoming shouts. That's a lot of clicking on the delete button and the "Are You Sure you want to delete this shout?" dialog that Digg so graciously offers.
PMS Social Suite Clears out your Digg Shouts Easy as Pie
If you're a user of our PMS Social Suite you're already aware of how easy it is to clear out your shout queue. Just use the "Manage Shouts" tab to dispose of everything. Click a button, go out for coffee, and when you come back you've cleared out everything in your queue and Dugg everything your friends have sent you.
Except that something broke last week. Digg evidently made a change that invalidates the Imacro "ONDIALOG" command, so the script was getting the "Are you sure?" dialog and waiting for the user to click Ok to delete each shout. Not much fun. Debugging from the Imacro side seems to be impossible. I even tried tricking Digg into thinking that our Imacro script had just sent the Ajax code to delete the shout. Nothing seemed to work.
Forehead Slap
The answer is really easy. All we really needed was a Greasemonkey script that would tell Digg that the confirm button had already been clicked. The script is only 1 line long. It's a little tricky because we have to tell Greasemonkey to run the script in the context of the page and not the browser since if we run it in the browser context we can't overload the "confirm" function the way we want to.
If you don't have Greasemonkey installed, drop everything and go install it right now. Have you been living under a rock or something?
So here's a gift to the Digg Community: The PMS Digg Confirm Ignore Script. Just click the link and Greasemonkey will install the script for you. If you're a PMS Social Suite User, your "Manage Shouts" scripts will now fly through all 50 pages of your backlog. And if you're not using our tool, you can avoid having to click twice for every shout that you want to delete.
Blog
I'd like to thank everyone for their testing on the
Why Not Charge More?
