Permalink
Browse files

Removed Google click track prevention.

It will be back later with an option when fixed.
  • Loading branch information...
hultqvist committed Apr 21, 2012
1 parent 519dceb commit 3198d976779da680c01547235e4fc6880cc0aadd
Showing with 1 addition and 19 deletions.
  1. +1 −1 manifest.json
  2. +0 −18 script/background.js
View
@@ -1,5 +1,5 @@
{
- "version": "0.0.2.4",
+ "version": "0.0.2.5",
"name": "KISS Privacy",
"minimum_chrome_version": "17.0.0.0",
"icons": {
View
@@ -29,7 +29,6 @@ var uaBrowser = [ "Safari/533.16", "Safari/533.4", "Safari/533.3", "Safari/534.1
var uaOS = [ "Fedora/3.5.9-2.fc12 Firefox/3.5.9", "Ubuntu/8.04 (hardy)", "Ubuntu/9.10 (karmic)", "Gentoo", "Ubuntu/9.25 (jaunty)", "Ubuntu/10.04 (lucid)", "Fedora/3.6.3-4.fc13", "SUSE/3.6.3-1.1", "", "", "" ];
-chrome.webRequest.onBeforeRequest.addListener(onBeforeRequest, {urls: ["<all_urls>"]}, ["blocking"]);
chrome.webRequest.onBeforeSendHeaders.addListener(onBeforeSendHeaders, {urls: ["<all_urls>"]}, ["requestHeaders", "blocking"]);
chrome.webRequest.onHeadersReceived.addListener(onHeadersReceived, {urls: ["<all_urls>"]}, ["responseHeaders"]);
@@ -64,23 +63,6 @@ function getDomain(url){
return domain;
}
-
-function onBeforeRequest(d) {
- //Skip google result click tracking
- if(d.url.indexOf("google.com/url") != -1)
- {
- var re = /url=([^&]*)/g;
- var p = re.exec(d.url);
- p = decodeURIComponent(p[1]);
-
- console.log("Skipping Google clicktrack: " + p);
-
- chrome.tabs.update(d.tabId, {url: p});
- return {cancel: true};
- }
-}
-
-
function onBeforeSendHeaders(d) {
//Get domain for target and referrer

0 comments on commit 3198d97

Please sign in to comment.