Disemvoweler for Wordpress (as userscript)
This Greasemonkey script implements a comment disemvoweler for Wordpress. Tested through WP 2.2.
Download the current version (0.4) as a .user.js file.
Specification
- Adds a styled button to the quicktags buttonbar above the comment moderation panel in Wordpress. If the buttonbar is missing, it is first created.
-
When the button is clicked:
- Prepends "Disemvoweled troll: " to the commenter's name.
- Changes the commenter's URI to the Wikipedia entry on disemvoweling.
- Escapes HTML and character entities.
- Removes all instances of the upper-case and lower-case letters a, e, i, o, and u, including from HTML tags.
Future work
I want to handle HTML better, and add an option to rotate vowels instead of removing them. (Rotation is reversible.)
Change log
Version 0.4.0
Released on 2007-09-03, version 0.4.0 [.user.js format] is a maintenance release.
- Adds an @include for WordPress 2.2 (or thereabouts.)
Version 0.3
Released on 2007-1-13, version 0.3 [.user.js format] is the first public version. Performs these tasks:
- Adds a styled button to the quicktags buttonbar above the comment moderation panel in Wordpress. If the buttonbar is missing, it is first created.
-
When the button is clicked:
- Prepends "Disemvoweled troll: " to the commenter's name.
- Changes the commenter's URI to the Wikipedia entry on disemvoweling.
- Escapes angle-brackets to avoid malformed HTML.
- Removes all instances of the upper-case and lower-case letters a, e, i, o, and u, including from HTML tags.