Spaces:
Running
Running
File size: 5,617 Bytes
9f00a05 |
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
let inFrame;
try {
inFrame = window !== top;
} catch (e) {
inFrame = true;
}
if (!localStorage.getItem("ab")) localStorage.setItem("ab", true);
if (
!inFrame &&
!navigator.userAgent.includes("Firefox") &&
localStorage.getItem("ab") === "true"
) {
const popup = open("about:blank", "_blank");
setTimeout(() => {
if (!popup || popup.closed) {
alert(
"Please allow popups for this site. Doing so will allow us to open the site in a about:blank tab and preventing this site from showing up in your history. You can turn this off in the site settings.",
);
} else {
const doc = popup.document;
const iframe = doc.createElement("iframe");
const style = iframe.style;
const link = doc.createElement("link");
const name = localStorage.getItem("name") || "My Drive - Google Drive";
const icon =
localStorage.getItem("icon") ||
"https://ssl.gstatic.com/docs/doclist/images/drive_2022q3_32dp.png";
doc.title = name;
link.rel = "icon";
link.href = icon;
iframe.src = location.href;
style.position = "fixed";
style.top = style.bottom = style.left = style.right = 0;
style.border = style.outline = "none";
style.width = style.height = "100%";
doc.head.appendChild(link);
doc.body.appendChild(iframe);
const pLink = localStorage.getItem(encodeURI("pLink")) || getRandomUrl();
location.replace(pLink);
const script = doc.createElement("script");
script.textContent = `
window.onbeforeunload = function (event) {
const confirmationMessage = 'Leave Site?';
(event || window.event).returnValue = confirmationMessage;
return confirmationMessage;
};
`;
doc.head.appendChild(script);
}
}, 2000);
}
// Particles
document.addEventListener("DOMContentLoaded", event => {
if (window.localStorage.getItem("Particles") === "true") {
const particlesConfig = {
particles: {
number: {
value: 200,
density: {
enable: true,
value_area: 600,
},
},
color: {
value: "#ffffff",
},
shape: {
type: "circle",
stroke: {
width: 0,
color: "#000000",
},
polygon: {
nb_sides: 5,
},
image: {
src: "img/github.svg",
width: 100,
height: 100,
},
},
opacity: {
value: 1,
random: true,
anim: {
enable: false,
speed: 1,
opacity_min: 0.1,
sync: false,
},
},
size: {
value: 3,
random: true,
anim: {
enable: false,
speed: 40,
size_min: 0.1,
sync: false,
},
},
line_linked: {
enable: false,
distance: 150,
color: "#ffffff",
opacity: 0.4,
width: 1,
},
move: {
enable: true,
speed: 2,
direction: "bottom",
random: true,
straight: false,
out_mode: "out",
bounce: false,
attract: {
enable: false,
rotateX: 600,
rotateY: 1200,
},
},
},
interactivity: {
detect_on: "canvas",
events: {
onhover: {
enable: true,
mode: "repulse",
},
onclick: {
enable: false,
mode: "push",
},
resize: true,
},
modes: {
grab: {
distance: 400,
line_linked: {
opacity: 1,
},
},
bubble: {
distance: 400,
size: 40,
duration: 2,
opacity: 8,
speed: 3,
},
repulse: {
distance: 40,
duration: 0.4,
},
push: {
particles_nb: 4,
},
remove: {
particles_nb: 2,
},
},
},
retina_detect: true,
};
particlesJS("particles-js", particlesConfig);
}
});
// Splash texts
const SplashT = [
"Over 8 Million Users since 2023",
"Fastest growing proxy server",
"Made by xBubbo",
"Check out discord.gg/interstellar :)",
"Thanks for using the site",
"Follow us on Tiktok (@useinterstellar)",
"Subscribe to us on YouTube (@unblocking)",
"Subscribe to my Youtube (@xbubbo)",
"Check out the settings page",
"Check out our Patreon (https://www.patreon.com/gointerstellar)",
];
let SplashI = Math.floor(Math.random() * SplashT.length);
const SplashE = document.getElementById("splash");
function US() {
SplashI = (SplashI + 1) % SplashT.length;
SplashE.innerText = SplashT[SplashI];
}
SplashE.innerText = SplashT[SplashI];
SplashE.addEventListener("click", US);
// Random URL
function getRandomUrl() {
const randomUrls = [
"https://kahoot.it",
"https://classroom.google.com",
"https://drive.google.com",
"https://google.com",
"https://docs.google.com",
"https://slides.google.com",
"https://www.nasa.gov",
"https://blooket.com",
"https://clever.com",
"https://edpuzzle.com",
"https://khanacademy.org",
"https://wikipedia.org",
"https://dictionary.com",
];
return randomUrls[randRange(0, randomUrls.length)];
}
function randRange(min, max) {
return Math.floor(Math.random() * (max - min) + min);
}
|