RRR pro Evil Shortener
RRR pro Evil Shortener
1st Click = Ad | 2nd Click = Real Evil Link
function generateShort() {
const realLink = document.getElementById("realLink").value.trim();
if (!realLink.startsWith("http")) return alert("Enter a valid URL starting with http or https!");
const key = btoa(realLink).substring(0, 8);
const shortURL = `${location.origin}${location.pathname}?go=${key}`;
localStorage.setItem("rrr_" + key, realLink);
document.getElementById("output").innerHTML = `
Use this evil short link:
${shortURL}
`;
}
window.onload = () => {
const params = new URLSearchParams(location.search);
const key = params.get("go");
if (key) {
const stored = localStorage.getItem("rrr_" + key);
if (stored) {
const clicked = localStorage.getItem("clicked_" + key);
if (!clicked) {
localStorage.setItem("clicked_" + key, "1");
location.href = adLink;
} else {
location.href = stored;
}
} else {
document.body.innerHTML = "
Invalid or expired evil link.
";
}
}
};