minor updates

This commit is contained in:
Sky 2023-09-05 17:54:35 -04:00
parent a66f1fbcfe
commit 45e9177085
10 changed files with 155 additions and 15 deletions

View File

@ -47,9 +47,12 @@
<div class="content">
<ul>
<li><a href="/index.html">Home</a></li>
<li><a href="/bookmarklets.html">Bookmawkwets</a></li>
<li><a href="/bookmarklets.html">Bookmarklets</a></li>
<li><a href="https://forms.gle/iBAbXvEDaYTLuEcdA">Suggestions</a></li>
<li><a href="https://forms.gle/j75WUn6UhdqsRZgf7">Weport a Bug</a></li>
<li><a href="/settings.html">Settings</a></li>
<li><a href="https://forms.gle/j75WUn6UhdqsRZgf7">Report a Bug</a></li>
<li><a href="https://discord.gg/7jyufnwJNf">Discord</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
</ul>
<div class="title">
@ -61,9 +64,9 @@
<a href="https://forms.gle/j75WUn6UhdqsRZgf7" style="font-size: 25px">awso wepowt a bug by cwicking hewe.. (*/ω\*) me wouwd appweciate it.. this isnt nyowmaw :゚(ノω\)゚・。</a>
<div id="footer">
<ul>
<li><a href="https://github.com/skysthelimitt/Selenite">Souwce Code</a></li>
<li><a href="https://github.com/skysthelimitt/Selenite">Source Code</a></li>
<li><a id="panicmode">Panic Mode</a></li>
<li><a href="/support.html">Suppowt Sewenite!</a></li>
<li><a href="/transfer.html">Transfer your data</a></li>
</ul>
</div>
</div>

View File

@ -51,6 +51,8 @@
<li><a href="https://forms.gle/iBAbXvEDaYTLuEcdA">Suggestions</a></li>
<li><a href="/settings.html">Settings</a></li>
<li><a href="https://forms.gle/j75WUn6UhdqsRZgf7">Report a Bug</a></li>
<li><a href="https://discord.gg/7jyufnwJNf">Discord</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
</ul>
<h2>Bookmarklets</h2>
@ -84,7 +86,7 @@
<ul>
<li><a href="https://github.com/skysthelimitt/Selenite">Source Code</a></li>
<li><a id="panicmode">Panic Mode</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
<li><a href="/transfer.html">Transfer your data</a></li>
</ul>
</div>
</div>

View File

@ -71,6 +71,8 @@
<li><a href="https://forms.gle/iBAbXvEDaYTLuEcdA">Suggestions</a></li>
<li><a href="/settings.html">Settings</a></li>
<li><a href="https://forms.gle/j75WUn6UhdqsRZgf7">Report a Bug</a></li>
<li><a href="https://discord.gg/7jyufnwJNf">Discord</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
</ul>
<input class="hiddenUpload" type="file" accept=".save" hidden />
@ -106,7 +108,7 @@
<ul>
<li><a href="https://github.com/skysthelimitt/Selenite">Source Code</a></li>
<li><a id="panicmode">Panic Mode</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
<li><a href="/transfer.html">Transfer your data</a></li>
</ul>
</div>
</div>

View File

