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
-
Copyright (C) 2022 Giorgio Maone
- License:
- SPDX-License-Identifier: GPL-3.0-or-later
◆ add_level_buttons()
function add_level_buttons |
( |
| ) |
|
Load levels and add level setting buttons
◆ async()
◆ changeActiveLevel()
function changeActiveLevel |
( |
|
activeEl | ) |
|
Visaully highlights the active level.
◆ control_whitelist()
function async control_whitelist |
( |
|
prefix | ) |
|
Event handler for On/off switch.
◆ disable_jss()
function async disable_jss |
( |
|
orig_level | ) |
|
Disable JSS for this page.
◆ enable_jss()
function async enable_jss |
( |
|
level | ) |
|
◆ enableRefreshIfNeeded()
function enableRefreshIfNeeded |
( |
| ) |
|
Control the state of the Refresh button
◆ fill_jsshield()
function fill_jsshield |
( |
|
msg | ) |
|
Fill the content of the JS Shield settings
◆ fpdGetSeverity()
function async fpdGetSeverity |
( |
| ) |
|
Get fingerprinting severity from FPD and show it in a popup.
◆ getCurrentSite()
function async getCurrentSite |
( |
| ) |
|
◆ getElementById()
document getElementById |
( |
|
"global-settings" | ) |
|
◆ init_jsshield()
function async init_jsshield |
( |
| ) |
|
◆ load_on_off_switch()
function async load_on_off_switch |
( |
|
prefix | ) |
|
Load switch state from storage for current site.
◆ modify_level()
function modify_level |
( |
|
level, |
|
|
|
levelButton, |
|
|
|
forceUpdateLevels = false |
|
) |
| |
Save level settings for current page, show correct button
◆ showRefreshPageOption()
function showRefreshPageOption |
( |
|
toggle = true | ) |
|
Enable the refresh page option.
◆ update_level_info()
function update_level_info |
( |
| ) |
|
◆ update_tweaks()
function update_tweaks |
( |
| ) |
|
◆ assign_custom_params
Initial value:= function(group) {
group.groupHits =
hits[group.name] || 0;
}
◆ checked
widget checked = localStorage.getItem(key) === 'true' |
◆ cmp_groups
Initial value:= function (firstObj, secondObj) {
let firstGr = firstObj.group;
let secondGr = secondObj.group;
return secondGr.groupHits - firstGr.groupHits;
}
◆ current_level
◆ customize_tweak_row
Initial value:= function (tweakRow, group) {
if (group.name === "wasm") {
tweakRow.querySelector(".hits").textContent = "-";
return;
}
let groupHits = group.groupHits;
if (groupHits >= 999) {
groupHits = "1000 or more";
}
if (!(tweaks && (tweaks[group.name] > 0))) {
if ((tweaks && tweaks[group.name] === 0) || (!(
main > 0))) {
groupHits = String(groupHits) + " (unreliable)";
}
}
}
tweakRow.querySelector(".hits").textContent = groupHits;
}
function async main()
Definition benchmark.js:274
◆ default_lev_button
Initial value:{
browser.runtime.openOptionsPage()
◆ fpd_active
◆ get_current_tweaks
Initial value:= function() {
}
function getTweaksForLevel(level_id, tweaks_obj)
Definition levels.js:1045
◆ hits
◆ key
let key = `controls-${widget.id}-checked` |
◆ onchange
Initial value:= () => {
widget.parentElement.classList.toggle(
"toggled",
checked);
})()
◆ pageConfiguration
var pageConfiguration = {} |
◆ popup_tweaks
let popup_tweaks = Object.create(tweaks_gui) |
◆ site
◆ tweak_changed
Initial value:= function(group_id, desired_tweak) {
}
}
var domains
Definition levels.js:896
function saveDomainLevels()
Definition levels.js:979