Open wiizarrrd opened 3 years ago
I have to block JavaScript in general in order to get any searchresults with DuckDuckGo
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)
});
Hi, I don't get any search results in DuckDuckGo with this plugin enabled :/