diff --git a/index.html b/index.html
index 77b6bd7..f4a36b7 100644
--- a/index.html
+++ b/index.html
@@ -214,22 +214,26 @@
Google Dorks for Bug Bounty - By VeryLazyTech
function updateDomain() {
const domains = domainInput.value.split(",").map(domain => domain.trim()).filter(Boolean);
-
+
if (domains.length === 0) return;
-
+
const dorkLinks = document.querySelectorAll(".dorkLink");
dorkLinks.forEach((link, index) => {
- let originalDork = originalDorks[index];
-
+ let originalDork = originalDorks[index]; // Get the original dork for reference
+
+ // Replace the "site:" part with the new domains
domains.forEach(domain => {
+ // This ensures only the site domain part is replaced
originalDork = originalDork.replace(/site:"?[^"]+"?/g, `site:"${domain}"`);
});
-
+
+ // Update the href and the text content for each link
link.href = `https://www.google.com/search?q=${encodeURIComponent(originalDork)}`;
- link.textContent = originalDork;
+ link.textContent = originalDork; // Display updated dork
});
}
+
fetchDorks();