mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
fine tuning auto update period
This commit is contained in:
parent
bcfb69a777
commit
e95fa11e53
1 changed files with 10 additions and 1 deletions
|
|
@ -27,6 +27,13 @@ var µBlock = (function() {
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
var oneSecond = 1000;
|
||||||
|
var oneMinute = 60 * oneSecond;
|
||||||
|
var oneHour = 60 * oneMinute;
|
||||||
|
var oneDay = 24 * oneHour;
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
return {
|
return {
|
||||||
manifest: chrome.runtime.getManifest(),
|
manifest: chrome.runtime.getManifest(),
|
||||||
|
|
||||||
|
|
@ -46,7 +53,9 @@ return {
|
||||||
allowedRequestCount: 0
|
allowedRequestCount: 0
|
||||||
},
|
},
|
||||||
|
|
||||||
updateAssetsEvery: 47 * 60 * 60 * 1000,
|
// EasyList, EasyPrivacy and many others have an update frequency
|
||||||
|
// of 4 days, as per list headers.
|
||||||
|
updateAssetsEvery: 75 * oneHour + 23 * oneMinute + 53 * oneSecond + 605,
|
||||||
projectServerRoot: 'https://raw.githubusercontent.com/gorhill/uBlock/master/',
|
projectServerRoot: 'https://raw.githubusercontent.com/gorhill/uBlock/master/',
|
||||||
userFiltersPath: 'assets/user/filters.txt',
|
userFiltersPath: 'assets/user/filters.txt',
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue