Skip to content

Commit

Permalink
Some Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiteAFancyEmerald committed Apr 28, 2021
1 parent 823205a commit 608881d
Show file tree
Hide file tree
Showing 256 changed files with 1,647 additions and 32,337 deletions.
695 changes: 21 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

262 changes: 114 additions & 148 deletions README.md

Large diffs are not rendered by default.

128 changes: 56 additions & 72 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,102 +1,86 @@
/* -----------------------------------------------
* Authors: QuiteAFancyEmerald, YÖCTDÖNALD'S, BinBashBanana (OlyB), SexyDuceDuce
* Additional help from Divide
* Authors: QuiteAFancyEmerald, BinBashBanana (OlyB), YÖCTDÖNALD'S
* Additional help from Divide and SexyDuceDuce
* MIT license: http://opensource.org/licenses/MIT
* ----------------------------------------------- */
const
char_insert = require('./src/charinsert.js'),
alloy = require('./src/alloyproxy'),
path = require('path'),
config = require('./config.json'),
fs = require('fs'),
http = require('http'),
express = require('express'),
app = express(),
port = process.env.PORT || config.port,
server = http.createServer(app);
char_insert = require('./src/charinsert.js'),
path = require('path'),
config = require('./config.json'),
fs = require('fs'),
http = require('http'),
express = require('express'),
app = express(),
port = process.env.PORT || config.port,
server = http.createServer(app);

btoa = (str) => {
return new Buffer.from(str).toString('base64');
return new Buffer.from(str).toString('base64');
}

atob = (str) => {
return new Buffer.from(str, 'base64').toString('utf-8');
return new Buffer.from(str, 'base64').toString('utf-8');
}

const text404 = fs.readFileSync(path.normalize(__dirname + '/views/404.html'), 'utf8'),
siteIndex = 'index.html',
pages = {
/* Main */
'in': 'info.html',
'faq': 'faq.html',
'status': 'status.html',
'j': 'hidden.html',
's': 'pages/frame.html',
'z': 'pages/surf.html',
'c': 'pages/nav/credits.html',
'x': 'pages/nav/bookmarklets.html',
'i': 'pages/nav/icons.html',
't': 'pages/nav/terms.html',
/* Games */
'g': 'pages/nav/gtools.html',
'h': 'pages/nav/games5.html',
'el': 'pages/nav/emulators.html',
'f': 'pages/nav/flash.html',
/* Proxies */
'a': 'pages/proxnav/alloy.html',
'w': 'pages/proxnav/womginx.html',
'p': 'pages/proxnav/pmprox.html',
'e': 'pages/proxnav/pydodge.html',
'y': 'pages/proxnav/youtube.html',
'd': 'pages/proxnav/discordhub.html',
/* Ruffle and Webretro */
'fg': 'archive/gfiles/flash/index.html',
'eg': 'archive/gfiles/rarch/index.html'
},
/* Randomize Keywords */
cookingInserts = [
"This is a cool example cooking sentence.",
"I wish I could boil hot water. Try to fill this sentence with a lot of cooking related keywords."
],
vegetables = ['Beet', 'Potato'],
charrandom = ['­','‌'];
const text404 = fs.readFileSync(path.normalize(__dirname + '/views/404.html'), 'utf8'),
siteIndex = 'index.html',
pages = {
/* Main */
'in': 'info.html',
'faq': 'faq.html',
'j': 'hidden.html',
's': 'pages/frame.html',
'z': 'pages/surf.html',
'c': 'pages/nav/credits.html',
'x': 'pages/nav/bookmarklets.html',
'i': 'pages/nav/icons.html',
't': 'pages/nav/terms.html',
/* Games */
'g': 'pages/nav/gtools.html',
'h': 'pages/nav/games5.html',
'el': 'pages/nav/emulators.html',
'f': 'pages/nav/flash.html',
/* Proxies */
'a': 'pages/proxnav/alloy.html',
'w': 'pages/proxnav/womginx.html',
'p': 'pages/proxnav/pmprox.html',
'e': 'pages/proxnav/pydodge.html',
'y': 'pages/proxnav/youtube.html',
'd': 'pages/proxnav/discordhub.html',
/* Ruffle and Webretro */
'fg': 'archive/gfiles/flash/index.html',
'eg': 'archive/gfiles/rarch/index.html'
},
/* Randomize Keywords */
cookingInserts = [
"This is a cool example cooking sentence.",
"I wish I could boil hot water. Try to fill this sentence with a lot of cooking related keywords."
],
vegetables = ['Beet', 'Potato'],
charrandom = ['­', '‌'];

