Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe12387 committed Jan 5, 2023
1 parent a58f47e commit 3ba43ca
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/opfs.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* Overpowered Browser Fingerprinting Script v1.0.1b - (c) 2023 Joe Rutkowski <Joe@dreggle.com> (https://github.com/Joe12387/OP-Fingerprinting-Script)
* Overpowered Browser Fingerprinting Script v1.0.1 - (c) 2023 Joe Rutkowski <Joe@dreggle.com> (https://github.com/Joe12387/OP-Fingerprinting-Script)
*
**/
declare const fingerprint: () => Promise<any>;
Expand Down
2 changes: 1 addition & 1 deletion dist/opfs.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/opfs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/opfs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion opfs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "op-fingerprinting-script",
"version": "1.0.0",
"version": "1.0.1",
"description": "An overpowered JavaScript browser fingerprinting library for creating persistent, unique and long-lasting digital fingerprints.",
"main": "dist/opfs.js",
"types": "dist",
Expand Down
18 changes: 9 additions & 9 deletions src/opfs.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
*
* Overpowered Browser Fingerprinting Script v1.0.1b - (c) 2023 Joe Rutkowski <Joe@dreggle.com> (https://github.com/Joe12387/OP-Fingerprinting-Script)
* Overpowered Browser Fingerprinting Script v1.0.1 - (c) 2023 Joe Rutkowski <Joe@dreggle.com> (https://github.com/Joe12387/OP-Fingerprinting-Script)
*
**/
const fingerprint = function(): Promise<any> {
const fingerprint = (): Promise<any> => {
function murmurhash3_32_gc(key: any, seed: number): number {
const remainder = key.length & 3;
const bytes = key.length - remainder;
Expand Down Expand Up @@ -536,7 +536,7 @@ const fingerprint = function(): Promise<any> {
});
},
performance: function(): Promise<any[]> {
return new Promise(function(resolve) {
return new Promise(function(resolve): void {
if (!isChrome()) resolve([-1, null]);

const perf = window.performance;
Expand All @@ -553,7 +553,7 @@ const fingerprint = function(): Promise<any> {

for (let i = 0; i < 5000; i++) {
if ((now = newNow) < (newNow = perf.now())) {
let difference = newNow - now;
const difference = newNow - now;
if (difference > valueA) {
if (difference < valueB) {
valueB = difference;
Expand All @@ -569,14 +569,14 @@ const fingerprint = function(): Promise<any> {
});
},
speechSynthesis: function(): Promise<any[]> {
return new Promise(function(resolve) {
return new Promise(function(resolve): void {
if (isBrave() || isFirefox() || isSafari()) resolve([-1, null]);

let tripped = false;
const synth = window.speechSynthesis;
if (synth === undefined) resolve([-2, null]);

function populateVoiceList() {
function populateVoiceList(): void {
const voices = synth.getVoices();
let output = [] as any;
for (let i = 0; i < voices.length; i++) {
Expand All @@ -596,7 +596,7 @@ const fingerprint = function(): Promise<any> {
});
},
applePay: function(): Promise<any[]> {
return new Promise(function(resolve) {
return new Promise(function(resolve): void {
// let ap = (window as any).ApplePaySession;
if (typeof (window as any).ApplePaySession !== "function") resolve([-1, null]);
const enabled = (window as any).ApplePaySession.canMakePayments();
Expand All @@ -614,7 +614,7 @@ const fingerprint = function(): Promise<any> {
});
},
webglInfo: function(): Promise<any[]> {
return new Promise(function(resolve) {
return new Promise(function(resolve): void {
const canvas = document.createElement('canvas');

try {
Expand Down Expand Up @@ -901,7 +901,7 @@ const fingerprint = function(): Promise<any> {
try {
const tmp = e.toSource();
resolve([0, true]);
} catch (ee) {
} catch (ee: any) {
resolve([0, false]);
}
}
Expand Down

0 comments on commit 3ba43ca

Please sign in to comment.