Skip to content

Instantly share code, notes, and snippets.

@sidonath
Created January 30, 2009 17:04
Show Gist options
  • Save sidonath/55144 to your computer and use it in GitHub Desktop.
Save sidonath/55144 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name twitter Easy block
// @namespace http://z3c.info/
// @description Adds the block button on user's profile page
// @include http://twitter.com/*
// @exclude http://twitter.com/*/*
// ==/UserScript==
$ = unsafeWindow.jQuery;
(function () {
if (!$("#follow_control")) return;
$("#follow_control")
.append($("<a/>")
.attr("href",
"http://twitter.com/blocks/confirm/" +
$(".follow-actions").attr("id").replace("follow_actions_", ""))
.append("block")
.css("color", "grey")
.css("vertical-align", "-20%")
.css("padding-left", "1ex")
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment