Google+候補を非表示に変更

    
      
  • /*
     * @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 です。

History

  1. 2011/07/07 19:28:38 - 2011-07-07
  2. 2011/07/07 13:52:22 - 2011-07-07
  3. 2011/07/07 13:50:50 - 2011-07-07