mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
Fixed some errors
This commit is contained in:
parent
17d4b36639
commit
9aa7f459e2
3 changed files with 24 additions and 11 deletions
21
app.js
21
app.js
|
@ -391,11 +391,20 @@ app.use(config.prefix, async (req, res, next) => {
|
||||||
res.send(proxy.sendResponse);
|
res.send(proxy.sendResponse);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.post('/', async (req, res) => {
|
||||||
|
switch (req.url) {
|
||||||
|
case '/':
|
||||||
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'index.html'), 'utf8'));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
//Querystrings
|
//Querystrings
|
||||||
app.get('/', async (req, res) => {
|
app.get('/', async (req, res, t) => res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages,index.html,info.html,archive,archive,hidden.html'.split(',')['/,/?in,/?fg,/?rr,/?j'.split(',').indexOf(req.url) + 1], ',surf.html,f.html,run.html,frames,redirects3,proxnav5,nav7'.replace(/,[^,]+/g, e => ([] + e.match(/\D+/)).repeat(+e.match(/\d+/) + 1)).split(',')[t = 'z,fg,rr,k,dd,n,yh,ym,a,b,y,e,d,p,c,f,g,h,i,m,t,x'.split(',').indexOf(req.url.slice(2)) + 1], (t = ',,,,krunker,discordprox,chatbox,ythub,ytmobile,alloy,node,youtube,pydodge,discordhub,pmprox,credits,flash,gtools,games5,icons,gba,terms,bookmarklets'.split(',')[t]) && t + '.html'), 'utf8')));
|
||||||
|
//Querystrings Old
|
||||||
|
/* app.get('/', async (req, res) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
const path = require("path"); //Use this for path.
|
const path = require("path"); //Use this for path.
|
||||||
|
|
||||||
fs.readFileSync( path, options );
|
fs.readFileSync( path, options );
|
||||||
|
@ -407,11 +416,9 @@ app.get('/', async (req, res) => {
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
*/
|
var hbsites = {};
|
||||||
|
|
||||||
/* var hbsites = {};
|
|
||||||
&& hostname == hbsites
|
&& hostname == hbsites
|
||||||
*/
|
|
||||||
|
|
||||||
switch (req.url) {
|
switch (req.url) {
|
||||||
case '/':
|
case '/':
|
||||||
|
@ -540,7 +547,7 @@ app.get('/', async (req, res) => {
|
||||||
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'hidden.html'), 'utf8'))
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'hidden.html'), 'utf8'))
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
}); */
|
||||||
|
|
||||||
app.use('/', express.static('public'));
|
app.use('/', express.static('public'));
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Flash Games</title>
|
<title>Flash Games</title>
|
||||||
<link rel="stylesheet" href="/assets/css/gembed.css">
|
|
||||||
<script>
|
<script>
|
||||||
function loadswf() {
|
function loadswf() {
|
||||||
var a, b, c;
|
var a, b, c;
|
||||||
|
@ -14,7 +13,7 @@
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
body {
|
.gembed {
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -22,6 +21,13 @@
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fbody {
|
||||||
|
background-color: black;
|
||||||
|
color: white;
|
||||||
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -195,7 +195,7 @@
|
||||||
<a class="glink" href="?fg#redshift">Red<wbr>shift</a>
|
<a class="glink" href="?fg#redshift">Red<wbr>shift</a>
|
||||||
<a class="glink" href="?fg#revenant2">Rev<wbr>enant2</a>
|
<a class="glink" href="?fg#revenant2">Rev<wbr>enant2</a>
|
||||||
<a class="glink" href="?fg#run2">R<wbr>un2</a>
|
<a class="glink" href="?fg#run2">R<wbr>un2</a>
|
||||||
<a class="glink" href="?rr">Ru<wbr>n3</a>
|
<a class="glink" href="?fg#run3">Ru<wbr>n3</a>
|
||||||
<a class="glink" href="?fg#saszombieassault3">Saszombie<wbr>assault3</a>
|
<a class="glink" href="?fg#saszombieassault3">Saszombie<wbr>assault3</a>
|
||||||
<a class="glink" href="?fg#shoppingcarthero3">Sh<wbr>oppingcarthero3</a>
|
<a class="glink" href="?fg#shoppingcarthero3">Sh<wbr>oppingcarthero3</a>
|
||||||
<a class="glink" href="?fg#siftheads">Sifthe<wbr>ads</a>
|
<a class="glink" href="?fg#siftheads">Sifthe<wbr>ads</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue