-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewer.html
27 lines (27 loc) · 1.5 KB
/
viewer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html lang="en">
<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>View Hack</title>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Set the URL you want to display in all iframes
const iframeUrl = "https://www.example.com";
// Change this to your desired URL
const iframeCount = 40;
// Total number of iframes
let loadedCount = 0;
// Counter for loaded iframes
// Create the iframes and append them to the body
const iframeContainer = document.getElementById('iframe-container');
for (let i = 0; i < iframeCount; i++) {
const iframe = document.createElement('iframe');
iframe.src = iframeUrl; iframe.style.width = "50px";
// Set the width of the iframe (adjust as needed)
iframe.style.height = "50px";
// Set the height of the iframe (adjust as needed)
iframe.style.margin = "10px";
// Add some spacing between iframes
// Add an event listener to track when each iframe has loaded
iframe.addEventListener('load', function() { loadedCount++; if (loadedCount === iframeCount) {
// When all iframes have loaded, reload the page
location.reload(); } }); iframeContainer.appendChild(iframe); } }); </script> </head> <body><a href="https://www.github.com/Chucny" style="color:orange;font-size:16px;">This tool was made by <strong>Chucny (GitHub)</strong></a><center><big style="color:grey;font-size:16px;">View hack</big></center> <div id="iframe-container" style="display: flex; flex-wrap: wrap;"></div> </body> </html>