Twitterでフォロアー数を非表示にする
by
md2tak
2011-06-28 [2011/06/28 20:34:57]
Chrome/GreaseMonkeyで使用してください。増減を気にしたくない人用 followersページの「nユーザーにフォローされています」は普通に表示される
@@ -7,8 +7,11 @@
*/
var W = (typeof unsafeWindow == 'undefined') ? window: unsafeWindow; var $ = W.jQuery;
-$(function(){
- $('div.new-followers-activity span.user-stat-link').hide();
- var uid = $('span#screen-name span.content').html().replace(/[\s\r\n]/g, '');
- $('a[href="/#!/' + uid + '/followers"].user-stats-count').hide();
-});
+var el = document.createElement('style');
+//el.appendChild(document.createTextNode(''));
+W.document.body.appendChild(el);
+
+el.sheet.insertRule('div.new-followers-activity span.user-stat-link { display:none; }',0);
+
+var uid = $('span#screen-name span.content').html().replace(/[\s\r\n]/g, '');
+el.sheet.insertRule('a[href="/#!/' + uid + '/followers"].user-stats-count { display:none; }',0);
/*
* @title Twitterでフォロアー数を非表示にする
* @description my bookmarklet
* @include http://twitter.com/*
* @license MIT License
* @require Chrome/GreaseMonkeyで使用してください。増減を気にしたくない人用 followersページの「nユーザーにフォローされています」は普通に表示される
*/
var W = (typeof unsafeWindow == 'undefined') ? window: unsafeWindow; var $ = W.jQuery;
var el = document.createElement('style');
//el.appendChild(document.createTextNode(''));
W.document.body.appendChild(el);
el.sheet.insertRule('div.new-followers-activity span.user-stat-link { display:none; }',0);
var uid = $('span#screen-name span.content').html().replace(/[\s\r\n]/g, '');
el.sheet.insertRule('a[href="/#!/' + uid + '/followers"].user-stats-count { display:none; }',0);
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。