function addDefaultToIframes() { try { globalStyle = document.createElement("style") globalStyle.innerText = "* {cursor: url(https://gild.rixthetyrunt.repl.co/cursor.png), url(https://gild.rixthetyrunt.repl.co/cursor.cur), default !important;} *:not(input, *[contenteditable='true']) {user-select: none;}" document.getElementById("appFrame").contentWindow.document.onload = function() { document.getElementById("appFrame").contentWindow.document.head.appendChild(globalStyle) document.getElementById("appFrame").contentWindow.document.querySelector("*").style.cursor = "url(https://gild.rixthetyrunt.repl.co/cursor.png), url(https://gild.rixthetyrunt.repl.co/cursor.cur), default !important;" document.getElementById("appFrame").contentWindow.document.querySelector("*:not(input, *[contenteditable='true'])").style.userSelect = "none" } setTimeout(function() {addDefaultToIframes()}, 1) } catch (err) { console.log("Captured error: " + err.toString()) } }
Tyrunt.new("Rix")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)