// ==UserScript==
// @name Soft-Locker by 5710
// @namespace http://tampermonkey.net/
// @version 5.5
// @description Password lock with immediate outro
// @match *://*/*
// @grant none
// ==/UserScript==
(function () {
const PASSWORD = "6024241";
const MEDIA_URL = "https://c.tenor.com/Wet8JUPkVB4AAAAC/tenor.gif";
if (sessionStorage.getItem("site_unlocked") === "true") return;
document.documentElement.style.overflow = "hidden";
document.body.style.overflow = "hidden";
const overlay = document.createElement("div");
overlay.style.position = "fixed";
overlay.style.top = 0;
overlay.style.left = 0;
overlay.style.width = "100vw";
overlay.style.height = "100vh";
overlay.style.background = "black";
overlay.style.zIndex = "2147483647";
overlay.style.display = "flex";
overlay.style.flexDirection = "column";
overlay.style.justifyContent = "center";
overlay.style.alignItems = "center";
overlay.style.fontFamily = "Arial, sans-serif";
overlay.style.opacity = "1";
overlay.style.transition = "opacity .25s ease";
overlay.style.pointerEvents = "auto";
const frame = document.createElement("div");
frame.style.background = "rgba(0,0,0,0.6)";
frame.style.padding = "30px 40px";
frame.style.borderRadius = "12px";
frame.style.display = "flex";
frame.style.flexDirection = "column";
frame.style.alignItems = "center";
frame.style.pointerEvents = "auto";
const title = document.createElement("div");
title.innerText = "🔒 This site is locked";
title.style.color = "white";
title.style.fontSize = "28px";
title.style.marginBottom = "20px";
const input = document.createElement("input");
input.type = "password";
input.placeholder = "Enter password...";
input.style.padding = "12px 14px";
input.style.fontSize = "18px";
input.style.borderRadius = "6px";
input.style.border = "2px solid #aaa";
input.style.marginBottom = "15px";
input.style.width = "260px";
input.style.textAlign = "center";
input.style.background = "white";
input.style.color = "black";
input.style.pointerEvents = "auto";
const button = document.createElement("button");
button.innerText = "Unlock";
button.style.padding = "10px 20px";
button.style.fontSize = "18px";
button.style.borderRadius = "6px";
button.style.border = "none";
button.style.cursor = "pointer";
button.style.background = "#4CAF50";
button.style.color = "white";
button.style.pointerEvents = "auto";
const credit = document.createElement("div");
credit.innerText = "Powered by 5710load";
credit.style.color = "white";
credit.style.opacity = "0.7";
credit.style.marginTop = "20px";
credit.style.fontSize = "14px";
function unlock() {
if (input.value !== PASSWORD) {
alert("Incorrect password");
return;
}
sessionStorage.setItem("site_unlocked", "true");
overlay.style.opacity = "0";
setTimeout(() => {
overlay.remove();
playOutro();
}, 250);
}
button.onclick = unlock;
input.onkeydown = (e) => { if (e.key === "Enter") unlock(); };
frame.appendChild(title);
frame.appendChild(input);
frame.appendChild(button);
overlay.appendChild(frame);
overlay.appendChild(credit);
document.body.appendChild(overlay);
function playOutro() {
const outro = document.createElement("div");
outro.style.position = "fixed";
outro.style.top = 0;
outro.style.left = 0;
outro.style.width = "100vw";
outro.style.height = "100vh";
outro.style.background = "black";
outro.style.zIndex = "2147483647";
outro.style.display = "flex";
outro.style.flexDirection = "column";
outro.style.justifyContent = "center";
outro.style.alignItems = "center";
outro.style.transition = "all .9s ease";
let media;
if (MEDIA_URL.endsWith(".mp4") || MEDIA_URL.endsWith(".webm")) {
media = document.createElement("video");
media.src = MEDIA_URL;
media.autoplay = true;
media.muted = true;
media.loop = false;
} else {
media = document.createElement("img");
media.src = MEDIA_URL;
}
media.style.position = "absolute";
media.style.top = 0;
media.style.left = 0;
media.style.width = "100%";
media.style.height = "100%";
media.style.objectFit = "cover";
const msg = document.createElement("div");
msg.innerText = "Welcome back!";
msg.style.color = "white";
msg.style.fontSize = "40px";
msg.style.zIndex = "2147483648";
msg.style.textShadow = "0 0 10px black";
outro.appendChild(media);
outro.appendChild(msg);
document.body.appendChild(outro);
const finish = () => {
outro.style.transform = "scale(0.05) translate(-850%, -850%)";
outro.style.opacity = "0";
setTimeout(() => {
outro.remove();
document.documentElement.style.overflow = "";
document.body.style.overflow = "";
}, 900);
};
if (media.tagName === "VIDEO") {
media.onended = finish;
} else {
setTimeout(finish, 2500);
}
}
})();