Giter Club home page Giter Club logo

Comments (2)

wiizarrrd avatar wiizarrrd commented on August 10, 2024

I have to block JavaScript in general in order to get any searchresults with DuckDuckGo

from fingerprinting-monitor.

pfmephisto avatar pfmephisto commented on August 10, 2024

I'm observing the same issue.
Under chrome extensions it is listing it is listing the following error:

const MAX_SCRIPTS_TO_SHOW = 3,
    setDOMInfo = e => {
        var t = JSON.parse(e.extension_score);
        1 == t.url.startsWith("file") ? (nameoffile = t.url.split("/").slice(-1), document.getElementById("url").innerText = nameoffile) : document.getElementById("url").innerText = t.url.split("/").slice(2, 3).join("/"), document.getElementById("coverage").innerText = t.coverage_entities, document.getElementById("categories").innerText = t.coverage_categories, document.getElementById("aggressive_coverage").innerText = t.aggressive_coverage, fingerprint_categories = t.fingerprint_categories.replace(/_/g, " "), fingerprint_categories = fingerprint_categories.replace("App name", "Browser vendor"), fingerprint_categories = fingerprint_categories.replace("Oscpu", "Operating system"), fingerprint_categories = fingerprint_categories.replace("Cpu Class", "CPU class"), fingerprint_categories = fingerprint_categories.replace("Online", "Online status"), fingerprint_categories = fingerprint_categories.replace("Audio Video formats", "Audio and video formats"), fingerprint_categories = fingerprint_categories.replace("Hardware concurrency", "CPU concurrency"), fingerprint_categories_list = fingerprint_categories.split(";"), aggrocalls = [], naggrocalls = [];
        for (var r = 0; r < fingerprint_categories_list.length; r++) item = fingerprint_categories_list[r], "" != item && (["Canvas", "JS fonts", "List of plugins", "WebGL", "Webdriver", "Audio and video formats", "Audio", "Media devices", "Frequency analyzer", "Geolocation", "Connection", "App version", "Permissions", "Product sub", "Operating system", "Battery status", "Device memory", "CPU concurrency"].includes(item) ? aggrocalls.push(item) : naggrocalls.push(item));
        fingerprint_categories_text = "", fingerprint_categories_aggro_text = "", naggrocalls.length > 0 && (fingerprint_categories_text = "<li>" + naggrocalls.join("</li><li>") + "</li>"), aggrocalls.length > 0 && (fingerprint_categories_aggro_text = "<li>" + aggrocalls.join("</li><li>") + "</li>"), document.getElementById("fingerprint_categories").innerHTML = fingerprint_categories_text, document.getElementById("fingerprint_categories_aggro").innerHTML = fingerprint_categories_aggro_text
    };
var old_data = "";
const setScriptInfo = e => {
    var t = JSON.parse(e.script_origins_internal);
    document.getElementById("fingerprint_scripts").innerHTML = "", script_counter = 0, Object.keys(t).sort(function(e, r) {
        return t[e].unique_categories.length - t[r].unique_categories.length
    }).reverse().forEach(function(e, r) {
        if (!(script_counter > 2)) {
            script_calls_cnt = t[e].fingerprint.length, script_fp = t[e].fingerprint.join(";"), script_score = t[e].unique_categories.length, fixed_url = e, e.includes("?") && (fixed_url = e.split("?")[0]), url = new URL(fixed_url), filename = url.pathname.replace(/^.*[\\\/]/, ""), filename.includes(".js") || (filename = url.pathname);
            var n = document.createElement("a");
            n.setAttribute("href", e), n.setAttribute("target", "_blank"), textnode = url.hostname + filename, textnode.length > 36 && (textnode = textnode.substring(0, 36) + "..."), n.appendChild(document.createTextNode(textnode)), table_row = '<tr style="line-height: 8px;">', table_row += '<td style="border-bottom: 0px;">' + script_score + "</td>", table_row += '<td style="border-bottom: 0px;">' + n.outerHTML + "</td>", table_row += "</tr>", document.getElementById("fingerprint_scripts").innerHTML += table_row, script_counter++
        }
    })
};
window.addEventListener("DOMContentLoaded", () => {
    console.log("DOM Content loaded");
    setInterval(function() {
        chrome.tabs.query({
            active: !0,
            currentWindow: !0
        }, e => {
            chrome.tabs.sendMessage(e[0].id, {
                from: "popup",
                subject: "DOMInfo"
            }, setDOMInfo)
        })
    }, 250), setInterval(function() {
        chrome.tabs.query({
            active: !0,
            currentWindow: !0
        }, e => {
            chrome.tabs.sendMessage(e[0].id, {
                from: "popup",
                subject: "ScriptInfo"
            }, setScriptInfo)
        })
    }, 500)
});

from fingerprinting-monitor.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.