Gerald 11 anni fa
parent
commit
16d7b0ae0d
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      background.js
  2. 1 1
      manifest.json

+ 1 - 1
background.js

@@ -625,7 +625,7 @@ chrome.webRequest.onBeforeRequest.addListener(function(o){
 		var x=new XMLHttpRequest();
 		x.open('GET',o.url,false);
 		x.send();
-		if((!x.status||x.status==200)&&/^\s*[^<]/.test(x.responseText)) {
+		if((!x.status||x.status==200)&&x.responseText[0]=='/') {
 			if(o.tabId<0) chrome.tabs.create({url:chrome.extension.getURL('/confirm.html')+'?url='+encodeURIComponent(o.url)});
 			else chrome.tabs.get(o.tabId,function(t){
 				chrome.tabs.create({url:chrome.extension.getURL('/confirm.html')+'?url='+encodeURIComponent(o.url)+'&from='+encodeURIComponent(t.url)});

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
 	"name": "Violent monkey",
-	"version" : "2.1.6.2",
+	"version" : "2.1.6.3",
 	"manifest_version" : 2,
 	"description" : "__MSG_extDescription__",
 	"developer": {"name" : "Gerald", "url" : "http://geraldl.ml"},