diff --git a/chrome_addon/lib/misc.js b/chrome_addon/lib/misc.js index 73f9ac8..9d4fcb2 100644 --- a/chrome_addon/lib/misc.js +++ b/chrome_addon/lib/misc.js @@ -50,7 +50,7 @@ function str2ab2(str) { } function str2ab(str) { - var buf = new ArrayBuffer(str.length); // 2 bytes for each char + var buf = new ArrayBuffer(str.length); // var buf = new ArrayBuffer(str.length*2); // 2 bytes for each char var bufView = new Uint8Array(buf); for (var i=0, strLen=str.length; i < strLen; i++) { diff --git a/firefox_webextension/background.js b/firefox_webextension/background.js index 03068dc..1a027ec 100644 --- a/firefox_webextension/background.js +++ b/firefox_webextension/background.js @@ -1,5 +1,6 @@ function url_block_callback(details) { + //console.log(details); if (details.requestBody) { if (details.requestBody.formData) @@ -57,7 +58,7 @@ browser.runtime.onMessage.addListener( { browser.webRequest.onBeforeRequest.addListener( url_block_callback, - {urls:[request.options.url], + {"urls":[request.options.url], "types":["main_frame"], "tabId":tab.id, "windowId":tab.windowId @@ -68,7 +69,7 @@ browser.runtime.onMessage.addListener( { browser.webRequest.onBeforeRequest.addListener( url_block_callback, - {urls:[request.options.url], types:["main_frame"]}, + {"urls":[request.options.url], "types":["main_frame"]}, ["blocking", "requestBody"]); } }); diff --git a/server/conf.php b/server/conf.php index a7381ea..527b07b 100644 --- a/server/conf.php +++ b/server/conf.php @@ -1,6 +1,6 @@