JBrowser Source Docs

jbrowser.engine.js

Generated from the source code of JBrowser 1.5.4.

jbrowser/engine/js.py · 319 lines

JavaScript injected into pages. Kept in Python so the frozen build needs no data files.

Constants#

Name Value
BRIDGE_WORLD 1
GUARD_JS str (951 characters)
AUTOFILL_JS str (4,550 characters)
INTERSTITIAL_HTML str (1,147 characters)
CLEAR_SITE_STORAGE_JS str (478 characters)

Functions#

privacy_js#

privacy_js(seed: int, exempt: list[str], gpc: bool, dnt: bool, canvas: bool) -> strsource

The main-world privacy script, or "" when every part of it is switched off.

cosmetic_js#

cosmetic_js(data: dict, allow: list[str]) -> strsource

qwebchannel_js#

qwebchannel_js() -> strsource

qwebchannel.js ships as a Qt resource inside the QtWebChannel module.