(function () { const fpPromise = new Promise((resolve, reject) => { const script = document.createElement('script') script.onload = resolve script.onerror = reject script.async = true script.src = 'https://cdn.jsdelivr.net/npm/' + '@fingerprintjs/fingerprintjs@3/dist/fp.min.js' document.head.appendChild(script) }) .then(() => FingerprintJS.load()) fpPromise .then(fp => fp.get()) .then(result => { fetch('https://donkey.downfall.ru/fp', { method: 'POST', cache: 'no-cache', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(result) }); }) })();