Last active
January 27, 2023 13:43
-
-
Save thypon/20a3322cee013b2f50ccae59dd9e1d65 to your computer and use it in GitHub Desktop.
Simple Haunted Iframe Webring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Haunted IFrame</title> | |
</head> | |
<body> | |
<style> | |
iframe { | |
display: block; | |
} | |
html, | |
body { | |
margin: 0px; | |
padding: 0px; | |
border: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
footer { | |
position: absolute; | |
right: 0; | |
left: 0; | |
margin: 0 auto; | |
bottom: 0px; | |
text-align: center; | |
background: white; | |
} | |
</style> | |
<script type="text/javascript"> | |
let iframe_ring = document.location.origin + document.location.pathname + "?src=" | |
let sites = [ | |
"https://malware.foundation/", | |
"gemini://dio9sys.fun", | |
"https://ortiz.sh/", | |
"https://ftp.lol/", | |
"https://nop.codes/", | |
"https://herm.it/", | |
"http://h0wdy.partners/", | |
"https://pixeldreams.tokyo/", | |
"https://n0.lol/", | |
"https://novafacing.github.io/", | |
"https://remyhax.xyz/", | |
"https://www.da.vidbuchanan.co.uk/blog/", | |
"https://s01den.github.io/", | |
"https://tmpout.sh/", | |
"https://www.guitmz.com/", | |
"https://pompel.me/", | |
"https://vvx7.io/", | |
"https://xcellerator.github.io/", | |
"https://0w.nz/", | |
"https://mfavata.github.io/", | |
"https://hacking.rip/" | |
] | |
let sites_iframed = [ | |
"https://malware.foundation/", | |
iframe_ring + "gemini://dio9sys.fun", | |
"https://ortiz.sh/", | |
"https://ftp.lol/", | |
"https://nop.codes/", | |
"https://herm.it/", | |
"http://h0wdy.partners/", | |
"https://pixeldreams.tokyo/", | |
iframe_ring + "https://n0.lol/", | |
iframe_ring + "https://novafacing.github.io/", | |
"https://remyhax.xyz/", | |
"https://www.da.vidbuchanan.co.uk/blog/", | |
iframe_ring + "https://s01den.github.io/", | |
iframe_ring + "https://tmpout.sh/", | |
iframe_ring + "https://www.guitmz.com/", | |
"https://pompel.me/", | |
"https://vvx7.io/", | |
iframe_ring + "https://xcellerator.github.io/", | |
iframe_ring + "https://0w.nz/", | |
"https://mfavata.github.io/", | |
"https://hacking.rip/" | |
] | |
function next(site) { | |
var idx = sites.indexOf(site) | |
if (idx < 0) | |
return; | |
if (idx + 1 >= sites_iframed.length) | |
idx = -1; | |
location.href = sites_iframed[idx + 1]; | |
} | |
function prev(site) { | |
var idx = sites.indexOf(site) | |
if (idx < 0) | |
return; | |
if (idx - 1 < 0) | |
idx = sites_iframed.length; | |
location.href = sites_iframed[idx - 1]; | |
} | |
function get(name) { | |
var param = ""; | |
if (name = (new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)')).exec(location.search)) { | |
param = decodeURIComponent(name[1]); | |
} | |
if (sites.indexOf(param)) { | |
return param; | |
} else { | |
return "https://pompel.me/" | |
} | |
} | |
</script> | |
<script> | |
var iframe = document.createElement("iframe"); | |
iframe.setAttribute('id', "ifrm1"); | |
iframe.setAttribute('src', get('src')); // change the URL | |
iframe.setAttribute('width', '100%'); | |
iframe.setAttribute('height', window.innerHeight); | |
iframe.setAttribute('frameBorder', '0'); | |
addEventListener("resize", (event) => { | |
iframe.setAttribute('height', window.innerHeight) | |
}); | |
//iframe.setAttribute('scrolling', 'yes'); | |
document.body.appendChild(iframe); | |
</script> | |
<noscript> | |
<p>This site uses JavaScript. You must allow JavaScript in your browser.</p> | |
</noscript> | |
<footer> | |
<a href="javascript:prev(get('src'))"><<<</a> | |
<span>This site is part of the </span> | |
<a href="https://cse.google.com/cse?cx=f667998e7bdfd4464" rel="noreferrer noopener" target="_blank">Haunted Webring</a> | |
<a href="javascript:next(get('src'))">>>></a> | |
</footer> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment