[[最近削除されたページ]]
0

     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windost locale = Components.classes["@mozilla.org/preferences-service;1"]
                   .getService(Components.interfaces.nsIPrefBranch).getCharPref("general.useragent.locale");
    if (this.getVer() > 3.0) {
      // "Recently Closed Windows"
      menu = document.createElement("menu");
      menu.setAttribute("id", "historyUndoWindowMenu3");
      menu.setAttribute("label", "最近閉じたウィンドウ");
      menu.setAttribute("accesskey", "W");
      menu.setAttribute("disabled", "true");
      popup.insertBefore(menu, refItem);

      this.historyUndoWindowPopup3 = menu = menu.appendChild(document.createElement("menupopup"));
      menu.setAttribute("id", "historyUndoWindowPopup3");
      menu.setAttribute("onpopupshowing", "UndoListInTabmenu.populateUndoWindowSubmenu();");
    }

    //UndoClose Tab List  最近閉じたタブ
    const LABELTEXT = locale.indexOf("ja") == -1?"Recently Closed Tabs":"\u6700\u8fd1\u9589\u3058\u305f\u30bf\u30d6";    //create menu
    menu = document.createElement("menu");
    menu.setAttribute("label", LABELTEXT);
    menu.setAttribute("accesskey", "L");osingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOverlay.js"
        if (Array.some(gBrowser.tabs, tab => tab.hasAttribute("tabProtect"))) {
          if (!warnAboutClosingTabs.confirm(""))
            return false;
        }
        if (typeof(aPromptFunction) == "function" && !aPromptFunction())
          return false;
      }

      if (aClose)    
        window.close();
      
      return true;
    };
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;     continue;
        }
        if (++windowCount == 2) 
          break;
      }
      
      // If we're down to the last window and someone tries to shut down, check to make sure we can!
      if (windowCount == 1 && !canQuitApplication("lastwindow"))
        return false;
      else if (windowCount != 1) {
    //@line 28 "c:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build\toolkit\content\globalOvst locale = Components.classes["@mozilla.org/preferences-service;1"]
                   .getService(Components.interfaces.nsIPrefBranch).getCharPref("general.useragent.locale");
    if (this.getVer() > 3.0) {
      // "Recently Closed Windows"
      menu = document.createElement("menu");
      menu.setAttribute("id", "historyUndoWindowMenu3");
      menu.setAttribute("label", "最近閉じたウィンドウ");
      menu.setAttribute("accesskey", "W");
      menu.setAttribute("disabled", "true");
      popup.insertBefore(menu, refItem);

      this.historyUndoWindowPopup3 = menu = menu.appendChild(document.createElement("menupopup"));
      menu.setAttribute("id", "historyUndoWindowPopup3");
      menu.setAttribute("onpopupshowing", "UndoListInTabmenu.populateUndoWindowSubmenu();");
    }

    //UndoClose Tab List  最近閉じたタブ
    const LABE           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\
      
      return true;           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				
	uninit: function() {
		//gBrowser.mPanelContainer.removeEventListener("GM_AutoPagerizeNextPageLoaded", this, false);
		gBrowser.mPanelContainer.removeEventListener("DOMContentLoaded", this, false);
		window.removeEventListener("unload", this, false);
	},
	handleEvent: function(event) {
		switch(event.type){
			case "DOMContentLoaded":
				event.target.addEventListener("GM_AutoPagerizeNextPageLoaded", this, true);
				break;
			case "GM_AutoPagerizeNextPageLoaded":
				var win = event.target.defaultView;
				var controller = gFindBar._getSelectionController(win);
				var sel = controller.getSelection(controller.SELECTION_FIND);
				if (sel.rangeCount == 0)
					return;
				gFindBar._highlightDoc(true, sel.getRangeAt(0).toString(), win)
				break;g="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
	
	uninit: function() {
		//gBrowser.mPanelContainer.removeEventListener("GM_AutoPagerizeNextPageLoaded", this, false);
		gBrowser.mPanelContainer.removeEventListener("DOMContentLoaded", this, false);
		window.removeEventListener("unload", this, false);
	},
	handleEvent: function(event) {
		switch(event.type){
			case "DOMContentLoaded":
				event.target.addEventListener("GM_AutoPagerizeNextPageLoaded", this, true);
				break;
			case "GM_AutoPagerizeNextPageLoaded":
				var win = event.target.defaultView;
				var controller = gFindBar._getSelectionController(win);
				var sel = controller.getSelection(controller.SELECTION_FIND);
				if (sel.rangeCount == 0)
					return;
				gFindBar._highlightDoc(true, sel.getRangeAt(0).toString(), win)
				break;t"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
	uninit: function() {
		//gBrowser.mPanelContainer.removeEventListener("GM_AutoPagerizeNextPageLoaded", this, false);
		gBrowser.mPanelContainer.removeEventListener("DOMContentLoaded", this, false);
		window.removeEventListener("unload", this, false);
	},
	handleEvent: function(event) {
		switch(event.type){
			case "DOMContentLoaded":
				event.target.addEventListener("GM_AutoPagerizeNextPageLoaded", this, true);
				break;
			case "GM_AutoPagerizeNextPageLoaded":
				var win = event.target.defaultView;
				var controller = gFindBar._getSelectionController(win);
				var sel = controller.getSelection(controller.SELECTION_FIND);
				if (sel.rangeCount == 0)
					return;
				gFindBar._highlightDoc(true, sel.getRangeAt(0).toString(), win)
				break;
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				          id="uAutoPagerize-FORCE_TARGET_WINDOW"\
				          type="checkbox"\
				          autoCheck="false"\           position="after_start"\
			           onpopupshowing="if (this.triggerNode) this.triggerNode.setAttribute(\'open\', \'true\');"\
			           onpopuphiding="if (this.triggerNode) this.triggerNode.removeAttribute(\'open\');">\
				<menuitem label="ON/OFF の切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
				<menuitem label="設定ファイルの再読み込み"\
				          oncommand="uAutoPagerize.loadSetting(true);"/>\
				<menuitem label="SITEINFO の更新"\
				          oncommand="uAutoPagerize.resetSITEINFO();"/>\
				<menuseparator/>\
				<menuitem label="継ぎ足したページのリンクは新しいタブで開く"\
				atch (e) {
			return log('load error.', e);
		}
		ns.MY_SITEINFO = sandbox.USE_MY_SITEINFO ? sandbox.MY_SITEINFO.concat(MY_SITEINFO): sandbox.MY_SITEINFO;
		ndEventListener('click', this, false);
		}

		var insertParent = this.insertPoint.parentNode;
		if (page[0] && page[0].tagName == 'TR') {
			var colNodes = getElementsByXPath('child::tr[1]/child::*[self::td or self::th]', insertParent);
			var colums = 0;
			for (var i = 0, l = colNodes.length; i < l; i++) {
				var col = colNodes[i].getAttribute('colspan');
				colums += parseInt(col, 10) || 1;
			}
			var td = this.doc.createElement('td');
			td.appendChild(hr);
			td.appendChild(p);
			var tr = this.doc.createElement('tr');
			td.setAttribute('colspan', colums);
			tr.appendChild(td);
			fragment.insertBefore(tr, fragment.firstChild);
		} else {
			fragment.insertBefore(p, fragment.firstChild);
			fragment.insertBefodEventListener('click', this, false);
		}

		var insertParent = this.insertPoint.parentNode;
		if (page[0] && page[0].tagName == 'TR') {
			var colNodes = getElementsByXPath('child::tr[1]/child::*[self::td or self::th]', insertParent);
			var colums = 0;
			for (var i = 0, l = colNodes.length; i < l; i++) {
				var col = colNodes[i].getAttribute('colspan');
				colums += parseInt(col, 10) || 1;
			}
			var td = this.doc.createElement('td');
			td.appendChild(hr);
			td.appendChild(p);
			var tr = this.doc.createElement('tr');
			td.setAttribute('colspan', colums);
			tr.appendChild(td);
			fragment.insertBefore(tr, fragment.firstChild);
		} else {
			fragment.insertBefore(p, fragment.firstChild);
			fragment.insertBefore(hr, fragment.firstChild);
		}

		insertParent.insertBefore(fragment, this.insertPoint);
		return page.map(function(pe) {
			var ev = this.doc.createEvent('MutationEvent
			var ev = this.doc.createEvent('MutationEvent
				.showAlertNotification(null, 'uAutoPagerize', '設定ファイルを読み込みました', false, "", null, "");
		return true;
	},
	getFocusedWindow: function() {
		var win = document.commandDispatcher.focusedWindow;切り替え"\
				          oncommand="uAutoPagerize.toggle(event);"/>\
			atch (e) {
			return log('load error.', e);
		}
		ns.MY_SITEINFO = sandbox.USE_MY_SITEINFO ? sandbox.MY_SITEINFO.concat(MY_SITEINFO): sandbox.MY_SITEINFO;
		ns.MICROFORMAT = sandbox.USE_MICROFORMAT ? sandbox.MICROFORMAT.concat(MICROFORMAT): sandbox.MICROFORMAT;
		if (sandbox.INCLUDE)
			ns.INCLUDE = sandbox.INCLUDE;
		if (sandbox.EXCLUDE)
			ns.EXCLUDE = sandbox.EXCLUDE;
		if (isAlert)
			Cc['@mozilla.org/alerts-service;1'].getService(Ci.nsIAlertsService)
				.showAlertNotification(null, 'uAutoPagerize', '設定ファイルを読み込みました', false, "", null, "");
		return true;
	},
	getFocusedWindow: function() {
		var win = document.commandDispatcher.focusedWindow;
  },

  uninit: function() {
    window.removeEventListener("unload", this, false);
    let os = Services.obs;