function randomListItem(lis) {
return lis[Math.floor(Math.random() * lis.length)];
return lis[Math.floor(Math.random() * lis.length)];
}

function insertCharset(str) {
return str.replace(/&#173;|&#8203;|<wbr>/g, randomListItem(charrandom));
return str.replace(/&#173;|&#8203;|<wbr>/g, randomListItem(charrandom));
}

function insertCooking(str) {
return str.replace(/<!-- IMPORTANT-HUCOOKINGINSERT-DONOTDELETE -->/g, '<span style="display: none;" data-cooking="' + randomListItem(vegetables) + '" data-ingredients="' + randomListItem(vegetables) + '">' + randomListItem(cookingInserts) + '</span>');
return str.replace(/<!-- IMPORTANT-HUCOOKINGINSERT-DONOTDELETE -->/g, '<span style="display: none;" data-cooking="' + randomListItem(vegetables) + '" data-ingredients="' + randomListItem(vegetables) + '">' + randomListItem(cookingInserts) + '</span>');
}

function tryReadFile(file) {
return fs.existsSync(file) ? fs.readFileSync(file, 'utf8') : text404;
return fs.existsSync(file) ? fs.readFileSync(file, 'utf8') : text404;
}

// Local Alloy Proxy
const localAlloy = new alloy({
prefix: '/fetch/',
error: (proxy) => { proxy.res.send(tryReadFile(path.normalize(__dirname + '/views/error.html')).replace('%ERR%', proxy.error.info.message.replace(/<|>/g, ''))); },
request: [],
response: [],
injection: true
});

app.use(localAlloy.app);
localAlloy.ws(server);

// Querystring navigation
/* Querystring Navigation */
app.get('/', async(req, res) => res.send(insertCooking(insertCharset(tryReadFile(path.normalize(__dirname + '/views/' + (['/', '/?'].includes(req.url) ? siteIndex : pages[Object.keys(req.query)[0]])))))));

// Static files served
/* Static Files Served */
app.use(char_insert.static(path.normalize(__dirname + '/views')));

// 404 Page
app.use((req, res) => res.status(404, res.send(insertCooking(text404))));

server.listen(port);
console.log('Public distribution of Holy Unblocker available on port ' + port + '!');
console.log('Public distribution of Holy Unblocker available on port ' + port + '!');
40 changes: 19 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
{
"name": "holyub",
"version": "4.5.0",
"repository": "https://github.com/QuiteAFancyEmerald/HolyUnblockerPublic",
"description": "A pretty fancy website.",
"main": "app.js",
"scripts": {
"start": "node app.js"
},
"keywords": [
"proxy",
"node.js",
"unblocker"
],
"author": "Titanium Network",
"license": "MIT",
"dependencies": {
"express": "^4.17.1",
"express-session": "^1.17.1",
"mime-types": "^2.1.27",
"pm2": "^4.5.5"
}
"name": "holyub",
"version": "4.5.0",
"repository": "https://github.com/QuiteAFancyEmerald/HolyUnblockerPublic",
"description": "A pretty fancy website.",
"main": "app.js",
"scripts": {
"start": "node app.js"
},
"keywords": [
"proxy",
"node.js",
"unblocker"
],
"author": "Titanium Network",
"license": "MIT",
"dependencies": {
"express": "^4.17.1",
"mime-types": "^2.1.27"
}
}
24 changes: 15 additions & 9 deletions views/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,34 @@ <h1>404 Error</h1>
<div class="container">
<div class="row">
<div class="col-md-6 item text">
<h3><a href=/>Ho<wbr>ly Unb<wbr>loc<wbr>ker</a>
</h3>
<h3><a href="/">Ho<wbr>ly Unb<wbr>loc<wbr>ker</a></h3>
<p>Made by Stud<wbr>ents, For Stu<wbr>dents.&nbsp;</p>
<p class="copyright">Holy U<wbr>nblo<wbr>cke<wbr>r © 2021</p>
</div>
<div class="col-sm-6 col-md-3 item">
<h3>Services</h3>
<ul>
<li><a href=/?a>All<wbr>oy</a></li>
<li><a href=/?p>PM P<wbr>ro<wbr>xy</a></li>
<li><a href=/?w>Wo<wbr>mg<wbr>inx</a></li>
<li><a id="allink">Al<wbr>loy</a></li>
<li><a id="plink">PM P<wbr>ro<wbr>xy</a></li>
<li><a id="nclink">No<wbr>deClu<wbr>sters</a></li>
</ul>
</div>
<div class="col-sm-6 col-md-3 item">
<h3>About</h3>
<ul>
<li><a href=/?z>Surf Freely</a></li>
<li><a href=/?c>G<wbr>itHub</a></li>
<li><a href=/?t>Privacy Policy</a></li>
<li><a id="hblink">G<wbr>itHub</a></li>
<li><a href="/?t">Privacy and Terms of Service</a></li>
<li><a href="/?c">Credits</a></li>
</ul>
</div>
<!-- GitHub -->
<div class="col item social center ft-g">
<a id="hblink2">
<ion-icon name="logo-github"></ion-icon>
</a>
</div>
</div>
<!-- Updated CC Date-->
<p class="copyright">Holy U<wbr>nblo<wbr>cke<wbr>r © 2021</p>
</div>
</footer>
</div>
Expand Down
4 changes: 2 additions & 2 deletions views/archive/g/mcjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
To save your world, copy/paste the saveString<br>
from this box into the code on line 187.<br>
var loadString = "Your Code Here";<br>
Then save the game into your world save.
Then save the program as a Spin-off.
</p>
<div class="world-select hidden" id="worlds"></div>
<p id="message" class="hidden" style="position: absolute; top: 10px; right: 10px; z-index: 1; text-align: right; background-color: rgba(255, 255, 255, 0.3);"></p>
Expand Down Expand Up @@ -511,7 +511,7 @@
{ name: "polishedDiorite" },
{ name: "granite" },
{ name: "polishedGranite" },
// { // Snoop god likes cats!
// { // I swear, if y'all don't stop asking about TNT every 5 minutes!
// name: "tnt",
// textures: ["tntBottom", "tntTop", "tntSides"]
// },
Expand Down
2 changes: 1 addition & 1 deletion views/archive/g/run3/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<iframe style="width:100%; height:100%; top:0; bottom:0; left:0; right:0; position:fixed; border-style: none;" src="https://play&#8203;er03.com/ru&#8203;n/3/b&#8203;eta"></iframe>
<iframe style="width:100%; height:100%; top:0; bottom:0; left:0; right:0; position:fixed; border-style: none;" src="https://player03.com/run/3/beta"></iframe>
114 changes: 0 additions & 114 deletions views/archive/j/audio-game/css/audiogame.css

This file was deleted.

Binary file removed views/archive/j/audio-game/images/dot.png
Binary file not shown.
Binary file removed views/archive/j/audio-game/images/game_bg.jpg
Binary file not shown.
Binary file removed views/archive/j/audio-game/images/hit_line.png
Binary file not shown.
Binary file removed views/archive/j/audio-game/images/menu_bg.jpg
Binary file not shown.
Binary file removed views/archive/j/audio-game/images/play_button.png
Binary file not shown.
Loading

0 comments on commit 608881d

Please sign in to comment.