diff --git a/app.js b/app.js index 489c4456..610617d4 100644 --- a/app.js +++ b/app.js @@ -392,12 +392,40 @@ app.use(config.prefix, async (req, res, next) => { }); app.post('/', async (req, res) => { + switch (req.url) { case '/': return res.send(fs.readFileSync(path.join(__dirname, 'public', 'index.html'), 'utf8')); } }); +/* app.get('/'), async (req, res) => { + charInsert = str => { + var output = ''; + + str.split(' ').forEach((word, word_index) => (word.split('').forEach((chr, chr_index) => output += (!chr_index || chr_index == word.length) ? '' + chr.charCodeAt() + '' : ''), output += word_index != str.split(' ').length - 1 ? ' ' : '')); + + return output + }, + result = fs.readFileSync(path.join(__dirname, 'public', 'index.html'), 'utf8').replace(/charinsert{([\s\S]*?)}/g, (match, str) => charInsert(str)); + + fs.writeFileSync(path.join(__dirname, 'public', 'page.html'), result); +} + + +app.get('/'), async (req, res) => { + charInsert = str => { + var output = ''; + + str.split(' ').forEach((word, word_index) => (word.split('').forEach((chr, chr_index) => output += (!chr_index || chr_index == word.length) ? ' ' + chr.charCodeAt() + '' + chr.charCodeAt() + '' : ''), output += word_index != str.split(' ').length - 1 ? ' ' : '')); + + return output + }, + result = fs.readFileSync(path.join(__dirname, 'public', 'page.html'), 'utf8').replace(/charinsert{([\s\S]*?)}/g, (match, str) => charInsert(str)); + + fs.writeFileSync(path.join(__dirname, 'public', 'index.html'), result); +} */ + //Querystrings 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 diff --git a/package.json b/package.json index 73b4c21a..67f7f1a5 100644 --- a/package.json +++ b/package.json @@ -29,4 +29,4 @@ "morgan": "^1.9.0", "axios": "^0.19.2" } -} \ No newline at end of file +} diff --git a/public/expr/surf.js b/public/expr/surf.js index 427c9c04..dc28ae92 100644 --- a/public/expr/surf.js +++ b/public/expr/surf.js @@ -59,9 +59,9 @@ $('pdprox').onclick = function() { var url = $('url').value; var det = document.domain; var domain = det.replace('www.', '').split(/[/?#]/)[0]; - frame.src = "https://c." + domain + "/" + url; + frame.src = "https://cdn." + domain + "/" + url; frame.style['visibility'] = "visible"; - document.cookie = 'oldsmobile=owo; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;'; + document.cookie = 'wowow; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;'; return false; }; $('pdproxbp').onclick = function() { @@ -69,8 +69,8 @@ $('pdproxbp').onclick = function() { var url = $('url').value; var det = document.domain; var domain = det.replace('www.', '').split(/[/?#]/)[0]; - window.location.href = "https://c." + domain + "/" + url; - document.cookie = 'oldsmobile=owo; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;'; + window.location.href = "https://cdn." + domain + "/" + url; + document.cookie = 'wowo; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;'; return false; }; //PM Load diff --git a/public/index.html b/public/index.html index b24e9770..7c95cded 100644 --- a/public/index.html +++ b/public/index.html @@ -7,7 +7,6 @@ ' + chr.charCodeAt() + '
(Updated 11/6/20): Now hi
(Updated 11/8/20): Now hid
Su
Choose which proxy you would like to use. Below is some information.
More Information:
Alloy: Discord (Mostly Full), YouTube (Full), CoolMathGames, etc. Alloy: Discord (Mostly Full), YouTube (Full), etc. Many sites work with this. Join the T
Node: Secondary proxy compared to Alloy, PM and PD.
P
PyD
+
Node: CoolMathGames, secondary proxy compared to Alloy, PM and PD.
P
V
T
+ https://di
-