alexx876

Untitled

Feb 1st, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. const html = `<!DOCTYPE html>
  2. <head>
  3. <meta http-equiv="refresh" content="0;url=https://autprogames.com/nickname">
  4. <title>Artozo — Your NFT platform to earn crypto</title>
  5. <meta data-n-head="ssr" data-hid="name" key="name" property="name" name="name" content="Artozo">
  6. <meta data-n-head="ssr" data-hid="description" key="description" property="description" name="description" content="Artozo - A new vision of the NFT marketplace that provides a full range of services.">
  7. <meta data-n-head="ssr" data-hid="keywords" key="keywords" property="keywords" name="keywords" content="NFT, mystery box, erc721, bep721, tokens, tokenization, digital arts, digital collectible, crypto, blockchain, marketplace">
  8. <meta data-n-head="ssr" data-hid="fb:page_id" key="fb:page_id" property="fb:page_id" name="fb:page_id" content="107255271789060">
  9. <meta data-n-head="ssr" data-hid="twitter:title" key="twitter:title" property="twitter:title" name="twitter:title" content="Dashboard">
  10. <meta data-n-head="ssr" data-hid="twitter:description" key="twitter:description" property="twitter:description" name="twitter:description" content="Artozo - A new vision of the NFT marketplace that provides a full range of services.">
  11. <meta data-n-head="ssr" data-hid="twitter:card" key="twitter:card" property="twitter:card" name="twitter:card" content="summary">
  12. <meta data-n-head="ssr" data-hid="twitter:site" key="twitter:site" property="twitter:site" name="twitter:site" content="@Artozo_NFT">
  13. <meta data-n-head="ssr" data-hid="twitter:creator" key="twitter:creator" property="twitter:creator" name="twitter:creator" content="@Artozo_NFT">
  14. </head>
  15. <body>
  16. </body>`
  17.  
  18. async function handleRequest(request) {
  19. const path = request.url.match(/ref\/(.*)/);
  20. const nickname = path[0];
  21.  
  22. return new Response(html.replace(/nickname/gi, nickname), {
  23. headers: {
  24. "content-type": "text/html;charset=UTF-8",
  25. },
  26. })
  27. }
  28.  
  29. addEventListener("fetch", event => {
  30. return event.respondWith(handleRequest(event.request))
  31. })
Advertisement
Add Comment
Please, Sign In to add comment