anti skid :3
This commit is contained in:
19
js/all.min.js
vendored
19
js/all.min.js
vendored
@ -18,8 +18,27 @@ loadAnalytics.cloudflare = function() {
|
||||
document.head.appendChild(script);
|
||||
};
|
||||
|
||||
function antiSkid() {
|
||||
if(window != window.parent && location.hostname != new URL(document.referrer).hostname) {
|
||||
let warning = document.createElement("warning");
|
||||
warning.innerText = "Check out more games at selenite.cc!";
|
||||
warning.style.position = "absolute";
|
||||
warning.style.width = "200px";
|
||||
warning.style.textAlign = "center";
|
||||
warning.style.bottom = "20px";
|
||||
warning.style.right = "20px";
|
||||
warning.style.backgroundColor = "#00000077";
|
||||
warning.style.padding = "8px";
|
||||
warning.style.cursor = "pointer";
|
||||
warning.style.borderRadius = "6px";
|
||||
warning.addEventListener("click", () => {window.open(location.origin)});
|
||||
document.body.appendChild(warning);
|
||||
}
|
||||
};
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
// yo why are all analytic providers mid
|
||||
// loadAnalytics.unami();
|
||||
// loadAnalytics.cloudflare();
|
||||
antiSkid();
|
||||
})
|
||||
Reference in New Issue
Block a user