Skip to content

Instantly share code, notes, and snippets.

@teramako
Created February 3, 2010 11:15
Show Gist options
  • Save teramako/293551 to your computer and use it in GitHub Desktop.
Save teramako/293551 to your computer and use it in GitHub Desktop.
twitterTL上のiconを消すuserScript
// ==UserScript==
// @name twitter disable icon
// @namespace http://d.hatena.ne.jp/teramako
// @description dont display user icon
// @include http://twitter.com/*
// ==/UserScript==
function insertRule(selector, declarations){
var sheets = document.styleSheets;
var lastSheet = sheets[sheets.length-1];
lastSheet.insertRule(
selector + " {" + declarations + "}",
lastSheet.cssRules.length);
}
insertRule("a.profile-pic img", "display:none;");
// vim: sw=2 ts=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment