JS code for pop up.
More...
JS code for pop up.
- Author
- Copyright (C) 2019 Martin Timko
-
Copyright (C) 2019 Libor Polcak
-
Copyright (C) 2020 Pavel Pohner
-
Copyright (C) 2021 Marek Salon
- License:
- SPDX-License-Identifier: GPL-3.0-or-later
◆ addEventListener()
window addEventListener |
( |
"load" |
"load", |
|
|
function() { load_on_off_switch("nbs");load_on_off_switch("fpd");} |
function() { load_on_off_switch("nbs");load_on_off_switch("fpd");} |
|
) |
| |
◆ changeActiveLevel()
function changeActiveLevel |
( |
|
activeEl | ) |
|
Visaully highlights the active level.
◆ close()
◆ control_whitelist()
function async control_whitelist |
( |
|
prefix | ) |
|
Event handler for On/off switch.
◆ getCurrentSite()
function async getCurrentSite |
( |
| ) |
|
◆ getElementById()
document getElementById |
( |
|
'controls' | ) |
|
◆ getElementsByClassName()
document getElementsByClassName |
( |
|
"slider" | ) |
|
◆ load_on_off_switch()
function async load_on_off_switch |
( |
|
prefix | ) |
|
Load switch state from storage for current site.
◆ query()
browser tabs query |
( |
|
queryInfo | ) |
|
◆ showRefreshPageOption()
function showRefreshPageOption |
( |
| ) |
|
Enable the refresh page option.
Initial value:{
browser.runtime.openOptionsPage()
◆ fadeIn
◆ fadeOut
◆ myAddon
var myAddon = new URL(browser.runtime.getURL ('./')) |
◆ queryInfo
Initial value:= {
active: true,
currentWindow: true
}
◆ url