mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
Added Status Page
This commit is contained in:
parent
260090bff1
commit
2474d048bb
4 changed files with 200 additions and 8 deletions
31
app.js
31
app.js
|
@ -23,8 +23,7 @@ app.post('/', async(req, res) => {
|
|||
|
||||
//Querystring Navigation
|
||||
|
||||
app.get('/', async(req, res, t) => res.send(fs.readFileSync(path.join(__dirname, 'views', 'pages,index.html,info.html,faq.html,archive,archive,hidden.html'.split(',')['/,/?in,/?faq,/?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')));
|
||||
app.get('/', async (req, res, t) => res.send(fs.readFileSync(path.join(__dirname, 'views', 'pages,index.html,info.html,faq.html,status.html,archive,archive,hidden.html'.split(',')['/,/?in,/?faq,/?status,/?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')));
|
||||
|
||||
app.use(char_insert.static(path.join(__dirname, 'views')));
|
||||
|
||||
|
@ -213,4 +212,30 @@ app.get('/', async (req, res) => {
|
|||
return res.send(fs.readFileSync(path.join(__dirname, 'views', 'hidden.html'), 'utf8'))
|
||||
}
|
||||
|
||||
}); */
|
||||
}); */
|
||||
|
||||
/* No proxy hosted locally
|
||||
const
|
||||
char_insert = require('./src/charinsert.js'),
|
||||
path = require('path'),
|
||||
config = require('./config.json'),
|
||||
fs = require('fs'),
|
||||
http = require('http'),
|
||||
express = require('express'),
|
||||
app = express();
|
||||
|
||||
var server = 'http://';
|
||||
|
||||
server = http.createServer(app);
|
||||
|
||||
btoa = (str) => {
|
||||
str = new Buffer.from(str).toString('base64');
|
||||
return str;
|
||||
};
|
||||
|
||||
atob = (str) => {
|
||||
str = new Buffer.from(str, 'base64').toString('utf-8');
|
||||
return str;
|
||||
};
|
||||
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue