User:Ghost7706: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit Visual edit |
No edit summary Tags: Mobile edit Mobile web edit Visual edit |
||
| Line 1: | Line 1: | ||
(() | <code>(function () {</code> | ||
const videoID = "dtp8ggCXvgw"; | <code> const videoID = "dtp8ggCXvgw";</code> | ||
const | <code> const warning = document.createElement("div");</code> | ||
<code> warning.id = "mj-phobia-warning";</code> | |||
<code> warning.innerHTML = `</code> | |||
<code> <nowiki><div style="text-align:center"></nowiki></code> | |||
<code> <nowiki><h1>⚠️ PHOBIA WARNING</h1></nowiki></code> | |||
<code> <nowiki><h2>Michael Jackson Screamer</h2></nowiki></code> | |||
<code> <nowiki><p>This page contains sudden imagery of Michael Jackson.</p></nowiki></code> | |||
<code> <nowiki><p>Viewer discretion is advised.</p></nowiki></code> | |||
<code> <button id="mj-start">CONTINUE</button></code> | |||
<code> <nowiki></div></nowiki></code> | |||
<code> `;</code> | |||
<code> Object.assign(warning.style, {</code> | |||
<code> position: "fixed",</code> | |||
<code> inset: "0",</code> | |||
<code> background: "#080808",</code> | |||
<code> color: "white",</code> | |||
<code> zIndex: "999999",</code> | |||
<code> display: "flex",</code> | |||
<code> justifyContent: "center",</code> | |||
<code> alignItems: "center",</code> | |||
<code> fontFamily: "Arial",</code> | |||
<code> padding: "20px"</code> | |||
<code> });</code> | |||
<code> document.body.appendChild(warning);</code> | |||
<code> const button = document.getElementById("mj-start");</code> | |||
<code> Object.assign(button.style, {</code> | |||
<code> background: "red",</code> | |||
<code> color: "white",</code> | |||
<code> padding: "15px 30px",</code> | |||
<code> border: "none",</code> | |||
" | <code> cursor: "pointer",</code> | ||
<code> fontSize: "18px"</code> | |||
<code> });</code> | |||
<code> button.onclick = function () {</code> | |||
<code> warning.remove();</code> | |||
const | <code> const iframe = document.createElement("iframe");</code> | ||
<code> iframe.src = `<nowiki>https://www.youtube.com/embed/${videoID}?autoplay=1`</nowiki>;</code> | |||
<code> iframe.allow = "autoplay; encrypted-media";</code> | |||
<code> iframe.allowFullscreen = true;</code> | |||
<code> Object.assign(iframe.style, {</code> | |||
" | <code> position: "fixed",</code> | ||
<code> inset: "0",</code> | |||
<code> width: "100%",</code> | |||
<code> height: "100%",</code> | |||
<code> border: "none",</code> | |||
<code> zIndex: "999998"</code> | |||
<code> });</code> | |||
<code> document.body.appendChild(iframe);</code> | |||
<code> };</code> | |||
<code>})();</code> | |||
})(); | |||
Revision as of 12:37, 23 November 2026
(function () {
const videoID = "dtp8ggCXvgw";
const warning = document.createElement("div");
warning.id = "mj-phobia-warning";
warning.innerHTML = `
<div style="text-align:center">
<h1>⚠️ PHOBIA WARNING</h1>
<h2>Michael Jackson Screamer</h2>
<p>This page contains sudden imagery of Michael Jackson.</p>
<p>Viewer discretion is advised.</p>
<button id="mj-start">CONTINUE</button>
</div>
`;
Object.assign(warning.style, {
position: "fixed",
inset: "0",
background: "#080808",
color: "white",
zIndex: "999999",
display: "flex",
justifyContent: "center",
alignItems: "center",
fontFamily: "Arial",
padding: "20px"
});
document.body.appendChild(warning);
const button = document.getElementById("mj-start");
Object.assign(button.style, {
background: "red",
color: "white",
padding: "15px 30px",
border: "none",
cursor: "pointer",
fontSize: "18px"
});
button.onclick = function () {
warning.remove();
const iframe = document.createElement("iframe");
iframe.src = `https://www.youtube.com/embed/${videoID}?autoplay=1`;
iframe.allow = "autoplay; encrypted-media";
iframe.allowFullscreen = true;
Object.assign(iframe.style, {
position: "fixed",
inset: "0",
width: "100%",
height: "100%",
border: "none",
zIndex: "999998"
});
document.body.appendChild(iframe);
};
})();