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

Main file handling wrappers. More...

Functions

function add_wrappers (wrappers)
 
function noise_function (numberToChange, precision)
 

Variables

var build_wrapping_code = {}
 
var rounding_function
 
var noise_function = `let lastValue = 0
 

Detailed Description

Main file handling wrappers.

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

Function Documentation

◆ add_wrappers()

function add_wrappers (   wrappers)

Adds a list of wrapping objects to the build_wrapping_code.

This function is called from each wrapper in its file.

◆ noise_function()

function noise_function (   numberToChange,
  precision 
)

Variable Documentation

◆ build_wrapping_code

var build_wrapping_code = {}

The object carrying all the wrappers

◆ noise_function

var noise_function = `let lastValue = 0

Function to be used by wrapped code for adding randomized noise

◆ rounding_function

var rounding_function
Initial value:
= `function rounding_function(numberToRound, precision) {
return numberToRound - (numberToRound % Math.pow(10, Math.max(3 - precision)));
}`
var rounding_function
Definition wrapping.js:59

Function to be used by wrapped code used for rounding