diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4a055a3..aa2f1fc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-## [1.6.1] - 2019-04-14
+## [1.6.2] - 2019-04-26
+
+### Compatibility note
+- Require Firefox >= 55
+- Require Chrome >= 22
+
+### Added
+- Added rules from [#172](https://gitlab.com/KevinRoebert/ClearUrls/issues/172)
+- Added rules from [#176](https://gitlab.com/KevinRoebert/ClearUrls/issues/176)
+- Added rules from [#178](https://gitlab.com/KevinRoebert/ClearUrls/issues/178)
+
+### Fixed
+- [#170](https://gitlab.com/KevinRoebert/ClearUrls/issues/170)
+- [#162](https://gitlab.com/KevinRoebert/ClearUrls/issues/162)
+- [#163](https://gitlab.com/KevinRoebert/ClearUrls/issues/163)
+
+## [[1.6.1] - 2019-04-14](https://gitlab.com/KevinRoebert/ClearUrls/commit/a8a5f7e311300ae7f186d4b581e805bdf3f9f5d9)
### Compatibility note
- Require Firefox >= 55
diff --git a/_locales/de/messages.json b/_locales/de/messages.json
index 50d38f0..0edc019 100644
--- a/_locales/de/messages.json
+++ b/_locales/de/messages.json
@@ -257,7 +257,7 @@
"description": ""
},
"history_listener_enabled": {
- "message": "Verhindere Tracking über die History-API (Siehe auch: The pushState() method)",
+ "message": "Verhindere Tracking über die History-API (Siehe auch: The replaceState() method)",
"description": ""
},
"cleaning_tool_page_title": {
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index aaecc8f..a985bc7 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -257,7 +257,7 @@
"description": ""
},
"history_listener_enabled": {
- "message": "Prevent tracking injection over history API (See also: The pushState() method)",
+ "message": "Prevent tracking injection over history API (See also: The replaceState() method)",
"description": ""
},
"cleaning_tool_page_title": {
diff --git a/core_js/historyListener.js b/core_js/historyListener.js
index 8631b19..2d6a6ac 100644
--- a/core_js/historyListener.js
+++ b/core_js/historyListener.js
@@ -25,16 +25,16 @@
function historyListenerStart() {
if(storage.historyListenerEnabled) {
- browser.webNavigation.onHistoryStateUpdated.addListener(historyCleaner);
+ browser.webNavigation.onHistoryStateUpdated.addListener(historyCleaner);
}
}
/**
* Function that is triggered on history changes. Injects script into page
* to clean links that were pushed to the history stack with the
-* history.pushState method.
+* history.replaceState method.
* @param {state object} details The state object is a JavaScript object
-* which is associated with the new history entry created by pushState()
+* which is associated with the new history entry created by replaceState()
*/
function historyCleaner(details) {
var urlBefore = details.url;
@@ -43,7 +43,7 @@ function historyCleaner(details) {
if(urlBefore != urlAfter) {
browser.tabs.executeScript(details.tabId, {
frameId: details.frameId,
- code: 'history.pushState({state: "cleaned_history"},"",'+JSON.stringify(urlAfter)+');'
+ code: 'history.replaceState({state: "cleaned_history"},"",'+JSON.stringify(urlAfter)+');'
}).then(() => {}, onError);
}
}
diff --git a/core_js/tools.js b/core_js/tools.js
index 4d90dce..7f8d2c4 100644
--- a/core_js/tools.js
+++ b/core_js/tools.js
@@ -99,7 +99,7 @@ function countFields(url)
*/
function extractFileds(url)
{
- return (url.match(/[^\/|\?|&]+=[^\/|\?|&]+/gi) || []);
+ return (url.match(/[^\/|\?|&]+=*[^\/|\?|&]+/gi) || []);
}
/**
diff --git a/data/data.min.json b/data/data.min.json
index 7dc2064..112bf32 100644
--- a/data/data.min.json
+++ b/data/data.min.json
@@ -197,7 +197,15 @@
"__xts__%5B[0-9]%5D",
"__xts__\\[[0-9]\\]",
"comment_tracking",
- "dti"
+ "dti",
+ "app",
+ "video_source",
+ "ftentidentifier",
+ "pageid",
+ "padding",
+ "ls_ref",
+ "acontext",
+ "action_history"
],
"exceptions": [
".*(facebook\\.)\\w{2,}.*(\\/plugins\\/).*"
@@ -451,6 +459,24 @@
],
"exceptions": [],
"redirections": []
+ },
+ "readdc.com": {
+ "urlPattern": "https?://([a-zA-Z0-9-]*\\.)?(readdc\\.com)(.*\\?.*)",
+ "completeProvider": false,
+ "rules": [
+ "ref"
+ ],
+ "exceptions": [],
+ "redirections": []
+ },
+ "dailycodingproblem.com": {
+ "urlPattern": "https?://([a-zA-Z0-9-]*\\.)?(dailycodingproblem\\.com)(.*\\?.*)",
+ "completeProvider": false,
+ "rules": [
+ "email"
+ ],
+ "exceptions": [],
+ "redirections": []
}
}
}
diff --git a/manifest.json b/manifest.json
index 9eb6a99..7d3988e 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "ClearURLs",
- "version": "1.6.1",
+ "version": "1.6.2",
"author": "Kevin R.",
"description": "Remove tracking elements form URLs.",
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",