Skip to content

Instantly share code, notes, and snippets.

@bl4de
Forked from nikitastupin/fingerprint.js
Created April 24, 2021 15:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bl4de/0773064c86b2e0e5a043ecb55a0afae9 to your computer and use it in GitHub Desktop.
fingerprint.js
(() => {
let gadgets = [];
if (typeof _satellite !== 'undefined') {
gadgets.push('Adobe Dynamic Tag Management');
}
if (typeof BOOMR !== 'undefined') {
gadgets.push('Akamai Boomerang');
}
if (typeof goog !== 'undefined' && typeof goog.basePath !== 'undefined') {
gadgets.push('Closure');
}
if (typeof DOMPurify !== 'undefined') {
gadgets.push('DOMPurify');
}
if (typeof window.embedly !== 'undefined') {
gadgets.push('Embedly Cards');
}
if (typeof $ !== 'undefined' && typeof $.fn !== 'undefined' && typeof $.fn.jquery !== 'undefined') {
gadgets.push('jQuery ');
}
if (typeof filterXSS !== 'undefined') {
gadgets.push('js-xss');
}
if (typeof ko !== 'undefined' && typeof ko.version !== 'undefined') {
gadgets.push('Knockout.js');
}
if (typeof _ !== 'undefined' && typeof _.template !== 'undefined' && typeof _.VERSION !== 'undefined') {
gadgets.push('Lodash <= 4.17.15');
}
if (typeof Marionette !== 'undefined') {
gadgets.push('Marionette.js / Backbone.js');
}
if (typeof recaptcha !== 'undefined') {
gadgets.push('Google reCAPTCHA');
}
if (typeof sanitizeHtml !== 'undefined') {
gadgets.push('sanitize-html');
}
if (typeof analytics !== 'undefined' && typeof analytics.SNIPPET_VERSION !== 'undefined') {
gadgets.push('Segment Analytics.js');
}
if (typeof Sprint !== 'undefined') {
gadgets.push('Sprint.js');
}
if (typeof SwiftypeObject != 'undefined') {
gadgets.push('Swiftype Site Search (uses jQuery BBQ)');
}
if (typeof utag !== 'undefined' && typeof utag.id !== 'undefined') {
gadgets.push('Tealium Universal Tag');
}
if (typeof twq !== 'undefined' && typeof twq.version !== 'undefined') {
gadgets.push('Twitter Universal Website Tag');
}
if (typeof wistiaEmbeds !== 'undefined') {
gadgets.push('Wistia Embedded Video');
}
if (typeof $ !== 'undefined' && typeof $.zepto !== 'undefined') {
gadgets.push('Zepto.js');
}
console.log(gadgets);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment