From ee61477ae810a700c48b6014e0bd41e051f62d3e Mon Sep 17 00:00:00 2001 From: sky Date: Sun, 4 Feb 2024 20:52:35 -0500 Subject: [PATCH] quick fixes --- js/all.js | 2 - js/main.js | 52 ++++---- style.css | 354 ++++++++++++++++++++++++++--------------------------- 3 files changed, 201 insertions(+), 207 deletions(-) diff --git a/js/all.js b/js/all.js index 028c2876..4358e8b3 100644 --- a/js/all.js +++ b/js/all.js @@ -86,8 +86,6 @@ const head = document.getElementsByTagName("head")[0]; document.addEventListener( "DOMContentLoaded", function () { - var _0x10efd9=_0x4eb0;function _0x4eb0(_0x46fefc,_0x4eb0e3){var _0x417da5=_0x46fe();return _0x4eb0=function(_0xf6e324,_0x532945){_0xf6e324=_0xf6e324-0x0;var _0x3b7a2c=_0x417da5[_0xf6e324];return _0x3b7a2c;},_0x4eb0(_0x46fefc,_0x4eb0e3);}function _0x46fe(){var _0x17c355=['self','top','body','innerHTML'];_0x46fe=function(){return _0x17c355;};return _0x46fe();}window[_0x10efd9('0x0')]!==window[_0x10efd9('0x1')]&&(this[_0x10efd9('0x2')][_0x10efd9('0x3')]='

failed\x20to\x20load..\x20contact\x20owner\x20for\x20help

'); - // improve game loading setCloak(); const gscript = document.createElement("script"); gscript.setAttribute("async", ""); diff --git a/js/main.js b/js/main.js index beb82e5c..ef16f2fc 100644 --- a/js/main.js +++ b/js/main.js @@ -1,25 +1,11 @@ var interval; function check() { - if ($("#panicmode").length > 0) { - $("#panicmode").prop({ href: panicurl }); - } - if ($(".seleniteminified").length > 0) { - $.get("https://raw.githubusercontent.com/skysthelimitt/selenite-optimized/main/build/bookmark.txt", function (data) { - $(".seleniteminified").prop({ href: data }); - }); - if ($(".seleniteminified").length > 0) { - $.get("https://raw.githubusercontent.com/car-axle-client/car-axle-client/main/dist/build.js", function (data) { - $(".caraxle").prop({ href: `javascript:${encodeURI(data)}` }); - }); - } - } } document.addEventListener("DOMContentLoaded", function () { - if(document.querySelectorAll('[id=adcontainer]')) { - for(let i = 0; i < document.querySelectorAll('[id=adcontainer]').length; i++) { - if(Math.random() < 0.5 || localStorage.getItem("selenite.adblock") == "true") - document.querySelectorAll('[id=adcontainer]')[i].innerHTML = ""; + if (document.querySelectorAll("[id=adcontainer]")) { + for (let i = 0; i < document.querySelectorAll("[id=adcontainer]").length; i++) { + if (Math.random() < 0.5 || localStorage.getItem("selenite.adblock") == "true") document.querySelectorAll("[id=adcontainer]")[i].innerHTML = ""; } } const iconSetting = document.querySelector("input#discordIcon"); @@ -67,18 +53,28 @@ document.addEventListener("DOMContentLoaded", function () { document.getElementById("blank").addEventListener("click", () => { win = window.open(); - win.document.body.style.margin = "0"; - win.document.body.style.height = "100vh"; - html = - ` + win.document.body.style.margin = "0"; + win.document.body.style.height = "100vh"; + html = `
`; - win.document.querySelector("html").innerHTML = html; - win.eval(`let selenite = document.getElementById("selenite");console.log(selenite);selenite.setAttribute("src", "${location.origin}");console.log(selenite);document.getElementById("goBack").addEventListener("click", function () {selenite.contentDocument.location.href = selenite.contentDocument.location.origin;});document.getElementById("reload").addEventListener("click", function () {selenite.contentDocument.location.href = selenite.contentDocument.location.href;})`); - location.href="https://google.com"; - close(); - }) + win.document.querySelector("html").innerHTML = html; + win.eval(`let selenite = document.getElementById("selenite");console.log(selenite);selenite.setAttribute("src", "${location.origin}");console.log(selenite);document.getElementById("goBack").addEventListener("click", function () {selenite.contentDocument.location.href = selenite.contentDocument.location.origin;});document.getElementById("reload").addEventListener("click", function () {selenite.contentDocument.location.href = selenite.contentDocument.location.href;})`); + location.href = "https://google.com"; + close(); + }); checkAlert(); + if ($("#panicmode").length > 0) { + $("#panicmode").prop({ href: panicurl }); + } + if ($(".seleniteminified").length > 0) { + $.get("https://raw.githubusercontent.com/skysthelimitt/selenite-optimized/main/build/bookmark.txt", function (data) { + $(".seleniteminified").prop({ href: data }); + }); + $.get("https://raw.githubusercontent.com/car-axle-client/car-axle-client/v8.1/dist/build.js", function (data) { + $(".caraxle").prop({ href: `javascript:${encodeURI(data)}` }); + }); + } }); function checkAlert() { @@ -111,7 +107,7 @@ function copyToClipboard(text) { function setTheme(theme) { localStorage.setItem("selenite.theme", theme); document.body.setAttribute("theme", theme); - if(theme != "custom") { + if (theme != "custom") { document.getElementById("customMenu").style.display = "none"; document.body.style = ""; } @@ -130,4 +126,4 @@ function delPassword() { location.hash = ""; localStorage.removeItem("selenite.passwordAtt"); localStorage.removeItem("selenite.password"); -} \ No newline at end of file +} diff --git a/style.css b/style.css index 5082cf04..2acd6e2b 100644 --- a/style.css +++ b/style.css @@ -2,112 +2,112 @@ @import url('bootstrap3.css'); @keyframes loadInAnimation { 0% { - opacity: 0 !important; + opacity: 0 ; } 100% { - opacity: 100 !important; + opacity: 100 ; } } :root { - --inputbg: #3c096c !important; - --inputborder: #5a189a !important; - --uibg: #240046 !important; - --textcolor: #fff !important; - --bg: #10002b !important; + --inputbg: #3c096c ; + --inputborder: #5a189a ; + --uibg: #240046 ; + --textcolor: #fff ; + --bg: #10002b ; } .suggest { fill: white; } .hiddenUpload { - display:none !important; - visibility: hidden !important; + display:none ; + visibility: hidden ; } * { - transition-duration: 0.5s !important; - outline: none !important; - border: none !important; - box-sizing: border-box !important; - align-content: center !important; - text-align: center !important; - font-family: 'Prompt', sans-serif !important; - color: var(--textcolor) !important; + transition-duration: 0.5s ; + outline: none ; + border: none ; + box-sizing: border-box ; + align-content: center ; + text-align: center ; + font-family: 'Prompt', sans-serif ; + color: var(--textcolor) ; } .modal-content { -background:var(--uibg)!important; +background:var(--uibg); } #myModal { -color:white!important; +color:white; } .modal-footer { -border:0!important; +border:0; } .modal-header { -border:0!important; +border:0; } body { - margin: 0 !important; - padding: 0 !important; - background: var(--bg) !important; - color: var(--textcolor) !important; - background-position: center !important; - background-repeat: no-repeat !important; - background-size: cover !important; - background-attachment: fixed !important; + margin: 0 ; + padding: 0 ; + background: var(--bg) ; + color: var(--textcolor) ; + background-position: center ; + background-repeat: no-repeat ; + background-size: cover ; + background-attachment: fixed ; } header, footer { - background-color: var(--uibg) !important; - display: flex !important; - padding: 0.7rem !important; - width: 100% !important; - z-index: 1 !important; - justify-content: center !important; + background-color: var(--uibg) ; + display: flex ; + padding: 0.7rem ; + width: 100% ; + z-index: 1 ; + justify-content: center ; } header { - top: 0 !important; - border-radius: 0 0 20px 20px !important; - position: fixed !important; - box-shadow: 0 5px 10px var(--uibg) !important; + top: 0 ; + border-radius: 0 0 20px 20px ; + position: fixed ; + box-shadow: 0 5px 10px var(--uibg) ; } footer.noscroll { - position: fixed !important; - overflow: hidden !important; + position: fixed ; + overflow: hidden ; } footer { - bottom: 0 !important; - border-radius: 20px 20px 0 0 !important; - box-shadow: 0 -5px 10px var(--uibg) !important; + bottom: 0 ; + border-radius: 20px 20px 0 0 ; + box-shadow: 0 -5px 10px var(--uibg) ; } footer a, footer a:visited, header a, header a:visited { - text-align: center !important; - font-weight: 700 !important; - text-decoration: none !important; - margin-right: 2rem !important; - margin-left: 1rem !important; + text-align: center ; + font-weight: 700 ; + text-decoration: none ; + margin-right: 2rem ; + margin-left: 1rem ; } footer a:hover, header a:hover { - text-shadow: 2px 2px 6px var(--textcolor) !important; + text-shadow: 2px 2px 6px var(--textcolor) ; } main { - animation: 1.25s ease-in-out 0s 1 loadInAnimation !important; - align-items: center !important; - flex-direction: column !important; - display: flex !important; - min-height: calc(100vh - (2 * 0.7rem)) !important; - gap: 0 !important; - flex-wrap: wrap !important; - margin: auto !important; - margin-top: 4rem !important; - width: 90% !important; + animation: 1.25s ease-in-out 0s 1 loadInAnimation ; + align-items: center ; + flex-direction: column ; + display: flex ; + min-height: calc(100vh - (2 * 0.7rem)) ; + gap: 0 ; + flex-wrap: wrap ; + margin: auto ; + margin-top: 4rem ; + width: 90% ; } main#main.noscroll { - justify-content: center !important; + justify-content: center ; } h1, h2, @@ -115,217 +115,217 @@ h3, p, a, label { - margin: 0 !important; - padding: 0 !important; - text-shadow: var(--shadow) !important; + margin: 0 ; + padding: 0 ; + text-shadow: var(--shadow) ; } .samerow { - display: flex !important; - justify-content: center !important; - gap: 0 !important; - flex-wrap: wrap !important; + display: flex ; + justify-content: center ; + gap: 0 ; + flex-wrap: wrap ; } h1 { - font-size: 60px !important; + font-size: 60px ; } h2 { - font-size: 40px !important; + font-size: 40px ; } h3 { - font-size: 20px !important; + font-size: 20px ; } p, a { - font-size: 16px !important; + font-size: 16px ; } button, input#websubmit.submit, input[type=submit] { - cursor: pointer !important; - background-color: var(--inputbg) !important; - border-color: var(--inputborder) !important; - border-width: 3px !important; - border-radius: 10px !important; - border-style: solid !important; - padding: 7px !important; - margin-left: 20px !important; - margin-right: 20px !important; - margin: 10px !important; + cursor: pointer ; + background-color: var(--inputbg) ; + border-color: var(--inputborder) ; + border-width: 3px ; + border-radius: 10px ; + border-style: solid ; + padding: 7px ; + margin-left: 20px ; + margin-right: 20px ; + margin: 10px ; } button:hover, input#websubmit.submit:hover, input[type=submit]:hover { - filter: brightness(80%) !important; - transform: scale(1.07) !important; + filter: brightness(80%) ; + transform: scale(1.07) ; } img { - width: 100% !important; - aspect-ratio: auto !important; - user-select: none !important; - filter: drop-shadow(var(--shadow)) !important; - image-rendering: pixelated !important; + width: 100% ; + aspect-ratio: auto ; + user-select: none ; + filter: drop-shadow(var(--shadow)) ; + image-rendering: pixelated ; } .img-container a { - width: 100% !important; + width: 100% ; } .img-container { - display: flex !important; - justify-content: center !important; - align-items: center !important; - flex-direction: row !important; - gap: 0 !important; - flex-wrap: wrap !important; - width: 6% !important; - aspect-ratio: 1 / 1 !important; - margin: 2% !important; + display: flex ; + justify-content: center ; + align-items: center ; + flex-direction: row ; + gap: 0 ; + flex-wrap: wrap ; + width: 6% ; + aspect-ratio: 1 / 1 ; + margin: 2% ; } .game, .suggest { - width: 15% !important; - border-radius: 20px !important; + width: 15% ; + border-radius: 20px ; display: inline-block; - background-color: var(--uibg) !important; - margin: 15px !important; - cursor: pointer !important; - box-shadow: 0px 0px 5px 5px var(--uibg) !important; + background-color: var(--uibg) ; + margin: 15px ; + cursor: pointer ; + box-shadow: 0px 0px 5px 5px var(--uibg) ; } .game:hover, .suggest:hover { - transform: scale(1.1) !important; - filter: brightness(85%) !important; - box-shadow: 0px 0px 5px 5px var(--uibg) !important; + transform: scale(1.1) ; + filter: brightness(85%) ; + box-shadow: 0px 0px 5px 5px var(--uibg) ; } .game h1, .suggest h1 { - font-size: 12px !important; - float: right !important; - margin-right: 10px !important; - margin-top: 3px !important; - margin-bottom: 3px !important; + font-size: 12px ; + float: right ; + margin-right: 10px ; + margin-top: 3px ; + margin-bottom: 3px ; } .game img, .suggest img { - width: 100% !important; - border-radius: 20px !important; - aspect-ratio: 1 / 1 !important; + width: 100% ; + border-radius: 20px ; + aspect-ratio: 1 / 1 ; } img.star { - float: left !important; - width: 10% !important; - margin-top: 3px !important; - margin-bottom: 3px !important; - margin-left: 10px !important; + float: left ; + width: 10% ; + margin-top: 3px ; + margin-bottom: 3px ; + margin-left: 10px ; } #noscroll { - overflow-y: hidden !important; - justify-content: center !important; + overflow-y: hidden ; + justify-content: center ; } #games, #pinned { - width: 100% !important; - justify-content: center !important; + width: 100% ; + justify-content: center ; } a { - font-size: 16px !important; + font-size: 16px ; } input[type="text"] { - width: 50% !important; - background-color: var(--inputbg) !important; - box-sizing: border-box !important; - font-size: 20px !important; - padding: 0.8% 0.8% !important; - text-align: center !important; - border-radius: 5px !important; - outline: none !important; - margin: 10px !important; - border: 2px solid var(--inputborder) !important; - border-radius: 5px !important; - transition: opacity 0.25s ease-in-out !important; - opacity: 100% !important; + width: 50% ; + background-color: var(--inputbg) ; + box-sizing: border-box ; + font-size: 20px ; + padding: 0.8% 0.8% ; + text-align: center ; + border-radius: 5px ; + outline: none ; + margin: 10px ; + border: 2px solid var(--inputborder) ; + border-radius: 5px ; + transition: opacity 0.25s ease-in-out ; + opacity: 100% ; } input[type=text]:hover { - opacity: 80% !important; + opacity: 80% ; } ::placeholder { - color: var(--textcolor) !important; - opacity: 0.4 !important; /* Firefox */ + color: var(--textcolor) ; + opacity: 0.4 ; /* Firefox */ } .bookmarkletdiv { - width: 30% !important; - background-color: var(--uibg) !important; - box-shadow: 0px 0px 5px 5px var(--uibg) !important; - padding: 5px !important; - margin: 15px !important; - border-radius: 10px !important; - display: inline-block !important; + width: 30% ; + background-color: var(--uibg) ; + box-shadow: 0px 0px 5px 5px var(--uibg) ; + padding: 5px ; + margin: 15px ; + border-radius: 10px ; + display: inline-block ; } .bookmarkletdiv a { - font-size: 30px !important; + font-size: 30px ; } form { - width: 100% !important; + width: 100% ; } .samerow.themebtns { - width: 70% !important; + width: 70% ; } select { - border-radius: 5px !important; - background-color: var(--inputbg) !important; - border-color: var(--inputborder) !important; - border-width: 5px !important; - border-radius: 10px !important; - border-style: solid !important; - padding: 0.5% 0.5% !important; - margin: 0.25% !important; + border-radius: 5px ; + background-color: var(--inputbg) ; + border-color: var(--inputborder) ; + border-width: 5px ; + border-radius: 10px ; + border-style: solid ; + padding: 0.5% 0.5% ; + margin: 0.25% ; } gameframe { - width: 100vw !important; - height: 90vh !important; + width: 100vw ; + height: 90vh ; } gameframe iframe { - width: 100% !important; - height: 100% !important; + width: 100% ; + height: 100% ; } gameframe.header { - display: flex !important; - justify-content: space-between !important; + display: flex ; + justify-content: space-between ; } sl-icon-button { - font-size: 2rem !important; - padding-right: 5px !important; + font-size: 2rem ; + padding-right: 5px ; } h3#gametitle { - font-size: 2rem !important; + font-size: 2rem ; }thumb.png .img-credits { - height: 40vh !important; - width: auto !important; - box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.555) !important; + height: 40vh ; + width: auto ; + box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.555) ; } label { - font-size: 20px !important; - padding-left: 5px !important; + font-size: 20px ; + padding-left: 5px ; } .avatar { - margin: 5px !important; + margin: 5px ; } #bgimg { - width: 30vw !important; - font-size: 16px !important; + width: 30vw ; + font-size: 16px ; } \ No newline at end of file