Google+候補を非表示に変更
by
yutacar
2011-07-07 [2011/07/07 19:28:38]
Google+ストリームの候補を非表示にします。無駄に1s毎に処理するので注意。
/*
* @title Google+候補を非表示に変更
* @description Google+ストリームの候補を非表示にします。
* @include https://plus.google.com/*
* @license MIT License
*/
(function(d){
if(d.match("plus\.google\.com")){
setTimeout(function(){
var divs = document.getElementsByTagName("div");
for (var i = 0; i < divs.length; i ++) {
var d = document.getElementsByTagName("div")[i];
if (d.getAttributeNode("class") && d.getAttributeNode("class").value == "a-b-j-lc-Rd-A") {
d.style.display = 'none';
break;
}
}
}, 1000)
}
})(document.domain);
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。