Version 1.2.2.20

I hope it fixes Bug #60
This commit is contained in:
Kevin Röbert 2018-06-16 21:06:51 +02:00
parent e58acecf7e
commit 06a8665688
3 changed files with 87 additions and 84 deletions

View File

@ -340,8 +340,6 @@ function start(items)
var changes = false;
var cancel = false;
if(provider.matchURL(url))
{
/*
* Expand the url by provider redirections. So no tracking on
* url redirections form sites to sites.
@ -419,12 +417,8 @@ function start(items)
"url": url,
"cancel": cancel
};
}
else {
return {
"changes": false
};
}
}
/**
@ -467,7 +461,14 @@ function start(items)
* Call for every provider the removeFieldsFormURL method.
*/
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);
}
/*
* Expand urls and bypass tracking.
@ -609,8 +610,8 @@ function start(items)
}
/**
* Save every minute the temporary data to the disk.
*/
* Save every minute the temporary data to the disk.
*/
setInterval(saveOnExit, 60000);
/**
@ -628,8 +629,8 @@ function setBadgedStatus()
}
/**
* Change the icon.
*/
* Change the icon.
*/
function changeIcon()
{
if(storage.globalStatus){
@ -655,9 +656,9 @@ function checkOSAndroid()
}
/**
* Increase by {number} the GlobalURLCounter
* @param {int} number
*/
* Increase by {number} the GlobalURLCounter
* @param {int} number
*/
function increaseGlobalURLCounter(number)
{
if(storage.statisticsStatus)
@ -667,8 +668,8 @@ function increaseGlobalURLCounter(number)
}
/**
* Increase by one the URLCounter
*/
* Increase by one the URLCounter
*/
function increaseURLCounter()
{
if(storage.statisticsStatus)
@ -783,8 +784,8 @@ function initStorage(items)
}
/**
* Set default values for the settings.
*/
* Set default values for the settings.
*/
function initSettings()
{
storage.ClearURLsData = [];
@ -803,17 +804,17 @@ function initSettings()
}
/**
* Reloads the extension.
*/
* Reloads the extension.
*/
function reload()
{
browser.runtime.reload();
}
/**
* Replace the old GitHub URLs with the
* new GitLab URLs.
*/
* Replace the old GitHub URLs with the
* new GitLab URLs.
*/
function replaceOldGithubURLs(url)
{
switch (url) {

View File

@ -59,7 +59,9 @@
"je=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
"dcr=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
"ie=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
"sei=[^\\/|\\?|&]*(\\/|&(amp;)?)?"
"sei=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
"sa=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
"dpr=[^\\/|\\?|&]*(\\/|&(amp;)?)?"
],
"exceptions": [
".*(mail\\.google\\.).*(\\/mail\\/u\\/0)\\/.*",

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "ClearURLs",
"version": "1.2.2.19",
"version": "1.2.2.20",
"author": "Kevin R.",
"description": "Remove tracking elements form URLs.",
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",