add /js/all.js to some games and overall basic housekeeping + maybe debug script?

This commit is contained in:
Sky 2023-09-03 20:54:00 -04:00
parent f76bf00b07
commit 2c02573538
19 changed files with 35 additions and 16 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -2,6 +2,7 @@
<html lang="en-us">
<head>
<script src="/js/all.js"></script>
<meta charset="utf-8">
<title>Burrito Bison Launcha Libre Unblocked</title>
<style>

View File

@ -2,7 +2,8 @@
<html>
<head>
<meta charset="UTF-8">
<title>Clicker Heroes Unblocked</title>
<title>Clicker Heroes</title>
<script src="/js/all.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="generator" content="Construct 3">
<meta name="author" content="frank">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -1,6 +1,6 @@
[
{
"name": "ADOFAI",
"name": "A Dance of Fire and Ice",
"directory": "adofai",
"image": "icon.png",
"recommended": "1"
@ -529,7 +529,7 @@
"image": "splash.jpg"
},
{
"name": "FNAF",
"name": "Five Nights at Freddy's",
"directory": "fnaf",
"image": "splash.jpeg"
},

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>I Wanna Be Thy Copy TAS Tool</title>
<script src="/js/all.js"></script>
<script src="iwbtc-all.js"></script>
<link rel="stylesheet" href="style.css">

View File

@ -22,6 +22,11 @@ function setCloak() {
}
panicMode();
}
if (getCookie("debugging") == 1) {
const debugscript = document.createElement("script");
debugscript.setAttribute("src", "/js/debug.js");
document.head.append(debugscript);
}
function getCookie(cname) {
let name = cname + "=";
let decodedCookie = decodeURIComponent(document.cookie);
@ -45,24 +50,29 @@ function panicMode() {
}
const pressed = [];
const secretCode = "safemode";
const debugCode = "debugplz"
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;
} else if (pressed.join("").includes(debugCode)) {
if (getCookie("debugging") == 1) {
document.cookie = "debugging=0;";
alert("debugging off!")
} else {
document.cookie = "debugging=1";
alert("debugging on!")
}
}
});
}
const head = document.getElementsByTagName('head')[0];
window.onload = function() {
setCloak();
if (!$) {
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js';
head.appendChild(script);
}
var jquery = document.createElement('script');
jquery.type = 'text/javascript';
jquery.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js';
const gscript = document.createElement("script");
gscript.setAttribute("async", "");
gscript.setAttribute("src", "https://www.googletagmanager.com/gtag/js?id=G-XVTVBR1D5V");
@ -71,7 +81,7 @@ window.onload = function() {
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-98DP5VKS42');`;
document.head.append(gscript, ingscript);
document.head.append(gscript, ingscript, jquery);
}
defer(function () {

4
js/debug.js Normal file
View File

@ -0,0 +1,4 @@
window.onerror = function(msg, url, linenumber) {
alert('Error message: '+msg+'\nURL: '+url+'\nLine Number: '+linenumber);
return true;
}

View File

@ -3,7 +3,7 @@ $(document).ready(function () {
$("#games .game").hide();
var txt = $("#gamesearch").val();
$("#games .game").each(function () {
if ($(this).text().toUpperCase().indexOf(txt.toUpperCase()) != -1) {
if (($(this).text().toUpperCase().indexOf(txt.toUpperCase()) != -1) || ($(this).attr("id").toUpperCase().indexOf(txt.toUpperCase()) != -1)) {
$(this).show();
}
});

View File

@ -5,7 +5,7 @@
[endif]--><head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Little Alchemy | lbannana</title>
<title>Little Alchemy</title>
<meta
name="description"
content="A simple but addictive game. Start with four basic items and use them to find dinosaurs, unicorns and spaceships!"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -11,6 +11,7 @@
<meta property="og:title" content="Resent 1.8" />
<meta property="og:description" content="Resent 1.8" />
<link type="image/png" rel="shortcut icon" href="favicon.png" id="favicon"/>
<script src="/js/all.js"></script>
<script type="text/javascript" src="classes.js"></script>
<script type="text/javascript" src="fix-webm-duration.js"></script>
<style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 521 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="/js/all.js"></script>
<meta charset="utf-8" />
<title>Stickman Hook</title>
<meta

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="/js/all.js"></script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Turbowarp Links</title>