JavaScript Restrictor
Browser extension that improves privacy and security
|
Code that handles the configuration of the extension. More...
Functions | |
function | prepare_level_config (action_descr, params) |
function | edit_level (id) |
function | restore_level (id, level_params) |
function | show_existing_level (levelsEl, level) |
function | remove_level (id) |
function | update_level_details (heading, level) |
function | update_level_details_default () |
function | insert_levels () |
document | getElementById ("new_level").addEventListener("click" => show_whitelist("nbs")) |
document | getElementsByClassName ("slider")[0].addEventListener("click" |
function async | load_module_settings (prefix) |
function | show_whitelist (prefix) |
function | hide_whitelist (prefix) |
function | add_to_whitelist (prefix) |
function | remove_from_whitelist (prefix) |
function | update_whitelist (listbox, prefix) |
function | setStorageAndSendMessage (setter, message) |
function | getSelectValues (select) |
function | loadWhitelist (prefix) |
function | load_on_off_switch (prefix) |
function | control_slider (prefix) |
function | toggleSettings (prefix, enable) |
function | prepareHiddenHelpText (originally_hidden_elements, originally_visible_elements=[]) |
Variables | |
const | MANDATORY_METADATA = ["level_id", "level_text", "level_description"] |
function let | seq = Object.keys(levels).length |
let | new_id |
do | |
document document document document | e => {if (e.key === 'Enter') add_to_whitelist("nbs")}) |
Code that handles the configuration of the extension.
function add_to_whitelist | ( | prefix | ) |
function control_slider | ( | prefix | ) |
function edit_level | ( | id | ) |
document getElementById | ( | "new_level" | ) | => show_whitelist("nbs")) |
document getElementsByClassName | ( | "slider" | ) |
function getSelectValues | ( | select | ) |
function hide_whitelist | ( | prefix | ) |
function insert_levels | ( | ) |
function async load_module_settings | ( | prefix | ) |
function load_on_off_switch | ( | prefix | ) |
function loadWhitelist | ( | prefix | ) |
function prepare_level_config | ( | action_descr, | |
params | |||
) |
function prepareHiddenHelpText | ( | originally_hidden_elements, | |
originally_visible_elements = [] |
|||
) |
function remove_from_whitelist | ( | prefix | ) |
function remove_level | ( | id | ) |
function restore_level | ( | id, | |
level_params | |||
) |
function setStorageAndSendMessage | ( | setter, | |
message | |||
) |
function show_existing_level | ( | levelsEl, | |
level | |||
) |
function show_whitelist | ( | prefix | ) |
function toggleSettings | ( | prefix, | |
enable | |||
) |
function update_level_details | ( | heading, | |
level | |||
) |
function update_level_details_default | ( | ) |
function update_whitelist | ( | listbox, | |
prefix | |||
) |
do |
function e => {if (e.key === 'Enter') add_to_whitelist("nbs")}) |
const MANDATORY_METADATA = ["level_id", "level_text", "level_description"] |
let new_id |
seq = Object.keys(levels).length |