Skip to content

Commit 9d50f2c

Browse files
authored
Merge pull request #17 from lauritzh/develop
Fix e-mail domain handling
2 parents 59a2d36 + 458f226 commit 9d50f2c

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

build_extension.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ ZIP_FILE="dead_domain_discovery_$CURRENT_DATE.zip"
99
# List of files to include in the zip file based on the manifest
1010
FILES=(
1111
"manifest.json"
12+
"content.js"
1213
"background.js"
1314
"popup.html"
15+
"popup.js"
1416
"options.html"
17+
"options.js"
1518
"icons/icon16.png"
1619
"icons/icon32.png"
1720
"icons/icon48.png"

content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function scanPage() {
5050
if (href && isHttpUrl(href)) {
5151
resources.anchors.push({ url: href, element: 'a' });
5252
} else if (href && href.startsWith('mailto:')) {
53-
resources.anchors.push({ url: href.replace('mailto:','mailto://'), element: 'a > mailto' });
53+
resources.anchors.push({ url: href.replace('mailto://','mailto:').replace('mailto:','mailto://').replace('%40','@'), element: 'a > mailto' });
5454
}
5555
});
5656

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Dead Domain Discovery",
4-
"version": "0.7",
4+
"version": "0.7.2",
55
"description": "Scans the page for external iFrames, Scripts, and Styles, logs them to the console, and checks if their domains are resolvable.",
66
"permissions": [
77
"activeTab",

popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</style>
6969
</head>
7070
<body>
71-
<h1>Dead Domain Discovery v0.7</h1>
71+
<h1>Dead Domain Discovery v0.7.2</h1>
7272
<div class="stats">
7373
<p id="domain-stats">Found 0 Dead Domains</p>
7474
</div>

0 commit comments

Comments
 (0)