JavaScript Restrictor
Browser extension that improves privacy and security
Loading...
Searching...
No Matches
update.js File Reference

Code that updates configuration stored by the user after upgrades. More...

Functions

function async installUpdate ()
 
function async checkAndSaveConfig (conf, check_default=true)
 

Detailed Description

Code that updates configuration stored by the user after upgrades.

Author
Copyright (C) 2019 Martin Timko
Copyright (C) 2019-2021 Libor Polcak
License:
SPDX-License-Identifier: GPL-3.0-or-later

Function Documentation

◆ checkAndSaveConfig()

function async checkAndSaveConfig (   conf,
  check_default = true 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ installUpdate()

function async installUpdate ( )

0.3+ storage { default: 2, // Default protection level version: 2.2, // The version of this storage custom_levels: {}, // associative array of custom level (key, its id => object) {level_id: short string used for example on the badge level_text: Short level description level_description: Full level description ... wrapping_params (key-value pairs), see wrapping_groups for the list of params and supported values } domains: {}, // associative array of levels associated with specific domains (key, the domain => object) {level_id: short string of the level in use } nbsWhitelist: {} // associative array of hosts that are removed from http protection control (hostname => boolean) requestShieldOn: {} // Boolean, if it's TRUE or undefined, the http request protection is turned on, if it's FALSE, the protection si turned off fpDetectionOn: {} // Boolean, if it's TRUE, the fingerprint detection is turned on, if it's FALSE or undefined, the protection si turned off

Here is the call graph for this function:
Here is the caller graph for this function: