Version 1.6.2
Added: + Added rules from #172 + Added rules from #176 + Added rules from #178 Fixed: + #170 + #162 + #163
This commit is contained in:
parent
1d6d36eb8c
commit
8ca852476d
18
CHANGELOG.md
18
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/),
|
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).
|
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
|
### Compatibility note
|
||||||
- Require Firefox >= 55
|
- Require Firefox >= 55
|
||||||
|
|
|
@ -257,7 +257,7 @@
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"history_listener_enabled": {
|
"history_listener_enabled": {
|
||||||
"message": "Verhindere Tracking über die History-API (Siehe auch: <a href='https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_pushState()_method' target='_blank'>The pushState() method</a>)",
|
"message": "Verhindere Tracking über die History-API (Siehe auch: <a href='https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_replaceState()_method' target='_blank'>The replaceState() method</a>)",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"cleaning_tool_page_title": {
|
"cleaning_tool_page_title": {
|
||||||
|
|
|
@ -257,7 +257,7 @@
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"history_listener_enabled": {
|
"history_listener_enabled": {
|
||||||
"message": "Prevent tracking injection over history API (See also: <a href='https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_pushState()_method' target='_blank'>The pushState() method</a>)",
|
"message": "Prevent tracking injection over history API (See also: <a href='https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_replaceState()_method' target='_blank'>The replaceState() method</a>)",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"cleaning_tool_page_title": {
|
"cleaning_tool_page_title": {
|
||||||
|
|
|
@ -25,16 +25,16 @@
|
||||||
|
|
||||||
function historyListenerStart() {
|
function historyListenerStart() {
|
||||||
if(storage.historyListenerEnabled) {
|
if(storage.historyListenerEnabled) {
|
||||||
browser.webNavigation.onHistoryStateUpdated.addListener(historyCleaner);
|
browser.webNavigation.onHistoryStateUpdated.addListener(historyCleaner);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function that is triggered on history changes. Injects script into page
|
* Function that is triggered on history changes. Injects script into page
|
||||||
* to clean links that were pushed to the history stack with the
|
* 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
|
* @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) {
|
function historyCleaner(details) {
|
||||||
var urlBefore = details.url;
|
var urlBefore = details.url;
|
||||||
|
@ -43,7 +43,7 @@ function historyCleaner(details) {
|
||||||
if(urlBefore != urlAfter) {
|
if(urlBefore != urlAfter) {
|
||||||
browser.tabs.executeScript(details.tabId, {
|
browser.tabs.executeScript(details.tabId, {
|
||||||
frameId: details.frameId,
|
frameId: details.frameId,
|
||||||
code: 'history.pushState({state: "cleaned_history"},"",'+JSON.stringify(urlAfter)+');'
|
code: 'history.replaceState({state: "cleaned_history"},"",'+JSON.stringify(urlAfter)+');'
|
||||||
}).then(() => {}, onError);
|
}).then(() => {}, onError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ function countFields(url)
|
||||||
*/
|
*/
|
||||||
function extractFileds(url)
|
function extractFileds(url)
|
||||||
{
|
{
|
||||||
return (url.match(/[^\/|\?|&]+=[^\/|\?|&]+/gi) || []);
|
return (url.match(/[^\/|\?|&]+=*[^\/|\?|&]+/gi) || []);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -197,7 +197,15 @@
|
||||||
"__xts__%5B[0-9]%5D",
|
"__xts__%5B[0-9]%5D",
|
||||||
"__xts__\\[[0-9]\\]",
|
"__xts__\\[[0-9]\\]",
|
||||||
"comment_tracking",
|
"comment_tracking",
|
||||||
"dti"
|
"dti",
|
||||||
|
"app",
|
||||||
|
"video_source",
|
||||||
|
"ftentidentifier",
|
||||||
|
"pageid",
|
||||||
|
"padding",
|
||||||
|
"ls_ref",
|
||||||
|
"acontext",
|
||||||
|
"action_history"
|
||||||
],
|
],
|
||||||
"exceptions": [
|
"exceptions": [
|
||||||
".*(facebook\\.)\\w{2,}.*(\\/plugins\\/).*"
|
".*(facebook\\.)\\w{2,}.*(\\/plugins\\/).*"
|
||||||
|
@ -451,6 +459,24 @@
|
||||||
],
|
],
|
||||||
"exceptions": [],
|
"exceptions": [],
|
||||||
"redirections": []
|
"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": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "ClearURLs",
|
"name": "ClearURLs",
|
||||||
"version": "1.6.1",
|
"version": "1.6.2",
|
||||||
"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