Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phette23/wp-spam-clicker
Bookmarklet to select spammy comments while in Wordpress' admin side
https://github.com/phette23/wp-spam-clicker
Last synced: 27 days ago
JSON representation
Bookmarklet to select spammy comments while in Wordpress' admin side
- Host: GitHub
- URL: https://github.com/phette23/wp-spam-clicker
- Owner: phette23
- Created: 2013-10-21T21:13:20.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-04T20:13:44.000Z (about 10 years ago)
- Last Synced: 2024-04-14T23:15:25.790Z (7 months ago)
- Language: JavaScript
- Size: 273 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.mdown
Awesome Lists containing this project
README
# Wordpress Spam Clicker Bookmarklet
A bookmarklet that checks off possible spam comments in the admin side of Wordpress (wp-admin/edit-comments.php). It does not perform any action but can save you a lot of clicking.
## Details
The bookmarklet checks each comment against a blacklist array of regular expressions of common names, websites, emails, and IP addresses used by spammers.
If you want to get as many comments as possible, on the Edit Comments page click *Screen Options* and then set the number of comments displayed to a large number. Note that this may cause problems with Bulk Actions; on a blog that I contribute to, I get a firewall error when I try to edit too many comments at once, so I generally keep the number down to 20 at a time.
How did I compile the blacklist? By looking at a bunch of spam comments. It's not comprehensive and I'd review the selections the bookmarklet makes to ensure you're not throwing away legit comments. Right now, there are actually no blacklisted emails and only one IP address. Checking names for stuff like clothing and drug brands was by far the most fruitful approach.
It'll only work in modern browsers because it uses stuff like `forEach` & I didn't bother relying on jQuery.
## Dev
If you want to benefit from the available Grunt tasks, ensure you have node on your system, install Grunt globally (`npm install grunt-cli -g`), & then run `npm install` inside the project's directory.
`grunt build` minifies the bookmarklet to bookmarklet.min.js.
`grunt` runs JSHint & then minifies the bookmarklet.
`grunt watch` watches for changes of main.js & re-builds the minified file.
`toclip.sh` is handy during development; it's a shell script to put the bookmarklet on your system clipboard, for easy pasting into your bookmarks.
## Built With
- Yeoman (generator-bookmarklet)
- Grunt
- JSHint
- UglifyJS
- Sublime Text 3## License
[CC0](https://creativecommons.org/publicdomain/zero/1.0/) No Rights Reserved
[![Analytics](https://ga-beacon.appspot.com/UA-29080462-2/wp-spam-clicker/readme?pixel)](https://github.com/igrigorik/ga-beacon)