0.0.5 • Published 5 months ago

fp-collector v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

FP-Collector

Simple script for collecting some unique information from browsers

checkout the demo

Feel free to contribute!

See dev-branch for the latest features.

Usage

You can embed the script into your website using a free CDN.

<script type="text/javascript" src="://unpkg.com/fp-collector"><script>
var elem = document.documentElement;
function callback(e){
    window.fp_click_callback(e)
    elem.removeEventListener("mousedown", this);
    elem.removeEventListener("touchstart", this);
}
var data = getFingerprint(true, false);
elem.addEventListener("mousedown", callback);
elem.addEventListener("touchstart", callback);
data = await data
// globalThis.on_fp_result
// send_back(JSON.stringify(data)
async function getFingerprint(get_gl=true, check_worker=true){...}
  • get_gl=true will unavoidably show warnings in the console stack-overflow
  • check_worker=true requires blob: urls to be allowed ("Content-Security-Policy: worker-src 'self' blob:" header might work)

You can find some example output at sample_output.json

Help

Please feel free to open an issue or fork! \ Note: please check the todo's below at first!

Todo's

  • no TODO's yet

Authors

Copyright and Author: \ Aurin Aegerter (aka Steve)

Cleanups, NPM: Peet

License

fp-collector is licensed under the MIT license! See LICENSE.md

Third pary

for the demo as well: jquery.json-viewer and jquery, which each have their own licence

Disclaimer

I am not responsible what you use the code for!!! Also no warranty!

Acknowledgments

Inspiration, code snippets, etc.

0.0.5

5 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago