Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
verylazytech authored Nov 24, 2024
1 parent ccabaa9 commit d1c6f50
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,22 +214,26 @@ <h1>Google Dorks for Bug Bounty - By VeryLazyTech</h1>

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();
</script>
</body>
Expand Down

0 comments on commit d1c6f50

Please sign in to comment.