svnno****@sourc*****
svnno****@sourc*****
2007年 8月 13日 (月) 23:47:25 JST
Revision: 199 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=199 Author: flyson Date: 2007-08-13 23:47:25 +0900 (Mon, 13 Aug 2007) Log Message: ----------- ブックマークやスレッド表示からは動作しないようにした Modified Paths: -------------- trunk/bbs2chreader/components/b2rThreadRedirector.js Modified: trunk/bbs2chreader/components/b2rThreadRedirector.js =================================================================== --- trunk/bbs2chreader/components/b2rThreadRedirector.js 2007-08-12 15:53:38 UTC (rev 198) +++ trunk/bbs2chreader/components/b2rThreadRedirector.js 2007-08-13 14:47:25 UTC (rev 199) @@ -100,13 +100,18 @@ aContext, aMimeTypeGuess, aExtra){ if(!this._enabled) return this.ACCEPT; + if(aContentType != this.TYPE_DOCUMENT) return this.ACCEPT; if(aContentLocation.scheme.substring(0, 4) != "http") return this.ACCEPT; - if(aContentType != this.TYPE_DOCUMENT) return this.ACCEPT; var host = aContentLocation.host; if(host.indexOf(".2ch.net")==-1 && host.indexOf(".bbspink.com")==-1 && - host!="jbbs.livedoor.jp") return this.ACCEPT; + host!="jbbs.livedoor.jp"){ + return this.ACCEPT; + } + if(aRequestOrigin.host == "127.0.0.1" || aRequestOrigin.scheme == "chrome"){ + return this.ACCEPT; + } // Be Profile Page if(aContentLocation.spec.indexOf("http://be.2ch.net/test/p.php") != -1){ @@ -125,7 +130,7 @@ aContentLocation.spec +"\n"; var checkText = "Don't ask me this again"; var notAskCheck = { value: false }; - viewB2r = (promptService.confirmEx(null, dialogTitle, dialogText, + viewB2r = (promptService.confirmEx(null, dialogTitle, dialogText, promptService.STD_YES_NO_BUTTONS, null, null, null, checkText, notAskCheck) == 0); if(notAskCheck.value){ @@ -139,9 +144,7 @@ .getService(Components.interfaces.nsIBbs2chService); var serverURL = "./thread/" + aContentLocation.spec; serverURL = bbs2chService.serverURL.resolve(serverURL); - - aContext.loadURI(serverURL, null, null); - return this.REJECT_REQUEST; + aContentLocation.spec = serverURL; } }