Skip to content

Commit

Permalink
Update tyrtyr.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ex16x41 authored Dec 15, 2023
1 parent c813bc9 commit e1f493d
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions tyrtyr.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
.logo {
max-width: 200px;
max-height: 100px;
margin-left: auto;
}
</style>
</head>
Expand All @@ -70,20 +71,6 @@ <h1>Dorks Explorer</h1>
"inurl:q= | inurl:s= | inurl:search= | inurl:query= | inurl:keyword= | inurl:lang= inurl:& site:example.com",
"site:example.com -www -help -support -community -developer -event -blog",
];
document.getElementById("search-btn").addEventListener("click", search);

document.getElementById("domain").addEventListener("keyup", function(event) {

if (event.keyCode === 13) {

event.preventDefault();

search();

}

});


function search() {

Expand All @@ -102,6 +89,8 @@ <h1>Dorks Explorer</h1>

let output = "<h2>Results for Domain: " + domain + "</h2>";

output += "<ul>";

output += "<li><a href='" + googleLink + encodeURIComponent(dorks[0].replace("example.com", domain)) + "' target='_blank'>" + dorks[0].replace("example.com", domain) + "</a></li>";

output += "</ul>";
Expand All @@ -111,6 +100,8 @@ <h1>Dorks Explorer</h1>
output += "<li><a href='" + googleLink + encodeURIComponent(modifiedDork) + "' target='_blank'>" + modifiedDork + "</a></li>";
});

output += "</ul>";

result.innerHTML = output;

}
Expand Down

0 comments on commit e1f493d

Please sign in to comment.