Version 1.8.2

+ Fixed #253
+ Fixed #254
This commit is contained in:
Kevin Röbert 2019-09-23 16:20:51 +02:00
parent fe82c9ee1b
commit b26b6f9aec
4 changed files with 150 additions and 136 deletions

View File

@ -4,6 +4,19 @@ 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.8.2] - 2019-09-23
### Compatibility note
- Require Firefox >= 55
- Require Chrome >= 22
### Changed
- Only redirects, if request is of type main or sub frame to prevent security issues on automatically loaded ressource like images
### Fixed
- Fixed [#253](https://gitlab.com/KevinRoebert/ClearUrls/issues/253)
- Fixed [#254](https://gitlab.com/KevinRoebert/ClearUrls/issues/254)
## [1.8.1] - 2019-09-12
### Compatibility note

View File

@ -630,9 +630,11 @@ function start()
* Expand urls and bypass tracking.
* Cancel the active request.
*/
if(result.redirect)
if(result.redirect &&
request.type === 'main_frame' ||
request.type === 'sub_frame')
{
if(providers[i].shouldForceRedirect()) {
if(providers[i].shouldForceRedirect() ) {
browser.tabs.update(request.tabId, {url: result.url});
return {cancel: true};
}

View File

@ -96,8 +96,7 @@
".*(google\\.).*\\/s\\?tbm=map.*gs_[a-zA-Z]*=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
".*(news\\.google\\.).*\\?hl=.*",
".*(google\\.).*\\/setprefs\\?.*hl=[^\\/|\\?|&]*(\\/|&(amp;)?)?",
".*(google\\.).*\\/appsactivity\\/.*",
".*googleusercontent\\..*\\/proxy\\/.*#.*url=([^&]*).*"
".*(google\\.).*\\/appsactivity\\/.*"
],
"redirections": [
".*google\\..*\\/.*url\\?.*url=((https|http)[^&]*)",

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "ClearURLs",
"version": "1.8.1",
"version": "1.8.2",
"author": "Kevin Röbert",
"description": "Remove tracking elements from URLs.",
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",