JavaScript Restrictor
Browser extension that improves privacy and security
|
Functions that build code that modifies JS evironment provided to page scripts. More...
Functions | |
function | enclose_wrapping (code,...args) |
function | enclose_wrapping2 (code, name, params, call_with_window) |
function | create_counter_call (wrapper, type, fpdTrackCallers) |
function | define_page_context_function (fpdTrackCallers, wrapper) |
function | generate_assign_function_code (code_spec_obj) |
function | generate_object_properties (fpdTrackCallers, code_spec_obj, fpd_only) |
function | generate_delete_properties (code_spec_obj) |
function | generate_assignement (code_spec_obj) |
Functions that build code that modifies JS evironment provided to page scripts.
function create_counter_call | ( | wrapper, | |
type, | |||
fpdTrackCallers | |||
) |
Create code containing call of API counting function.
function define_page_context_function | ( | fpdTrackCallers, | |
wrapper | |||
) |
This function create code (as string) that creates code that can be used to inject (or overwrite) a function in the page context.
function enclose_wrapping | ( | code, | |
args | |||
) |
Create IIFE to wrap the code in closure
function enclose_wrapping2 | ( | code, | |
name, | |||
params, | |||
call_with_window | |||
) |
Create wrapping that might be IIFE or a function that is immediately called and also available for future.
function generate_assign_function_code | ( | code_spec_obj | ) |
This function creates code that assigns an already defined function to given property.
function generate_assignement | ( | code_spec_obj | ) |
This function generates code that makes an assignment.
function generate_delete_properties | ( | code_spec_obj | ) |
This function removes a property.
function generate_object_properties | ( | fpdTrackCallers, | |
code_spec_obj, | |||
fpd_only | |||
) |
This function wraps object properties using WrapHelper.defineProperties().