svnno****@sourc*****
svnno****@sourc*****
2007年 7月 23日 (月) 22:52:41 JST
Revision: 172 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=172 Author: flyson Date: 2007-07-23 22:52:40 +0900 (Mon, 23 Jul 2007) Log Message: ----------- テストコードが混ざっていたので削除 Modified Paths: -------------- branches/GP_BRANCH/chrome/content/bbs2chreader/board/page.js branches/GP_BRANCH/chrome/content/bbs2chreader/res/skin-default/Header.html Modified: branches/GP_BRANCH/chrome/content/bbs2chreader/board/page.js =================================================================== --- branches/GP_BRANCH/chrome/content/bbs2chreader/board/page.js 2007-07-23 13:41:43 UTC (rev 171) +++ branches/GP_BRANCH/chrome/content/bbs2chreader/board/page.js 2007-07-23 13:52:40 UTC (rev 172) @@ -52,39 +52,6 @@ * 開始時の処理 */ function startup(){ - - - - // ブラウザウィンドウを列挙 - var windowMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"] - .getService(Components.interfaces.nsIWindowMediator); - var browserWinEnu = windowMediator.getEnumerator("navigator:browser"); - - while(browserWinEnu.hasMoreElements()){ - var browserWin = browserWinEnu.getNext(); - if(!("gBrowser" in browserWin)) continue; - - var browserContent = browserWin.gBrowser; - // ブラウザ内のタブ - for(var i = 0; i < browserContent.mPanelContainer.childNodes.length; i++){ - var doc = browserContent.getBrowserAtIndex(i).contentDocument; - var win = browserContent.getBrowserAtIndex(i).contentWindow; - var sourceEvent = doc.createEvent("Events"); - sourceEvent.initEvent("+iM4umj50", false, false); - var event = document.createEvent('XULCommandEvents'); - event.initCommandEvent("b2rabonerequest", true, false, win, 0, false, false, false, false, sourceEvent); - var noCancel = doc.dispatchEvent(event); - } - } - - - - - - - - - document.title = location.href; document.getElementById("lblTitle").setAttribute("value", location.href); Modified: branches/GP_BRANCH/chrome/content/bbs2chreader/res/skin-default/Header.html =================================================================== --- branches/GP_BRANCH/chrome/content/bbs2chreader/res/skin-default/Header.html 2007-07-23 13:41:43 UTC (rev 171) +++ branches/GP_BRANCH/chrome/content/bbs2chreader/res/skin-default/Header.html 2007-07-23 13:52:40 UTC (rev 172) @@ -14,14 +14,6 @@ } </style> <script type="text/javascript; version=1.7" src="<SKINPATH/>popup.js"></script> - <script type="text/javascript; version=1.7"> - document.addEventListener("b2rabonerequest", function(aEvent){ - var xpath = "descendant::span[@class=\'id_"+ aEvent.sourceEvent.type +"\']/../../.."; - for(let [index, node] in b2rPopup.xpathEvaluate(xpath)){ - node.parentNode.removeChild(node); - } - }, false); - </script> </head> <body onload="b2rPopup.startup()">