mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
Cleaned up some stuff
This commit is contained in:
parent
034e8bbd2a
commit
ac83f87e65
3 changed files with 120 additions and 127 deletions
111
app.js
111
app.js
|
@ -91,7 +91,7 @@
|
||||||
} else return next();
|
} else return next();
|
||||||
});
|
});
|
||||||
|
|
||||||
app.use(`${config.prefix}utils/`, async (req, res, next) => {
|
app.use(`${config.prefix}utils/`, async(req, res, next) => {
|
||||||
if (req.url.startsWith('/assets/')) {
|
if (req.url.startsWith('/assets/')) {
|
||||||
res.sendFile(__dirname + '/utils' + req.url);
|
res.sendFile(__dirname + '/utils' + req.url);
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.post(`${config.prefix}session/`, async (req, res, next) => {
|
app.post(`${config.prefix}session/`, async(req, res, next) => {
|
||||||
let url = querystring.parse(req.raw_body).url;
|
let url = querystring.parse(req.raw_body).url;
|
||||||
if (url.startsWith('//')) {
|
if (url.startsWith('//')) {
|
||||||
url = 'http:' + url;
|
url = 'http:' + url;
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
return res.redirect(config.prefix + rewrite_url(url));
|
return res.redirect(config.prefix + rewrite_url(url));
|
||||||
});
|
});
|
||||||
|
|
||||||
app.use(config.prefix, async (req, res, next) => {
|
app.use(config.prefix, async(req, res, next) => {
|
||||||
var proxy = {};
|
var proxy = {};
|
||||||
proxy.url = rewrite_url(req.url.slice(1), 'decode');
|
proxy.url = rewrite_url(req.url.slice(1), 'decode');
|
||||||
proxy.url = {
|
proxy.url = {
|
||||||
|
@ -309,12 +309,107 @@
|
||||||
res.send(proxy.sendResponse);
|
res.send(proxy.sendResponse);
|
||||||
});
|
});
|
||||||
|
|
||||||
//Querystrings Here
|
|
||||||
|
|
||||||
|
|
||||||
app.use('/', express.static('public'));
|
app.use('/', express.static('public'));
|
||||||
|
|
||||||
app.use(async (req, res, next) => {
|
app.get('/', async(req, res) => {
|
||||||
|
|
||||||
|
if (req.query['pd'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/e.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['a'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/a.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (req.query['b'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/b.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['p'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/p.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['x'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/x.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['d'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/d.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['y'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/y.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['yh'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/yh.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (req.query['ym'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/ym.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (req.query['g'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/g.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (req.query['k'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/k.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['m'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/m.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['c'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/c.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['z'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/z.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query['t'].includes('')) {
|
||||||
|
return res.send(fs.readFileSync('./public/t.html', {
|
||||||
|
encoding: 'utf-8'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
app.use(async(req, res, next) => {
|
||||||
if (req.headers['referer']) {
|
if (req.headers['referer']) {
|
||||||
|
|
||||||
let referer = '/' + String(req.headers['referer']).split('/').splice(3).join('/');
|
let referer = '/' + String(req.headers['referer']).split('/').splice(3).join('/');
|
||||||
|
@ -335,4 +430,4 @@
|
||||||
res.redirect(307, config.prefix + btoa(req.session.url) + req.url)
|
res.redirect(307, config.prefix + btoa(req.session.url) + req.url)
|
||||||
|
|
||||||
} else return next();
|
} else return next();
|
||||||
});
|
});
|
|
@ -1,110 +0,0 @@
|
||||||
{
|
|
||||||
"particles": {
|
|
||||||
"number": {
|
|
||||||
"value": 240,
|
|
||||||
"density": {
|
|
||||||
"enable": true,
|
|
||||||
"value_area": 1250.177108423694
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"color": {
|
|
||||||
"value": "#ffffff"
|
|
||||||
},
|
|
||||||
"shape": {
|
|
||||||
"type": "circle",
|
|
||||||
"stroke": {
|
|
||||||
"width": 2,
|
|
||||||
"color": "#000000"
|
|
||||||
},
|
|
||||||
"polygon": {
|
|
||||||
"nb_sides": 7
|
|
||||||
},
|
|
||||||
"image": {
|
|
||||||
"src": "img/github.svg",
|
|
||||||
"width": 100,
|
|
||||||
"height": 100
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"opacity": {
|
|
||||||
"value": 0.5,
|
|
||||||
"random": false,
|
|
||||||
"anim": {
|
|
||||||
"enable": false,
|
|
||||||
"speed": 1,
|
|
||||||
"opacity_min": 0.1,
|
|
||||||
"sync": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"size": {
|
|
||||||
"value": 3,
|
|
||||||
"random": true,
|
|
||||||
"anim": {
|
|
||||||
"enable": false,
|
|
||||||
"speed": 40,
|
|
||||||
"size_min": 0.1,
|
|
||||||
"sync": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"line_linked": {
|
|
||||||
"enable": true,
|
|
||||||
"distance": 183.3593092354751,
|
|
||||||
"color": "#ffffff",
|
|
||||||
"opacity": 0.4,
|
|
||||||
"width": 1
|
|
||||||
},
|
|
||||||
"move": {
|
|
||||||
"enable": true,
|
|
||||||
"speed": 6,
|
|
||||||
"direction": "none",
|
|
||||||
"random": false,
|
|
||||||
"straight": false,
|
|
||||||
"out_mode": "out",
|
|
||||||
"bounce": false,
|
|
||||||
"attract": {
|
|
||||||
"enable": false,
|
|
||||||
"rotateX": 600,
|
|
||||||
"rotateY": 1200
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"interactivity": {
|
|
||||||
"detect_on": "canvas",
|
|
||||||
"events": {
|
|
||||||
"onhover": {
|
|
||||||
"enable": false,
|
|
||||||
"mode": "repulse"
|
|
||||||
},
|
|
||||||
"onclick": {
|
|
||||||
"enable": true,
|
|
||||||
"mode": "push"
|
|
||||||
},
|
|
||||||
"resize": true
|
|
||||||
},
|
|
||||||
"modes": {
|
|
||||||
"grab": {
|
|
||||||
"distance": 400,
|
|
||||||
"line_linked": {
|
|
||||||
"opacity": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"bubble": {
|
|
||||||
"distance": 400,
|
|
||||||
"size": 40,
|
|
||||||
"duration": 2,
|
|
||||||
"opacity": 8,
|
|
||||||
"speed": 3
|
|
||||||
},
|
|
||||||
"repulse": {
|
|
||||||
"distance": 200,
|
|
||||||
"duration": 0.4
|
|
||||||
},
|
|
||||||
"push": {
|
|
||||||
"particles_nb": 4
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"particles_nb": 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"retina_detect": true
|
|
||||||
}
|
|
|
@ -1,11 +1,19 @@
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow: https://
|
Allow: /index.html
|
||||||
Disallow: /index.html
|
Allow: /z.html
|
||||||
Disallow: /a.html
|
Allow: /c.html
|
||||||
Disallow: /b.html
|
Disallow: /
|
||||||
Disallow: /c.html
|
|
||||||
Disallow: /g.html
|
User-agent: Googlebot
|
||||||
Disallow: /k.html
|
Allow: /index.html
|
||||||
Disallow: /yt.html
|
Allow: /z.html
|
||||||
Disallow: /z.html
|
Allow: /c.html
|
||||||
|
Disallow: /
|
||||||
|
|
||||||
|
|
||||||
|
User-agent: AdsBot-Google
|
||||||
|
Allow: /index.html
|
||||||
|
Allow: /z.html
|
||||||
|
Allow: /c.html
|
||||||
|
Disallow: /
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue