trashsuiteはおっぱい

    @@ -1,6 +1,7 @@ /* * @title trashsuiteはおっぱい * @description おっぱい(迫真) + * @private * @include http://h.hatena.ne.jp/* * @exclude http://h.hatena.ne.jp/album* * @exclude http://h.hatena.ne.jp/guide*
  • /*
     * @title trashsuiteはおっぱい
     * @description おっぱい(迫真)
     * @private
     * @include http://h.hatena.ne.jp/*
     * @exclude http://h.hatena.ne.jp/album*
     * @exclude http://h.hatena.ne.jp/guide*
     * @exclude http://h.hatena.ne.jp/setting*
     * @include http://h.hatena.com/*
     * @exclude http://h.hatena.com/album*
     * @exclude http://h.hatena.com/guide*
     * @exclude http://h.hatena.com/setting*
     * @include http://h1beta.hatena.ne.jp/*
     * @exclude http://h1beta.hatena.ne.jp/album*
     * @exclude http://h1beta.hatena.ne.jp/guide*
     * @exclude http://h1beta.hatena.ne.jp/setting*
     * @include http://h1beta.hatena.com/*
     * @exclude http://h1beta.hatena.com/album*
     * @exclude http://h1beta.hatena.com/guide*
     * @exclude http://h1beta.hatena.com/setting*
     * @license MIT License
     */
    
    (function() {
    
    	function addID() {
    		var usernames = document.getElementsByClassName("stream")[0].getElementsByClassName("username");
    		var i;
    		for (i = 0; i < usernames.length; i++) {
    			var tag = usernames[i].getElementsByTagName("a")[0];
    			if (tag.getAttribute("data-oppaied") != "1"){
    				var name = tag.innerHTML;
    
    				if (name == 'trashsuite') { tag.innerHTML = 'おっぱい';}
    				tag.setAttribute("data-oppaied", "1");
    			}
    		}
    	}
    
    	addID();
    
    	if (typeof unsafeWindow == 'undefined') {
    	  /* Bookmarklet, etc... */
    	  var TEN = Ten;
    	} else {
    	  /* Greasemonkey */
    	  var TEN = unsafeWindow.Ten;
    	}
    
    	// 参考にした: Hidden invalid entries for Hatena Haiku
    	TEN.AsyncLoader.executeWhenFragmentLoadedOrNow(function(frag) {
    		addID();
    	}.bind());
    
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2011/08/11 00:49:05 - 2011-08-11
  2. 2011/08/11 00:47:44 - 2011-08-11
  3. 2011/08/11 00:35:35 - 2011-08-11
  4. 2011/08/11 00:35:10 - 2011-08-11