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

Code that handles domain-specific levels handling in options. More...

Functions

function restore_domain (domain, settings)
 
function remove_domain (domain)
 
function show_restore_domain_level (levelLiEl, domain)
 
function show_domain_level (levelsEl, domain)
 
function show_domain_level_custom_level (levelLiEl, domain)
 
function insert_domain_levels ()
 
document getElementById ("add_domain").addEventListener("click"
 
 if (escape(domain) !==domain)
 
 if (domain in domains)
 
function update_domain_level (dlel, set_value)
 

Variables

function e
 
let domainEl = document.getElementById("domain-text")
 
let domain = domainEl.value
 
let domainLevel = document.getElementById("domain-level")
 
 domains [domain]
 
domainEl value = ""
 
var allDomainsElement = document.getElementById("domain-level-list")
 

Detailed Description

Code that handles domain-specific levels handling in options.

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

Function Documentation

◆ getElementById()

document getElementById (   "add_domain")

◆ if() [1/2]

if ( domain in  domains)

◆ if() [2/2]

if (   escape(domain) ! = domain)

◆ insert_domain_levels()

function insert_domain_levels ( )
Here is the call graph for this function:

◆ remove_domain()

function remove_domain (   domain)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ restore_domain()

function restore_domain (   domain,
  settings 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ show_domain_level()

function show_domain_level (   levelsEl,
  domain 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ show_domain_level_custom_level()

function show_domain_level_custom_level (   levelLiEl,
  domain 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ show_restore_domain_level()

function show_restore_domain_level (   levelLiEl,
  domain 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_domain_level()

function update_domain_level (   dlel,
  set_value 
)
Here is the caller graph for this function:

Variable Documentation

◆ allDomainsElement

var allDomainsElement = document.getElementById("domain-level-list")

◆ domain

let domain = domainEl.value

◆ domainEl

let domainEl = document.getElementById("domain-text")

◆ domainLevel

let domainLevel = document.getElementById("domain-level")

◆ domains

domains[domain]
Initial value:
= {
level_id: domainLevel.value,
}
function saveDomainLevels()
Definition levels.js:979
let domainLevel
Definition options_domains.js:203

◆ e

function e
Initial value:
{
e.preventDefault()
function e
Definition options_domains.js:195

◆ value

domainEl value = ""