panic mode

This commit is contained in:
Sky 2023-07-26 16:48:23 -04:00
parent a9a28b48ac
commit df0a8efb53
10 changed files with 63 additions and 7 deletions

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<script src="/js/all.js"></script>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta

View File

@ -21,7 +21,7 @@
<div class="content">
<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="https://github.com/skysthelimitt/e-gamepass">Source Code</a></li><li><a href="./cloak.html">Tab Cloak</a></li></ul>
<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="https://github.com/skysthelimitt/e-gamepass">Source Code</a></li><li><a href="./settings.html">Settings</a></li><li><a id="panicmode">Panic Mode</a></li></ul>
<h2>Bookmarklets</h2>

View File

@ -21,10 +21,26 @@
<script src="./js/cookie.js"></script>
<script src="./js/games.js"></script>
<script src="./js/search.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
Toastify({
text: 'Type "safemode" while in any game to return to Google! Change the website in the settings.',
duration: 3000,
gravity: "top", // `top` or `bottom`
position: "left", // `left`, `center` or `right`
style: {
background: "linear-gradient(42deg, rgba(36, 69, 128, 1) 100%, rgb(24, 17, 87) 0%)",
width: "25%",
},
onClick: function(){} // Callback after click
}).showToast();
});
</script>
</head>
<body>
<div class="content">
<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="https://github.com/skysthelimitt/e-gamepass">Source Code</a></li><li><a href="./cloak.html">Tab Cloak</a></li></ul>
<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="https://github.com/skysthelimitt/e-gamepass">Source Code</a></li><li><a href="./settings.html">Settings</a></li><li><a id="panicmode">Panic Mode</a></li></ul>
<input class="hiddenUpload" type="file" accept=".save" hidden>
@ -35,7 +51,6 @@
<p id="gamecounter"></p>
<input type="text" id="gamesearch" placeholder="Type here to search.."> <br>
<br>
<div id="games"></div>
</div>

View File

@ -38,6 +38,25 @@ function getCookie(cname) {
return "";
}
function panicMode() {
if ($("#panicmode").length > 0) {
panicurl = getCookie("panicurl")
if (panicurl == "") {
panicurl = "https://google.com"
}
$("#panicmode").prop({href: panicurl})
}
const pressed = [];
const secretCode = 'safemode';
window.addEventListener('keyup', (e) => {
pressed.push(e.key);
pressed.splice(-secretCode.length - 1 , pressed.length - secretCode.length);
if (pressed.join('').includes(secretCode)) {
window.location.href = panicurl;
}
});
}
document.addEventListener("DOMContentLoaded", function() {
setCloak();
panicMode();
});

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="/js/all.js"></script>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>OvO</title>

View File

@ -19,24 +19,41 @@
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script src="/js/cloak.js"></script>
<script>
function setPanicMode() {
if(!$("#panic").val().startsWith("https")) {
document.cookie = "panicurl=https://" + $("#panic").val();return;
}
document.cookie = "panicurl=" + $("#panic").val();
}
</script>
</head>
<body>
<div class="content">
<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="https://github.com/skysthelimitt/e-gamepass">Source Code</a></li><li><a href="./cloak.html">Tab Cloak</a></li></ul>
<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="https://github.com/skysthelimitt/e-gamepass">Source Code</a></li><li><a href="./settings.html">Settings</a></li><li><a id="panicmode">Panic Mode</a></li></ul>
<input class="hiddenUpload" type="file" accept=".save" hidden>
<div class="title"><img src="./favicon.png" style="width:4%;"><h2 style="font-size:50px">e-gamepass</h2></div>
<br>
<form action="javascript:setPanicMode();">
<h3 for="panic">Website URL</h3><br>
<input type="text" id="panic" name="panic" placeholder="https://google.com"><br>
<input id="panic" class="submit" type="submit" value="Set Panic Mode">
</form>
<br>
<form action="javascript:setCloakCookie();">
<h3 for="webname">Website Name</h3><br>
<input type="text" id="webname" name="webname" placeholder="e-gamepass"><br>
<h3 for="webicon">Website Icon</h3><br>
<input type="text" id="webicon" name="webicon" placeholder="https://egamepass.pages.dev/"><br><br>
<input id="websubmit" type="submit" value="Set Tab Cloak">
<input id="websubmit" class="submit" type="submit" value="Set Tab Cloak">
</form>
<button onclick="javascript:clearCloak();">Clear your current tab cloak</button>
<br>

View File

@ -189,7 +189,7 @@ h3 {
color: #8daad8;
}
#websubmit {
.submit {
background-color: rgba(89, 110, 177, 0.5);
color: #8daad8;
border: 2px solid #527ac4bb ;
@ -204,7 +204,7 @@ h3 {
text-underline-position: under;
opacity: 70%;
}
#websubmit:hover {
.submit:hover {
cursor:pointer;
opacity: 90%;
}

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html manifest="offline.appcache">
<head>
<script src="/js/all.js"></script>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>ThereIsNoGame</title>

View File

@ -1,5 +1,6 @@
<html style="background-color: white;">
<head>
<script src="/js/all.js"></script>
<link rel="stylesheet" type="text/css" href="interface.css" />
</head>

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="/js/all.js"></script>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />