root README, export mode:
<script src="/liarjs-collect.min.js" data-mode="export"></script>
Export mode: collects and hands the visitor a JSON file, making no request at all
"hands the visitor a JSON file" is the whole description and it skips the part i have to build around. one tag, no code, so:
- does it fire automatically on load and start a download unprompted? that's a browser asking "do you want to download liarjs-sample.json" to someone who just opened my page, and chrome blocks/annoys on downloads with no user gesture anyway.
- or does it wait for a gesture — and if so, what do i wire my button to? is there a global (
window.liarjs.export() or similar) that the tag installs? nothing in the README names one, and packages/collect/src/config.ts only ever shows data-* attributes.
- what's the filename, and does it re-run and re-download on every navigation within the site?
if export mode is really meant for a dedicated "download your fingerprint" page rather than a site-wide tag, saying that plus the one line of glue code would make it usable.
root README, export mode:
"hands the visitor a JSON file" is the whole description and it skips the part i have to build around. one tag, no code, so:
window.liarjs.export()or similar) that the tag installs? nothing in the README names one, andpackages/collect/src/config.tsonly ever showsdata-*attributes.if export mode is really meant for a dedicated "download your fingerprint" page rather than a site-wide tag, saying that plus the one line of glue code would make it usable.