quick fixes

This commit is contained in:
sky 2024-02-04 20:52:35 -05:00
parent 9c903cdf0c
commit ee61477ae8
3 changed files with 201 additions and 207 deletions

View File

@ -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')]='<h1>failed\x20to\x20load..\x20contact\x20owner\x20for\x20help</h1>');
// improve game loading
setCloak();
const gscript = document.createElement("script");
gscript.setAttribute("async", "");

View File

@ -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 = `
<style>*{margin:0;padding:0;border:none}body,iframe{height:100vh;width:100vw}iframe{height:96vh}header{display:flex;height:4vh;justify-content:center;}button{margin-right:100px;height:100%;aspect-ratio: 1 / 1}#reload{background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24'%3E%3Cpath d='M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z'/%3E%3C/svg%3E");background-size:cover;}#goBack{background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24'%3E%3Cpath d='M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z'/%3E%3C/svg%3E");background-size:cover;}</style><script>
</script><header><button id=goBack></button><button id=reload></button></header><iframe id=selenite></iframe>`;
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");
}
}

354
style.css
View File

@ -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 ;
}