Skip to content

Commit

Permalink
more cloaking stuff, bug fixes, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
silvereengames committed Aug 26, 2024
1 parent 154ef50 commit dfc440d
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
Binary file added public/assets/imgs/favicons/newtab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,19 @@ const bar = document.getElementById('announcement-bar')
}
});

fetch('/api/api/statusjson')
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.json();
})
.then(data => {
if (data.code == 0 || data.code == 1) {
showNotifi(3,3,'#ffaa00','Warning!','An outage has been reported on Silvereen Network\'s main servers. <br> This may effect some functionality.')
}
});

var asciiv5 = `
Moonlight 4.0
`;
Expand Down
21 changes: 21 additions & 0 deletions public/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@ <h2 class="center">Tab cloak</h2>
<p class="center"><input type="text" onchange="setTitle(this.value)" id="titlecloak" placeholder="Moonlight"></p>
<p class="center">Icon</p>
<p class="center"><input type="text" onchange="setIcon(this.value)" id="iconcloak" placeholder="icon.png"></p>
<p class="center">Presets</p>
<div style="display: block;">
<button onclick="setTitle('');setIcon('')">Default</button>
<button onclick="setTitle('Home');setIcon('/assets/imgs/favicons/google-classroom.ico')">Classroom</button>
<button onclick="setTitle('Google Docs');setIcon('/assets/imgs/favicons/google-docs.png')">Docs</button>
<details style="text-align: center;">
<summary>More</summary>
<button onclick="setTitle('Inbox (27)');setIcon('/assets/imgs/favicons/gmail.ico')">Gmail</button>
<button onclick="setTitle(`Calender ${month}/${day}/${year}`);setIcon('/assets/imgs/favicons/google-calender.ico')">Calender</button>
<button onclick="setTitle('Canvas');setIcon('/assets/imgs/favicons/canvas.ico')">Canvas</button>
<br>
<button onclick="setTitle('My Drive - Google Drive');setIcon('/assets/imgs/favicons/google-drive.ico')">Google Drive</button>
<button onclick="setTitle('Khan Academy');setIcon('/assets/imgs/favicons/khan-academy.ico')">Khan Academy</button>
<button onclick="setTitle('New Tab');setIcon('/assets/imgs/favicons/newtab.png')">New Tab</button>
</details>
</div>
</div>

<div class="settings-container">
Expand Down Expand Up @@ -370,6 +386,11 @@ <h3 class="sticky">Code Stuff</h3>
setProxyInfo(`https://docs.google.com/forms/d/e/1FAIpQLSficSd27EijVQtL_tDu02gZLBglNHUcIYHUPg9-doxzIE_T_Q/viewform`);
window.open('../iframe.html')
}

let obj = new Date();
let day = obj.getUTCDate();
let month = obj.getUTCMonth() + 1;
let year = obj.getUTCFullYear();
</script>
</body>

Expand Down
30 changes: 30 additions & 0 deletions public/uv/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,33 @@ form.addEventListener("submit", async (event) => {
location.href = "../load.html"
});

//const queryString = window.location.search;
//const urlParams = new URLSearchParams(queryString);
//const searchquery = urlParams.get('search')
//var searchqueryaddress = search(searchquery, `https://www.google.com/search?q=%s`)
if (searchqueryaddress !== null || searchqueryaddress !== '') {
if(localStorage.getItem("proxy-select") == null){
localStorage.setItem("proxy-select", "uv");
}
if(localStorage.getItem("adblock") == null){
localStorage.setItem("adblock", 1);
}
if(localStorage.getItem("adblock") == 0){
url = search(address.value, searchEngine.value) + "defrgthyju"
}
if(localStorage.getItem("adblock") == 1){
url = search(address.value, searchEngine.value) + "lokijuhygt"
}
if(localStorage.getItem("proxy-select") == "uv"){
localStorage.setItem("proxy-load", __uv$config.prefix + __uv$config.encodeUrl(searchqueryaddress));
}
else if(localStorage.getItem("proxy-select") == "dynamic"){
localStorage.setItem("proxy-load", __dynamic$config.prefix + __uv$config.encodeUrl(searchqueryaddress));
}
else{
console.log("error")
}

// console.log(__uv$config.prefix + __uv$config.encodeUrl(url))
location.href = "../load.html"
}

0 comments on commit dfc440d

Please sign in to comment.