revise the code at scripts/popup.js:88
function listFound(found) {
// foundList.innerHTML = '';
foundLabel.style.display = foundList.style.display = found.length > 0 ? 'block' : 'none';
found.forEach((str) => {
try {
const line = JSON.parse(str);
const tr = document.createElement("tr");
if (line['domain'] == 'null')
hostname = line['domain'];
else
hostname = new URL(line['domain']).hostname;
tr.innerHTML = `<td><a target="_blank" href="${line['domain']}">${hostname}</a></td><td>${line['type']}</td><td><a target="_blank" href="${line['file']}">${line['file']}:${line['lineCol']}</a></td>`;
foundList.appendChild(tr);
} catch (e) {
const tr = document.createElement("tr");
tr.innerHTML = `<td><a target="_blank" href="${str}">${new URL(str).hostname}</a></td><td>brute</td><td><a target="_blank" href="${str}">${str}</a></td>`;
foundList.appendChild(tr);
}
});
}
revise the code at scripts/popup.js:88