Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions content/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ linkAnalyzer = {

// add this to it's appropriate statistic array
linkAnalyzer.statistics[r].push(el);
linkAnalyzer.attr(el, "title", "This link was marked as \"" + r + "\"" + " (code " + status + ")");
let codeText = status != null ? " (code " + status + ")" : "";
linkAnalyzer.attr(el, "title", "This link was marked as \"" + r.replace("link", "").toLowerCase() + "\"" + codeText);

// and last, let's check if we didn't check all links already
var temp = linkAnalyzer.statistics.linkFine.length +
Expand Down Expand Up @@ -321,7 +322,7 @@ linkAnalyzer = {
}

// Extras
response = xml.responseURL.includes("404") ? "linkBroken" : response;
response = xml.responseURL.includes("404") && !xml.url.includes("404") ? "linkBroken" : response;

// now let's color link according to this response
linkAnalyzer.handler (response, el, xml.status);
Expand All @@ -333,8 +334,8 @@ linkAnalyzer = {
};

xml.open("HEAD", url, true);
//xml.send(null);
xml.withCredentials = true;
xml.url = url;
xml.send();
},

Expand Down