iGoogle Compact

    
      
  • /*
     * @title bookmarklet
     * @description my bookmarklet
     * @include http://*
     * @license MIT License
     * @require 
     */
    
    
    (function(){
    	//
    	var col1 = document.getElementById('col1');
    	col1.style.display = "none";
    	document.getElementById('addstuff').appendChild(document.createTextNode(" | "));
    	var button = document.createElement("a");
    	document.getElementById('addstuff').appendChild(button);
    	button.innerHTML = "Sidebar";
    	button.setAttribute("href", "#");
    	button.addEventListener("click", function(){
    		col1.style.display = (col1.style.display == "" ? "none" : "");
    		return false;
    	}, true);
    
    
     })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/06/11 13:03:41 - 2010-06-11
  2. 2010/06/11 13:02:48 - 2010-06-11