Twitter 1-Click Block/Report Spam

By Cyranix Last update Sep 27, 2009 — Installed 156 times. Daily Installs: 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Script Summary:
Block Twitter spammers and report them to @spam with a single click.

This script has no discussions.

start the discussion

This script has no reviews.

This script is no longer required, as Twitter finally features a built-in single-click Block and Report function. I'd like to think my frequent pestering helped.

Instead of going through two separate processes, I decided I wanted to integrate the ability to report spam (by sending a DM to @spam) whenever I blocked an offending user on Twitter.

Important note: You need to follow @spam (and have them follow you in return, which they'll do very quickly) before your spam reports will go through. You can also choose to store your Twitter account credentials, in the variables myUsername and myPassword, if you don't want to be prompted for them by your browser.

You can check to make sure the DM went through by checking your sent messages.

Before
After

Wishlist

Block/report from followers list. I'll be examining the JS already used to perform actions directly from the followers list, and I'll see if I can't slip an extra "Block/report spam" option into the bottom of the list.

Changelog:

Jul 19 2009:
-- First version uploaded.
-- Okay, should actually be blocking them in addition to reporting them now. What a gaffe. I have no spammers to test this on at the moment, so let me know how it works for you!

Jul 20 2009:
-- I didn't catch this because I'm using Endless Tweets, but it seems that you may be prompted to provide your username/password. I'll run a couple tests with ET off and use Basic Authentication to try to fix that.
-- Okay, new version up. Put your credentials into myUsername and myPassword, and you won't see a browser popup requesting that info from Twitter API.
-- Storing your credentials is now optional, and the notes text is more useful now.

Jul 27 2009:
-- Removed redirect functionality for now, because it may be interfering with blocking.

Sep 24 2009:
-- Site update broke the script; will fix as soon as I can.

Sep 27 2009:
-- Should be working again. Trying to get the action menu integration working, but so far no dice.
-- Easy part: getting the menu item to appear in the list. Hard part: getting the link to trigger an event. Twitter's JS uses preventDefault() which is making this difficult for a newbie like me.