parent
7e78bed8cb
commit
e159041600
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -4,6 +4,16 @@ 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.1] - 2019-09-12
|
||||
|
||||
### Compatibility note
|
||||
- Require Firefox >= 55
|
||||
- Require Chrome >= 22
|
||||
|
||||
### Changed
|
||||
- Improvements on check for android systems ([#206](https://gitlab.com/KevinRoebert/ClearUrls/issues/206))
|
||||
- Improvements on storage. Away with periodic save of in-memory data to storage. Instead save when there are actual changes by [@tartpvule](https://gitlab.com/tartpvule) in ([!47](https://gitlab.com/KevinRoebert/ClearUrls/merge_requests/47))
|
||||
|
||||
## [1.8.0] - 2019-09-11
|
||||
|
||||
### Compatibility note
|
||||
|
|
987
clearurls.js
987
clearurls.js
File diff suppressed because it is too large
Load Diff
|
@ -21,6 +21,8 @@
|
|||
* This script is responsible for the storage.
|
||||
*/
|
||||
var storage = [];
|
||||
var hasPendingSaves = false;
|
||||
var pendingSaves = new Set();
|
||||
|
||||
/**
|
||||
* Writes the storage variable to the disk.
|
||||
|
@ -72,9 +74,6 @@ function saveOnDisk(keys)
|
|||
browser.storage.local.set(json);
|
||||
}
|
||||
|
||||
var hasPendingSaves = false;
|
||||
var pendingSaves = new Set();
|
||||
|
||||
/**
|
||||
* Schedule to save a key to disk in 30 seconds.
|
||||
* @param {String} key
|
||||
|
@ -95,11 +94,22 @@ function deferSaveOnDisk(key)
|
|||
}
|
||||
|
||||
/**
|
||||
* Retrieve everything and save on the RAM.
|
||||
* Start sequence for ClearURLs.
|
||||
*/
|
||||
function getDataFromDisk()
|
||||
function genesis()
|
||||
{
|
||||
browser.storage.local.get(null).then(initStorage, error);
|
||||
browser.storage.local.get(null).then((items) => {
|
||||
initStorage(items);
|
||||
|
||||
// Start the clearurls.js
|
||||
start();
|
||||
|
||||
// Start the context_menu
|
||||
contextMenuStart();
|
||||
|
||||
// Start history listener
|
||||
historyListenerStart();
|
||||
}, error);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -171,15 +181,6 @@ function initStorage(items)
|
|||
setData(key, value);
|
||||
});
|
||||
}
|
||||
|
||||
// Start the clearurls.js
|
||||
start();
|
||||
|
||||
// Start the context_menu
|
||||
contextMenuStart();
|
||||
|
||||
// Start history listener
|
||||
historyListenerStart();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -264,5 +265,5 @@ function storeHashStatus(status_code)
|
|||
storage.hashStatus = status_code;
|
||||
}
|
||||
|
||||
// Start storage
|
||||
getDataFromDisk();
|
||||
// Start storage and ClearURLs
|
||||
genesis();
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"name": "ClearURLs",
|
||||
"version": "1.8.0",
|
||||
"author": "Kevin R.",
|
||||
"version": "1.8.1",
|
||||
"author": "Kevin Röbert",
|
||||
"description": "Remove tracking elements from URLs.",
|
||||
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",
|
||||
"default_locale": "en",
|
||||
|
|
Loading…
Reference in New Issue
Block a user