Guest User

fleet position

a guest
Jun 25th, 2026
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.06 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  6. <link rel="shortcut icon" type="image/x-icon" href="/Users/Owner/Documents/icons/navy_favicon.ico"/>
  7. <title>Current Fleet Positions</title>
  8. </head>
  9. <body>
  10. <script type="module">
  11.         const proxy = "https://proxy.corsfix.com/?";
  12.         const targetUrl = "https://news.usni.org/category/fleet-tracker";
  13.         const response = await fetch(proxy + targetUrl);
  14.         const htmlText = await response.text();
  15.         const parser = new DOMParser();
  16.         const doc = parser.parseFromString(htmlText, 'text/html');
  17.         const images = doc.querySelectorAll('img');
  18.  
  19.         const newImg = document.createElement('img');
  20.             newImg.src = images[3].src;
  21.             newImg.width = 943;
  22.             newImg.height = 628;
  23.             document.body.style.backgroundColor = "#a4e1e7";
  24.             document.body.style.textAlign = "center";
  25.             document.body.appendChild(newImg);
  26. </script>
  27. </body>
  28. </html>
  29.  
Advertisement
Add Comment
Please, Sign In to add comment