mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
Edited Query Paths
This commit is contained in:
parent
a35b6533b7
commit
825b7233f1
1 changed files with 481 additions and 491 deletions
166
app.js
166
app.js
|
@ -1,3 +1,5 @@
|
||||||
|
const { checkServerIdentity } = require('tls');
|
||||||
|
|
||||||
const express = require('express'),
|
const express = require('express'),
|
||||||
app = express(),
|
app = express(),
|
||||||
http = require('http'),
|
http = require('http'),
|
||||||
|
@ -405,137 +407,125 @@
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* var hbsites = {};
|
||||||
|
&& hostname == hbsites
|
||||||
|
*/
|
||||||
|
|
||||||
if (req.url == '/') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/index.html', {
|
case '/':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'index.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?z') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/z.html', {
|
case '/?z':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'surf.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?a') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/a.html', {
|
case '/?a':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'proxnav', 'alloy.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?dd') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/expr/d.html', {
|
case '/?dd':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'redirects', 'discordprox.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?b') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/b.html', {
|
case '/?b':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'proxnav', 'node.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?y') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/y.html', {
|
case '/?y':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'proxnav', 'youtube.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?e') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/e.html', {
|
case '/?e':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'proxnav', 'pydodge.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?d') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/d.html', {
|
case '/?d':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'proxnav', 'discordhub.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?c') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/c.html', {
|
case '/?c':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'nav', 'credits.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?f') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/f.html', {
|
case '/?f':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'nav', 'flash.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?g') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/g.html', {
|
case '/?g':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'nav', 'gtools.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?h') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/h.html', {
|
case '/?h':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'nav', 'games5.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?i') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/i.html', {
|
case '/?i':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'nav', 'icons.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?in') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/info.html', {
|
case '/?in':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'info.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?k') {
|
switch (req.url == '/?k') {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/k.html', {
|
case '/?k':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'bppages', 'frames', 'krunker.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?m') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/m.html', {
|
case '/?m':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'nav', 'gba.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?n') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/n.html', {
|
case '/?n':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'redirects', 'chatbox.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?p') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/p.html', {
|
case '/?p':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'proxnav', 'pmprox.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?t') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/t.html', {
|
case '/?t':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'nav', 'terms.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?x') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/x.html', {
|
case '/?x':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'nav', 'bookmarklets.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?yh') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/yh.html', {
|
case '/?yh':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'redirects', 'ythub.html'), 'utf8'));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.url == '/?ym') {
|
switch (req.url) {
|
||||||
return res.send(fs.readFileSync(path.resolve() + '/public/ym.html', {
|
case '/?ym':
|
||||||
encoding: 'utf8'
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'redirects', 'ytmobile.html'), 'utf8'));
|
||||||
}));
|
}
|
||||||
|
|
||||||
|
// Frames Page
|
||||||
|
|
||||||
|
switch (req.url) {
|
||||||
|
case '/?j':
|
||||||
|
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'hidden.html'), 'utf8'))
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue