Google+タイトル表示変更
by
yutacar
2011-10-11 [2011/10/11 18:00:03]
Google+の通知をタイトルに「Google+ (X)」の形式で表示します。
@@ -9,7 +9,7 @@
(function(d){
if(d.match("plus\.google\.com")){
setInterval(function(){
- if(document.getElementById("gbi1").innerHTML != null)
+ if("innerHTML" in document.getElementById("gbi1"))
document.title = "Google+ (" + document.getElementById("gbi1").innerHTML + ")";
},1000);
}
/*
* @title Google+タイトル表示変更
* @description Google+の通知をタイトルに「Google+ (X)」の形式で表示する。
* @include http://plus.google.com/*
* @include https://plus.google.com/*
* @license MIT License
* @require
*/
(function(d){
if(d.match("plus\.google\.com")){
setInterval(function(){
if("innerHTML" in document.getElementById("gbi1"))
document.title = "Google+ (" + document.getElementById("gbi1").innerHTML + ")";
},1000);
}
})(document.domain);
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。