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 25, 2024
1 parent 1b92698 commit ff23177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ <h1>Google Dorks for Bug Bounty - By VeryLazyTech</h1>

const dorkLinks = document.querySelectorAll(".dorkLink");
dorkLinks.forEach((link, index) => {
let originalDork = originalDorks[index]; // Get the original dork for reference
let originalDork = originalDorks[index];

// Only replace the domain part after 'site:', preserving other dork parameters
domains.forEach(domain => {
// This regex matches the site part (site:"domain") and replaces it with the new domain
originalDork = originalDork.replace(/site:"[^"]+"/, `site:"${domain}"`);
originalDork = originalDork.replace(/"example\.com"/g, `"${domain}"`);
});

// Update the href and text of the dork link
Expand Down

0 comments on commit ff23177

Please sign in to comment.