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