parent
e58acecf7e
commit
06a8665688
17
clearurls.js
17
clearurls.js
|
@ -340,8 +340,6 @@ function start(items)
|
||||||
var changes = false;
|
var changes = false;
|
||||||
var cancel = false;
|
var cancel = false;
|
||||||
|
|
||||||
if(provider.matchURL(url))
|
|
||||||
{
|
|
||||||
/*
|
/*
|
||||||
* Expand the url by provider redirections. So no tracking on
|
* Expand the url by provider redirections. So no tracking on
|
||||||
* url redirections form sites to sites.
|
* url redirections form sites to sites.
|
||||||
|
@ -419,12 +417,8 @@ function start(items)
|
||||||
"url": url,
|
"url": url,
|
||||||
"cancel": cancel
|
"cancel": cancel
|
||||||
};
|
};
|
||||||
}
|
|
||||||
else {
|
|
||||||
return {
|
|
||||||
"changes": false
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -467,7 +461,14 @@ function start(items)
|
||||||
* Call for every provider the removeFieldsFormURL method.
|
* Call for every provider the removeFieldsFormURL method.
|
||||||
*/
|
*/
|
||||||
for (var i = 0; i < providers.length; i++) {
|
for (var i = 0; i < providers.length; i++) {
|
||||||
|
let match = providers[i].matchURL(request.url);
|
||||||
|
|
||||||
|
if(match == providers[i].matchURL(request.url));
|
||||||
|
|
||||||
|
if(match)
|
||||||
|
{
|
||||||
result = removeFieldsFormURL(providers[i], request);
|
result = removeFieldsFormURL(providers[i], request);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Expand urls and bypass tracking.
|
* Expand urls and bypass tracking.
|
||||||
|
|
|
@ -59,7 +59,9 @@
|
||||||
"je=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
|
"je=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
|
||||||
"dcr=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
|
"dcr=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
|
||||||
"ie=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
|
"ie=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
|
||||||
"sei=[^\\/|\\?|&]*(\\/|&(amp;)?)?"
|
"sei=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
|
||||||
|
"sa=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
|
||||||
|
"dpr=[^\\/|\\?|&]*(\\/|&(amp;)?)?"
|
||||||
],
|
],
|
||||||
"exceptions": [
|
"exceptions": [
|
||||||
".*(mail\\.google\\.).*(\\/mail\\/u\\/0)\\/.*",
|
".*(mail\\.google\\.).*(\\/mail\\/u\\/0)\\/.*",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "ClearURLs",
|
"name": "ClearURLs",
|
||||||
"version": "1.2.2.19",
|
"version": "1.2.2.20",
|
||||||
"author": "Kevin R.",
|
"author": "Kevin R.",
|
||||||
"description": "Remove tracking elements form URLs.",
|
"description": "Remove tracking elements form URLs.",
|
||||||
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",
|
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user