Skip to content

Commit

Permalink
alot of shit that took me awhile
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 6, 2024
1 parent 4e1b62e commit 8588a4c
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 23 deletions.
34 changes: 23 additions & 11 deletions public/games.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="assets/imgs/favicons/google-drive.ico">
<title>My Drive - Google Drive</title>
<title>Moonlight 4.0</title>
<link rel="icon" id="icon" href="">
<script src="assets/js/themes.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
Expand Down Expand Up @@ -58,15 +58,7 @@
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/eruda/3.0.1/eruda.min.js"></script>
<script>eruda.init();</script>
<script>
document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.shiftKey && event.code === 'KeyI') {
event.preventDefault(); // Prevent the default action (opening dev tools)
eruda.init();
eruda.show(); // Call your custom function
}
});

function searchGames() {
let input = document.getElementById('searchbar').value
Expand All @@ -83,6 +75,26 @@
}
document.document.getElementsByClassName('card').style.display = "block";
}
</script>
</script>
<script>
if (document.getElementById('titlecloak').value) {
document.getElementById('titlecloak').value = localStorage.getItem('title');
}
if (document.getElementById('iconcloak').value) {
document.getElementById('iconcloak').value = localStorage.getItem('icon');
}
</script>
<script>
document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.shiftKey && event.code === 'KeyI' && localStorage.getItem('moonlight.eruda')==1) {
event.preventDefault(); // Prevent the default action (opening dev tools)
eruda.show(); // Call your custom function
}
});

if (localStorage.getItem('moonlight.eruda')==1) {
eruda.init();
}
</script>
</body>
</html>
12 changes: 12 additions & 0 deletions public/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@
<script src="https://unpkg.com/@dotlottie/player-component@latest/dist/dotlottie-player.mjs" type="module"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<div class="iframe-container">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7001820938357122"
crossorigin="anonymous"></script>
<!-- ML In Game -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7001820938357122"
data-ad-slot="5614576764"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<iframe id="iframe" src="" frameborder="0" allowfullscreen></iframe>
<div class="buttons-bar">
<div class="buttons-container">
Expand Down
2 changes: 2 additions & 0 deletions public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ body {
padding: 0;
font-family: "Poppins", sans-serif;
background: var(--background);
background-repeat: no-repeat;
background-size: cover;
}

body::after {
Expand Down
19 changes: 16 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Moonlight 4.0</title>
<link rel="icon" id="icon" href="">
<script src="assets/js/themes.js"></script>
<link rel="stylesheet" href="index.css" />
<link rel="icon" id="icon" href="">
Expand All @@ -23,14 +24,15 @@
<li><a href="/games.html">Games</a></li>
<li><a href="./search">Search</a></li>
<li><a href="./settings">Settings</a></li>
<li><a href="javascript: window.open('forum'+window.location.hostname')">Forum</a></li>
</div>
</div>
<div class="container">
<h1>Moonlight 4.0</h1>
<div class="btns">
<a href="games.html">Games</a>
<a href="./search">Search</a>
<a href="./settings/">Settings</a>
<a href="javascript: window.open('https://forum.'+window.location.hostname)">Forum</a>
</div>
<div class="time" id="time-clock">Time</div>
</div>
Expand All @@ -43,14 +45,25 @@ <h1>Moonlight 4.0</h1>
<script src="/assets/js/cloak.js"></script>
<!-- serviceworker js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/eruda/3.0.1/eruda.min.js"></script>
<script>eruda.init();</script>
<script>
document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.shiftKey && event.code === 'KeyI') {
if (event.ctrlKey && event.shiftKey && event.code === 'KeyI' && localStorage.getItem('moonlight.eruda')==1) {
event.preventDefault(); // Prevent the default action (opening dev tools)
eruda.show(); // Call your custom function
}
});

if (localStorage.getItem('moonlight.eruda')==1) {
eruda.init();
}
</script>
<script>
if (document.getElementById('titlecloak').value) {
document.getElementById('titlecloak').value = localStorage.getItem('title');
}
if (document.getElementById('iconcloak').value) {
document.getElementById('iconcloak').value = localStorage.getItem('icon');
}
</script>
<script async src="https://chat.silvereen.store/tracker.js" data-ackee-server="https://chat.silvereen.store" data-ackee-domain-id="c25bf1d7-95f4-4d11-9459-054ad0582029"></script>
</body>
Expand Down
12 changes: 12 additions & 0 deletions public/os/puter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@
gui()
});
</script>
<script>
document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.shiftKey && event.code === 'KeyI' && localStorage.getItem('moonlight.eruda')==1) {
event.preventDefault(); // Prevent the default action (opening dev tools)
eruda.show(); // Call your custom function
}
});

