Skip to content

Commit

Permalink
work?
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNotSus committed Mar 3, 2024
1 parent c5cbf7d commit 3d15ea3
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 20 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,20 @@

Welcome to 55GMS, a website for unblocked games, apps, and proxies. Our goal is to provide a safe and enjoyable experience for users who want to access blocked content.


[![Netlify Status](https://api.netlify.com/api/v1/badges/f7eb45c3-8ed9-495c-b3c1-509454478f89/deploy-status)](https://app.netlify.com/sites/superlative-liger-9df658/deploys)
![GitHub repo size](https://img.shields.io/github/repo-size/55gms/55gms)
![Commit](https://img.shields.io/github/commit-activity/w/55gms/55gms)
![Site](https://img.shields.io/website?url=https%3A%2F%2F55gms.com)
![Uptime](https://img.shields.io/uptimerobot/ratio/7/m793507060-97e6bef63b62591b668ced4f)


## Stats

![Alt](https://repobeats.axiom.co/api/embed/aa0d492e7df85dd81f1e15509991745130be77cd.svg "Repobeats analytics image")

## Credits

### Devs

<a href="https://github.com/RedNotSus/">RedNotSus</a>
<a href="https://github.com/22yeets22/">Little Panda (22yeets22)</a>
<a href="https://github.com/kandurz/">Kandurz</a>

### Others
<a href="https://github.com/3kh0/3kh0.github.io">3kh0</a>
<a href="https://github.com/interstellarnetwork/interstellar-v3">Interstellar</a>
1 change: 0 additions & 1 deletion static/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion static/assets/js/motd.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ window.addEventListener("load", (event) => {
Swal.fire({icon: 'error', title: 'Error', html: 'Well oh no', footer: `<i style='font-size: 11px;'>${error}</i>`});
}
});
});
});
2 changes: 1 addition & 1 deletion static/assets/js/randomSentence.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ window.addEventListener("load", (event) => {
.catch((error) => {
document.getElementById("sub").innerHTML = "idk what happened something broke";
});
});
});
1 change: 0 additions & 1 deletion static/assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ script("Injected script 2/3");
})({});
script("Injected script 3/3 (More Ad stuff)");

// Collect Tab Cloak data from local storage
var tab = localStorage.getItem("tab");
if (tab) {
try {
Expand Down
2 changes: 1 addition & 1 deletion static/assets/js/searchbar.v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ document.addEventListener("keydown", function (e) {

let searchbar = document.getElementById("searchbar");
searchbar.focus();
if (c.toLowerCase() != c.toUpperCase()) searchbar.value += e.key; // Is a letter
if (c.toLowerCase() != c.toUpperCase()) searchbar.value += e.key;
});
14 changes: 5 additions & 9 deletions static/assets/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ if (tab) {
}

// Set the title and icon fields to the values saved in tabData, if they exist
if (tabData.title)
document.getElementById("title").value = tabData.title;
if (tabData.icon)
document.getElementById("icon").value = tabData.icon;
if (tabData.title) document.getElementById("title").value = tabData.title;
if (tabData.icon) document.getElementById("icon").value = tabData.icon;

// Default tab settings
var settingsDefaultTab = {
Expand Down Expand Up @@ -86,20 +84,19 @@ function setFavicon(icon) {
// If there is no saved data, create an empty object
var tabData = {};
}

if (icon) {
// If there is a new icon, update tabData
tabData.icon = icon;
} else {
// If the icon is empty, delete the icon field from tabData
delete tabData.icon;
}

// Save the updated tab data to localStorage
localStorage.setItem("tab", JSON.stringify(tabData));
}


function setCloak() {
// applies only to premade cloaks
var cloak = cloakElement.value; // cloak seems kind of weird when you spell it out
Expand Down Expand Up @@ -151,12 +148,11 @@ function setCloak() {
}
}


// Function to reset the tab settings to default
function resetTab() {
document.title = "Dashboard";
document.querySelector("link[rel='icon']").href = "/img/canvas.ico";
document.getElementById("title").value = "";
document.getElementById("icon").value = "";
localStorage.setItem("tab", JSON.stringify({}));
}
}

0 comments on commit 3d15ea3

Please sign in to comment.