@ -59,10 +59,14 @@ function downloadMainSave() {
}
// Function to get the main save data from an uploaded file
function getMainSaveFromUpload(data) {
// Decrypt the uploaded data using AES decryption with the key 'save'
data = CryptoJS.AES.decrypt(data, "egamepass").toString(CryptoJS.enc.Utf8);
function getMainSaveFromUpload(data, key) {
if(key) {
data = CryptoJS.AES.decrypt(data, key).toString(CryptoJS.enc.Utf8);
} else {
data = CryptoJS.AES.decrypt(data, "egamepass").toString(CryptoJS.enc.Utf8);
}
console.log(data);
// Parse the decrypted data as JSON
var mainSave = JSON.parse(atob(data));
var mainLocalStorageSave = JSON.parse(atob(mainSave.localStorage));
@ -78,7 +82,7 @@ function getMainSaveFromUpload(data) {
}
// Function to handle the file upload
function uploadMainSave() {
function uploadMainSave(key) {
var hiddenUpload = document.querySelector(".hiddenUpload");
hiddenUpload.click();
@ -94,7 +98,12 @@ function uploadMainSave() {
var reader = new FileReader();
reader.onload = function (e) {
getMainSaveFromUpload(e.target.result);
if(key) {
getMainSaveFromUpload(e.target.result, key);
} else {
getMainSaveFromUpload(e.target.result);
}
// Show a success message to the user
Toastify({

View File

@ -52,7 +52,7 @@ window.addEventListener(
function checkAlert() {
if(!Cookies.get("supportalert")) {
alert('Welcome to Selenite!\nI\'m a single developer that works on this website, so I would appreciate your support! You can pay on Patreon by clicking the "Support" button, which will have private links, or disable your adblock to help support me!\nI work on this website for free, so any support would be appreciated! Please share this website with anyone you know, so this website can expand even more!\nGo to bookmarklets and then add "Selenite Minified" to your bookmarks to have an unblocked version 24/7 :) \nI don\'t want to be annoying, so you won\'t see this message for another 30 days :)');
alert('Welcome to Selenite!\nTransferring from another website? Add "/transfer" to the end of the URL to see how to transfer your game data!\nI\'m a single developer that works on this website, so I would appreciate your support! You can pay on Patreon by clicking the "Support" button, which will have private links for all subscribers to use!\nPlease share this website with anyone you know, so this website can expand even more!\nGo to bookmarklets and then add "Selenite Minified" to your bookmarks :) \nJoin the Discord for the latest updates and newest links!\nI don\'t want to be annoying, so you won\'t see this message for another month (at least on this website) :)');
Cookies.set('supportalert', true, { expires: 31 });
}
}

41
js/savedownload.js Normal file
View File

@ -0,0 +1,41 @@
getMainSave()
function getMainSave() {
var mainSave = {};
// List of items in localStorage that should not be saved
// Convert localStorage to an array of key-value pairs and remove the items that should not be saved
localStorageSave = Object.entries(localStorage);
// Convert the localStorage array to a base64-encoded JSON string
localStorageSave = btoa(JSON.stringify(localStorageSave));
// Add the localStorage data to the mainSave object
mainSave.localStorage = localStorageSave;
// Get the cookies data and add it to the mainSave object
cookiesSave = document.cookie;
cookiesSave = btoa(cookiesSave);
mainSave.cookies = cookiesSave;
// Convert the mainSave object to a base64-encoded JSON string
mainSave = btoa(JSON.stringify(mainSave));
// Encrypt the mainSave data using AES encryption with the key 'save'
mainSave = CryptoJS.AES.encrypt(mainSave, "egamepass").toString();
// Return the encrypted mainSave data
return mainSave;
}
// Function to download the main save data as a file
function downloadMainSave() {
var data = new Blob([getMainSave()]);
var dataURL = URL.createObjectURL(data);
var fakeElement = document.createElement("a");
fakeElement.href = dataURL;
fakeElement.download = "your.selenite.save";
fakeElement.click();
URL.revokeObjectURL(dataURL);
}

View File

@ -3,6 +3,7 @@
<title>Sandtrix</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="crazygames-sdk-v2.js"></script>
<script src="/js/all.js"></script>
<script>
alert("so we have a big issue where it sometimes likes to load play_beep.wav a lot\nif ur game takes a while to load ur probably just sending thousands of requests to play_beep.wav\nidk how to fix :3")
window.mobileCheck = function() {

View File

@ -72,6 +72,8 @@
<li><a href="https://forms.gle/iBAbXvEDaYTLuEcdA">Suggestions</a></li>
<li><a href="/settings.html">Settings</a></li>
<li><a href="https://forms.gle/j75WUn6UhdqsRZgf7">Report a Bug</a></li>
<li><a href="https://discord.gg/7jyufnwJNf">Discord</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
</ul>
<input class="hiddenUpload" type="file" accept=".save" hidden />
@ -108,7 +110,7 @@
<ul>
<li><a href="https://github.com/skysthelimitt/Selenite">Source Code</a></li>
<li><a id="panicmode">Panic Mode</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
<li><a href="/transfer.html">Transfer your data</a></li>
</ul>
</div>
</div>

View File

@ -50,6 +50,8 @@
<li><a href="https://forms.gle/iBAbXvEDaYTLuEcdA">Suggestions</a></li>
<li><a href="/settings.html">Settings</a></li>
<li><a href="https://forms.gle/j75WUn6UhdqsRZgf7">Report a Bug</a></li>
<li><a href="https://discord.gg/7jyufnwJNf">Discord</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
</ul>
<br />
@ -60,7 +62,7 @@
<ul>
<li><a href="https://github.com/skysthelimitt/Selenite">Source Code</a></li>
<li><a id="panicmode">Panic Mode</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
<li><a href="/transfer.html">Transfer your data</a></li>
</ul>
</div>
</div>

78
transfer.html Normal file
View File

@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- initialize theme vars -->
<style>
:root {
--input-bg-color: #00000000;
--main-text-color: #00000000;
--p-text-color: #00000000;
--border-color: #00000000;
--star-color: #00000000;
--game-color: #00000000;
--bg-1: #00000000;
--bg-2: #00000000;
--invert-logo: 0;
}
</style>
<!-- initialize externals -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3415518411898563" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script src=" https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js "></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css"/>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
<style>@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");</style>
<!-- initialize my stuff -->
<script src="/js/themes.js"></script>
<script src="/js/all.js"></script>
<script src="/js/main.js"></script>
<script src="/js/cookie.js"></script>
<link rel="stylesheet" href="/style.css" />
<!-- seo + other things -->
<title>Selenite</title>
<link rel="icon" href="/favicon.ico" />
<meta name="keywords" content="front-end web developer, unblocked, games, google sites, unblocked games mom, ublocked, code, coding, programmer, development, javascript, jquery, bootstrap, sass, less, git, gaming, internet, website, best, site, cool, free games"/>
<meta property="og:title" content="Welcome to Selenite." />
<meta property="og:site_name" content="https://Selenite.pages.dev" />
<meta property="og:description" content="Welcome to the one and only option for unblocked games. Welcome to Selenite."/>
<meta name="description" content="Welcome to the one and only option for unblocked games. Welcome to Selenite."/>
<meta name="author" content="Website Creator" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
</head>
<body style="display: none">
<div class="content">
<input class="hiddenUpload" type="file" accept=".save" hidden />
<ul>
<li><a href="/index.html">Home</a></li>
<li><a href="/bookmarklets.html">Bookmarklets</a></li>
<li><a href="https://forms.gle/iBAbXvEDaYTLuEcdA">Suggestions</a></li>
<li><a href="/settings.html">Settings</a></li>
<li><a href="https://forms.gle/j75WUn6UhdqsRZgf7">Report a Bug</a></li>
<li><a href="https://discord.gg/7jyufnwJNf">Discord</a></li>
<li><a href="/support.html">Support Selenite!</a></li>
</ul>
<h2>Welcome!</h2>
<h3>Thank you for considering Selenite! Scroll down to view how to transfer game data from some of your favorite websites!</h3>
<br>
<h2>3kh0</h2>
<p>Use the "Download Save" tool available on 3kh0, and click on the button below to import your data.</p>
<button onclick="javascript:uploadMainSave('save');">Import Save</button>
<br>
<h2>Other Websites</h2>
<p>Use our <a href="javascript:var s = document.createElement('script');document.body.appendChild(s);s.src='https://cdn.jsdelivr.net/gh/skysthelimitt/selenite/js/savedownload.min.js';void(0);">Download Save Utility</a> to download your save from any website, as long as you can use bookmarklets!</p>
<div id="footer">
<ul>
<li><a href="https://github.com/skysthelimitt/Selenite">Source Code</a></li>
<li><a id="panicmode">Panic Mode</a></li>
<li><a href="/transfer.html">Transfer your data</a></li>
</ul>
</div>
</div>
</body>
</html>