if (localStorage.getItem('moonlight.eruda')==1) {
eruda.init();
}
</script>
</body>

</html>
13 changes: 12 additions & 1 deletion public/os/win11/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@

<script src="./react-pwa.js"></script>


<script>
document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.shiftKey && event.code === 'KeyI' && localStorage.getItem('moonlight.eruda')==1) {
event.preventDefault(); // Prevent the default action (opening dev tools)
eruda.show(); // Call your custom function
}
});

if (localStorage.getItem('moonlight.eruda')==1) {
eruda.init();
}
</script>
</body>
</html>
25 changes: 22 additions & 3 deletions public/search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Moonlight V4</title>
<link rel="icon" id="icon" href="">
<title>Moonlight 4.0</title>
<link rel="icon" id="icon" href="">
<link rel="stylesheet" href="../assets/css/notification.css">
<link rel="stylesheet" href="index.css" />
<link rel="stylesheet" href="../index.css" />
Expand Down Expand Up @@ -49,13 +49,32 @@ <h1>ML Search</h1>
showNotifi(5, 5, '#d49400', 'Warning', 'As of now, their are no security restrictions in place. <br /> Please use the proxy responsibly', null, true)
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/eruda/3.0.1/eruda.min.js"></script>
<script>eruda.init();</script>
<script>
if (localStorage.getItem("proxy-select") == "uv") {
document.getElementById('proxy-address').placeholder = 'Search the web freely (Ultraviolet)';
} else if (localStorage.getItem("proxy-select") == "dynamic") {
document.getElementById('proxy-address').placeholder = 'Search the web freely (Dynamic)';
}
</script>
<script>
if (document.getElementById('titlecloak').value) {
document.getElementById('titlecloak').value = localStorage.getItem('title');
}
if (document.getElementById('iconcloak').value) {
document.getElementById('iconcloak').value = localStorage.getItem('icon');
}
</script>
<script>
if (localStorage.getItem('moonlight.eruda')==1) {
eruda.init();
}

document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.shiftKey && event.code === 'KeyI' && localStorage.getItem('moonlight.eruda')==1) {
event.preventDefault(); // Prevent the default action (opening dev tools)
eruda.show(); // Call your custom function
}
});
</script>
</body>
</html>
19 changes: 15 additions & 4 deletions public/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h2 class="center">About blank</h2>
<div class="settings-container">
<h2 class="center">Other info</h2>
<p class="center">Version <b>0.4</b></p>
<p class="center">Servers: <strong><span id="status" style="font-weight: bold; color: lime;">Online</span></p>
<p class="center">Servers: <span id="site-status"></span></p>
<p class="center">Silvereen Games LLC</p>
<p class="center">
<a href="https://github.com/silvereennetwork/Moonlight4.0" class="link">Github</a>
Expand Down Expand Up @@ -234,16 +234,27 @@ <h3 class="sticky">Code Stuff</h3>
function customTheme(code) {
customThemeJSON(code);
}

async function getStatus() {
try {
const response = await fetch("https://chat.corruptedgaming.online/api/status");
if (!response.ok) { // Check if response is ok (i.e., 200 OK)
throw new Error(`HTTP error! status: ${response.status}`);
}
document.getElementById("site-status").innerHTML = await response.text(); // Assuming the server responds with JSON
} catch (error) {
console.error('Failed to fetch: ' + error.message);
}
}
getStatus();

</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/eruda/3.0.1/eruda.min.js"></script>
<script>
document.getElementById('titlecloak').value = localStorage.getItem('moonlight.title');
document.getElementById('iconcloak').value = localStorage.getItem('moonlight.icon');
</script>
<script>
if (localStorage.getItem('moonlight.eruda') == null) {
localStorage.setItem("moonlight.eruda", "0");
}
if (localStorage.getItem('moonlight.eruda') == 1) {
eruda.init();
}
Expand Down
6 changes: 5 additions & 1 deletion public/uv/uv.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,11 @@ self.__uv$config = {
if(url.href.includes("?wfryhktgb") == true){
host = self.location.origin;
}
if (blockedsites.includes(url.host) || url.href.toLocaleLowerCase().includes("porn")) {
if (blockedsites.includes(url.host)
|| url.href.toLocaleLowerCase().includes("porn")
|| url.href.toLocaleLowerCase().includes("18+")
|| url.href.toLocaleLowerCase().includes("xvideos")
|| url.href.toLocaleLowerCase().includes("xxx")) {
if(url.href.includes("?wfryhktgb") == false){
return new Request(self.location.origin + "/blocked.html", request)
}
Expand Down

0 comments on commit 8588a4c

Please sign in to comment.