Skip to content

Commit fd5a17f

Browse files
authored
Update index.html
1 parent 8378ddd commit fd5a17f

File tree

1 file changed

+31
-85
lines changed

1 file changed

+31
-85
lines changed

index.html

Lines changed: 31 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
--primary-color: #9C27B0;
1414
--background-color: #1C1C1C;
1515
--text-color: #ffffff;
16-
--accent-color:#E1BEE7;
16+
--accent-color: #E1BEE7;
1717
--border-color: rgba(255, 255, 255, 0.1);
1818
}
1919

@@ -68,23 +68,6 @@
6868
background-color: rgba(255, 255, 255, 0.08);
6969
}
7070

71-
.social-links {
72-
text-align: center;
73-
margin: 20px 0;
74-
}
75-
76-
.social-links a {
77-
display: inline-block;
78-
margin: 0 0px;
79-
padding: 4px 8px;
80-
color: #888;
81-
transition: color 0.3s ease;
82-
}
83-
84-
.social-links a:hover {
85-
color: var(--accent-color);
86-
}
87-
8871
#dorkList {
8972
margin: 40px 0;
9073
padding: 0;
@@ -118,40 +101,6 @@
118101
letter-spacing: 1px;
119102
}
120103

121-
section {
122-
margin-top: 60px;
123-
padding-top: 20px;
124-
border-top: 1px solid var(--border-color);
125-
}
126-
127-
h2 {
128-
font-size: 1.8em;
129-
color: #888;
130-
margin-bottom: 20px;
131-
}
132-
133-
#tooltip {
134-
position: absolute;
135-
background-color: rgba(0, 0, 0, 0.9);
136-
color: #888;
137-
padding: 8px 12px;
138-
border-radius: 4px;
139-
font-size: 0.9em;
140-
z-index: 1000;
141-
max-width: 300px;
142-
display: none;
143-
}
144-
145-
pre {
146-
background-color: #333;
147-
padding: 20px;
148-
border-radius: 5px;
149-
overflow-x: auto;
150-
font-family: 'Courier New', Courier, monospace;
151-
white-space: pre-wrap;
152-
word-wrap: break-word;
153-
}
154-
155104
@media (max-width: 768px) {
156105
body {
157106
padding: 20px;
@@ -167,35 +116,19 @@
167116
<div class="container">
168117
<h1>Google Dorks for Bug Bounty - By VeryLazyTech</h1>
169118

170-
<div class="social-links">
171-
<a href="https://x.com/verylazytech" target="_blank" rel="noopener">
172-
<img src="https://img.shields.io/twitter/url?url=https%3A%2F%2Fx.com%2Fverylazytech" alt="X Follow">
173-
</a>
174-
<a href="https://github.com/verylazytech" target="_blank" rel="noopener">
175-
<img src="https://img.shields.io/badge/Github-verylazytech-%23181717?style=flat&logo=github&logoColor=white" alt="Github">
176-
</a>
177-
<a href="https://buymeacoffee.com/verylazytech/extras" target="_blank" rel="noopener">
178-
<img src="https://img.shields.io/badge/My%20Shop-verylazytech-%23FFDD00?style=flat&logo=buy-me-a-coffee&logoColor=yellow" alt="My shop">
179-
</a>
180-
<a href="https://www.verylazytech.com" target="_blank" rel="noopener">
181-
<img src="https://img.shields.io/badge/My%20GitBook-VeryLazyTech-%23FFDD00?style=flat&logo=gitbook&logoColor=white" alt="My Gitbook">
182-
</a>
183-
</div>
184-
185119
<div class="search-container">
186120
<label for="domainInput">Enter a domain:</label>
187121
<input type="text" id="domainInput" placeholder="example.com" oninput="updateDomain()">
188122
</div>
189-
190-
<div id="tooltip">For multiple domains, separate by comma. e.g., example1.com, example2.com</div>
191123
</div>
192124

193-
<!-- Code block where the dorks will be displayed -->
194-
<pre id="dorkList"></pre>
125+
<!-- List to display dorks in the desired style -->
126+
<ul id="dorkList"></ul>
195127

196128
<script>
197129
const dorkListElement = document.getElementById("dorkList");
198-
const tooltip = document.getElementById("tooltip");
130+
const domainInput = document.getElementById("domainInput");
131+
199132
let originalDorks = []; // Store original dorks for reference
200133

201134
document.getElementById("domainInput").addEventListener("input", updateDomain);
@@ -217,18 +150,37 @@ <h1>Google Dorks for Bug Bounty - By VeryLazyTech</h1>
217150

218151
// Only append the title once when the first dork appears under a title
219152
if (currentTitle) {
220-
dorkListElement.innerHTML += `${currentTitle}\n`;
153+
const liElement = document.createElement("li");
154+
const descriptionElement = document.createElement("p");
155+
descriptionElement.classList.add("description");
156+
descriptionElement.textContent = currentTitle;
157+
liElement.appendChild(descriptionElement);
158+
159+
const linkElement = document.createElement("a");
160+
linkElement.classList.add("dorkLink");
161+
linkElement.setAttribute("href", `https://www.google.com/search?q=${encodeURIComponent(dork)}`);
162+
linkElement.setAttribute("target", "_blank");
163+
linkElement.textContent = dork;
164+
165+
liElement.appendChild(linkElement);
166+
dorkListElement.appendChild(liElement);
167+
221168
currentTitle = ''; // Reset the title to prevent repetition
169+
} else {
170+
const liElement = document.createElement("li");
171+
const linkElement = document.createElement("a");
172+
linkElement.classList.add("dorkLink");
173+
linkElement.setAttribute("href", `https://www.google.com/search?q=${encodeURIComponent(dork)}`);
174+
linkElement.setAttribute("target", "_blank");
175+
linkElement.textContent = dork;
176+
liElement.appendChild(linkElement);
177+
dorkListElement.appendChild(liElement);
222178
}
223-
224-
// Add the dork to the code block, separated by newline
225-
dorkListElement.innerHTML += `${dork}\n`;
226179
}
227180
}
228181
}
229182

230183
function updateDomain() {
231-
const domainInput = document.getElementById("domainInput");
232184
const domains = domainInput.value.split(",").map(domain => domain.trim()).filter(Boolean);
233185

234186
if (domains.length === 0) return;
@@ -237,18 +189,12 @@ <h1>Google Dorks for Bug Bounty - By VeryLazyTech</h1>
237189
dorkLinks.forEach((link, index) => {
238190
let originalDork = originalDorks[index];
239191

240-
const domainPatterns = [
241-
/site:\s?"?example.com"?/g
242-
];
243-
244192
domains.forEach(domain => {
245-
domainPatterns.forEach(pattern => {
246-
originalDork = originalDork.replace(pattern, `site:"${domain}"`);
247-
});
193+
originalDork = originalDork.replace(/site:"?[^"]+"?/g, `site:"${domain}"`);
248194
});
249195

250196
link.href = `https://www.google.com/search?q=${encodeURIComponent(originalDork)}`;
251-
link.innerHTML = originalDork;
197+
link.textContent = originalDork;
252198
});
253199
}
254200

0 commit comments

Comments
 (0)