From dbe7c603f9af3ad0368c06b3b57b33b55c62647e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Sun, 28 Jul 2019 20:27:13 +0200 Subject: [PATCH] Improvements and Bugfix - Version 1.6.8 #206 #205 --- CHANGELOG.md | 12 ++++++++++++ core_js/pureCleaning.js | 5 ----- core_js/storage.js | 1 - core_js/tools.js | 8 +++++--- manifest.json | 2 +- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7951e59..2755eb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ 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.8] - 2019-07-28 + +### Compatibility note +- Require Firefox >= 55 +- Require Chrome >= 22 + +### Changed +- Improvements on check for android systems ([#206](https://gitlab.com/KevinRoebert/ClearUrls/issues/206)) + +### Fixed +- [#205](https://gitlab.com/KevinRoebert/ClearUrls/issues/205) + ## [1.6.7] - 2019-07-25 ### Compatibility note diff --git a/core_js/pureCleaning.js b/core_js/pureCleaning.js index 6c4c45f..33db5b2 100644 --- a/core_js/pureCleaning.js +++ b/core_js/pureCleaning.js @@ -25,11 +25,6 @@ * @return {Array} redirectUrl or none */ function pureCleaning(url) { - // The URL is already cleaned - if(lastVisited === url) { - return url; - } - var cleanURL = url; for (var i = 0; i < providers.length; i++) { diff --git a/core_js/storage.js b/core_js/storage.js index de9a908..81fb821 100644 --- a/core_js/storage.js +++ b/core_js/storage.js @@ -158,7 +158,6 @@ function initSettings() storage.badged_color = "ffa500"; storage.hashURL = "https://gitlab.com/KevinRoebert/ClearUrls/-/jobs/artifacts/master/raw/rules.min.hash?job=hash%20rules"; storage.ruleURL = "https://gitlab.com/KevinRoebert/ClearUrls/raw/master/data/data.min.json"; - storage.reportServer = "https://clearurls.xn--rb-fka.it"; storage.contextMenuEnabled = true; storage.historyListenerEnabled = true; diff --git a/core_js/tools.js b/core_js/tools.js index 5c05641..2bf2fae 100644 --- a/core_js/tools.js +++ b/core_js/tools.js @@ -69,9 +69,11 @@ function reload() */ function checkOSAndroid() { - chrome.runtime.getPlatformInfo(function(info) { - os = info.os; - }); + if(os === undefined || os === null || os === "") { + chrome.runtime.getPlatformInfo(function(info) { + os = info.os; + }); + } if(os == "android") { diff --git a/manifest.json b/manifest.json index 28f2dc3..4ac7cd6 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "ClearURLs", - "version": "1.6.7", + "version": "1.6.8", "author": "Kevin R.", "description": "Remove tracking elements from URLs.", "homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",