I'm back from a rainy holiday. First thing I wanted to do when I was back home was improving the Blogger edit comments user script (original post). It had a few quirks and I wanted to be able to quickly and permanently delete unrelated comments. Here's the change list:
- Removed Blogger's
onclick
which caused an extra window to be opened. - Corrected the title for the edit link.
- Added a link to quickly and permanently delete comments.
2 comments:
I tried this with GreaseMonkey 0.5.1 final, and got no change at all on the Edit posts page. However, I tweaked it a bit, removing the, (superfluous, I believe -- the code isn't invoked until the page is loaded, AFAIK), encasing window.addEventListener('load', function(){ ... bit, and then it worked beautifully.
(My tweaked version is available at http://www.lysator.liu.se/~jhs/userscript/www.blogger.com/comments-editor.user.js but you probably want to just apply the fix to your own version, since I ruined your indentation, reading through the code.)
Nice hack.
I have been away for a few days. I'll take a look at the problems in Greasemonkey 0.5.1 tonight.
The onload was needed in some scripts I wrote to prevent Firefox from crashing... grmbl
Post a Comment