add /js/all.js to some games and overall basic housekeeping + maybe debug script?
Before Width: | Height: | Size: 218 KiB After Width: | Height: | Size: 27 KiB |
@ -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>
|
||||
|
@ -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">
|
||||
|
Before Width: | Height: | Size: 430 KiB After Width: | Height: | Size: 33 KiB |
BIN
fnaf/splash.jpeg
Before Width: | Height: | Size: 278 KiB After Width: | Height: | Size: 9.1 KiB |
@ -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"
|
||||
},
|
||||
|
@ -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">
|
||||
|
28
js/all.js
@ -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
@ -0,0 +1,4 @@
|
||||
window.onerror = function(msg, url, linenumber) {
|
||||
alert('Error message: '+msg+'\nURL: '+url+'\nLine Number: '+linenumber);
|
||||
return true;
|
||||
}
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
@ -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!"
|
||||
|
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 15 KiB |
@ -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>
|
||||
|
Before Width: | Height: | Size: 521 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 335 KiB After Width: | Height: | Size: 30 KiB |
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="/js/all.js"></script>
|
||||
<meta charset="utf-8" />
|
||||
<title>Stickman Hook</title>
|
||||
<meta
|
||||
|
@ -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>
|
||||
|