Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
00Fjongl committed Jul 8, 2024
2 parents 3dc8e0c + 42f7a85 commit 5e35250
Show file tree
Hide file tree
Showing 42 changed files with 469 additions and 516 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.8.0'

- name: Install dependencies
run: npm install

- name: Start server
run: npm run start-test-server

- name: Test server response
run: npm run test-200

- name: Stop server after testing
run: pkill node || true
69 changes: 48 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,28 @@ Due to piracy concerns, size, etc. this has been moved over <a href="https://git

Note: EmuLibrary is not featured in the public version.

Official Site: TO BE UPDATED
Official Site:

**Be sure to join Titanium Network's Discord for more official site links:** <a href="https://discord.gg/unblock">https://discord.gg/unblock</a>

Simply do `%proxy hu` in `#proxy-commands` for more Holy Unblocker links on the TN Discord server.

<img src="https://raw.githubusercontent.com/titaniumnetwork-dev/Holy-Unblocker/master/views/assets/img/preview/hu-v5.0.0-preview.png"></img>
<img src="https://raw.githubusercontent.com/titaniumnetwork-dev/Holy-Unblocker/master/views/assets/img/preview/hu-v6.1.0-preview.png"></img>

### Deploy Holy Unblocker
## Deploy Holy Unblocker

[![Deploy to Heroku](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/heroku.svg)](https://heroku.com/deploy/?template=https://github.com/titaniumnetwork-dev/Holy-Unblocker)
[![Run on Replit](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/replit.svg)](https://replit.com/github/titaniumnetwork-dev/Holy-Unblocker)
[![Remix on Glitch](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/glitch.svg)](https://glitch.com/edit/#!/import/github/titaniumnetwork-dev/Holy-Unblocker)
[![Deploy to Azure](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/azure.svg)](https://deploy.azure.com/?repository=https://github.com/titaniumnetwork-dev/Holy-Unblocker)
[![Deploy to IBM Cloud](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/ibmcloud.svg)](https://cloud.ibm.com/devops/setup/deploy?repository=https://github.com/titaniumnetwork-dev/Holy-Unblocker)
[![Deploy to Amplify Console](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/amplifyconsole.svg)](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/titaniumnetwork-dev/Holy-Unblocker)
[![Run on Google Cloud](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/googlecloud.svg)](https://deploy.cloud.run/?git_repo=https://github.com/titaniumnetwork-dev/Holy-Unblocker)
[![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)
[![Run on Replit](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/replit.svg)](https://replit.com/github/QuiteAFancyEmerald/Holy-Unblocker)
[![Deploy to Azure](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/azure.svg)](https://deploy.azure.com/?repository=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)
[![Deploy to IBM Cloud](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/ibmcloud.svg)](https://cloud.ibm.com/devops/setup/deploy?repository=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)
[![Deploy to Amplify Console](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/amplifyconsole.svg)](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)
[![Run on Google Cloud](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/googlecloud.svg)](https://deploy.cloud.run/?git_repo=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2Ftitaniumnetwork-dev%2FHoly-Unblocker)
<details><summary>More Deployments</summary>

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2FQuiteAFancyEmerald%2FHoly-Unblocker)
[![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?type=git&repository=github.com/QuiteAFancyEmerald/Holy-Unblocker-Old&branch=master&name=HolyUnblocker&run_command=npm%start)
</details>

## Table of contents:

Expand Down Expand Up @@ -129,9 +130,8 @@ This website is hosted locally with Ultraviolet and Rammerhead built-in.
- `emulators.html`: Emulator navigation page, using <a href="https://github.com/BinBashBanana/webretro">webretro</a>.
- `emulibrary.html`: Games page for emulated games (not included in public release)
- `flash.html`: Games page for flash games, credits given to @BinBashBanana and Titanium Network for its assets.
- `corrosion.html`: Corrosion Proxy page which features Corrosion hosted locally but can be configured to redirect to an external instance.
- `womginx.html`: Womginx Proxy page. Script links to a subdomain for Womginx, a highly fast proxy with reCaptcha and discord support.
- `palladium.html`: Palladium Proxy page.
- `ultraviolet.html`: TODO
- `rammerhead.html`: TODO
- `youtube.html`: An proxied version of Youtube running off of the locally hosted Corrosion.
- `discord.html`: Hub for the Discord proxy.
- `reddit.html`: Hub for the Reddit proxy.
Expand All @@ -154,11 +154,32 @@ This website is hosted locally with Ultraviolet and Rammerhead built-in.
- `gnav/*.js` are used for navigation on the games pages.

## Future Additions
- Expansive game library
- Various parity changes.
This will be our nonexhaustive todo list for Holy Unblocker LTS v6.x.x and above.

### Code Cleanup

- [ ] Remove the timestamps attached to the end of the JS file names.
- [ ] Remove all current obfuscation in the source code. It needs to be dynamically obfuscated if anything, or not obfuscated at all. This option will be a config option on the server side before rendering with Express for a performance focus. Meta elements will have an additonal attribute indicating if they should be moved. This is to ensure a SEO source can be served by config or a source focused on pure censorship evasion.
- [ ] Optimize the stylesheets and the HTML layout. Add more proper commenting and redivide the code so that it's less hard on the eyes.
- [ ] Optimize the JS. This time it won't be in one line and will be somewhat thoroughly commented.
- [ ] Restructure navigation scripts to ensure updated proxy functionality is sanitized and effective
- [x] Particles.js automatically adjusting per display size

### Proxy Functionality
- [x] Ensure Ultraviolet is updated to support bare-mux and wisp - done
- [x] Add Rammerhead support - done
- [ ] Fix slow Ultraviolet speeds despite being local; something on the backend??

### Site Redesign
- [x] Landing Page - done
- [ ] Web Proxies page
- [ ] Application page
- [ ] Games Libray page
- [x] Footer Design - done
- [x] Header Design

## Vauge Explanation for Beginners With External Proxies and Hosting
You will first want to host your proxies locally or externally.
You will first want to host your proxies locally or externally. OUTDATED

#### List of some good hosting options:
- <a href="#">Oracle Cloud</a> (Free, Paid, Dedicated)
Expand Down Expand Up @@ -255,20 +276,26 @@ This project is maintained by Quite A Fancy Emerald with massive help from BinBa

View the official website for more detail and credits.

### Proxy Sources:
### Web Proxy Sources:
This project currently uses Ultraviolet, Wisp, Womginx, and Rammerhead, linked below.

- <a href="https://github.com/titaniumnetwork-dev/Ultraviolet">Ultraviolet</a>
- <a href="https://github.com/binary-person/womginx">Womginx</a>
- <a href="https://github.com/binary-person/rammerhead">Rammerhead</a>
- <a href="https://github.com/MercuryWorkshop/wisp-server-node">Wisp</a>
- <a href="https://github.com/MercuryWorkshop/bare-mux">Bare-Mux</a>
- <a href="https://github.com/tomphttp/bare-server-node">TOMP Bare Server</a>


### Other:
### Other Dependencies:

- <a href="https://github.com/vibedivide/vibeOS">vibeOS</a>
- <a href="https://github.com/tsparticles/tsparticles">tsparticles</a>
- <a href="https://github.com/helmetjs/helmet">Helmet for Express</a>
- <a href="https://github.com/BinBashBanana/webretro">webretro</a>
- <a href="https://ruffle.rs/">Ruffle</a>
- <a href="https://github.com/BlaNKtext/webosu">webosu</a>
- <a href="https://github.com/michalsnik/aos">AOS</a>
- <a href="https://github.com/nordtheme">Nord Theme</a>
- <a href="https://fontawesome.com/">Font Awesome</a>

### Notable Mentions:

Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This will be our nonexhaustive todo list for revamping the Holy Unblocker project.
This will be our nonexhaustive todo list for Holy Unblocker LTS v6.x.x and above.

## Code Cleanup

Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "holyub",
"version": "6.1.0",
"version": "6.2.0",
"repository": "https://github.com/QuiteAFancyEmerald/Holy-Unblocker",
"description": "Holy Unblocker is a secure web proxy service with support for many sites.",
"main": "backend.js",
"scripts": {
"start": "node backend.js"
"start": "node backend.js",
"build": "npm run start",
"test": "npm run test-200",
"start-test-server": "node backend.js &",
"test-200": "node test.js"
},
"keywords": [
"proxy",
Expand All @@ -19,8 +23,8 @@
"@mercuryworkshop/epoxy-transport": "^2.0.6",
"@titaniumnetwork-dev/ultraviolet": "^3.1.5",
"@tomphttp/bare-server-node": "^2.0.3",
"axios": "^1.7.2",
"babel": "^6.23.0",
"corrosion": "^1.0.0",
"express": "^4.19.2",
"helmet": "^7.1.0",
"mime-types": "^2.1.35",
Expand Down
2 changes: 1 addition & 1 deletion src/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "HU OSS",
"title": "HU LTS",
"port": "8080",
"ssl": false,
"ws": true,
Expand Down
24 changes: 0 additions & 24 deletions src/proxy.mjs

This file was deleted.

1 change: 0 additions & 1 deletion src/routes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const pages = {
/* Proxies */
'q': 'pages/proxnav/ultraviolet.html',
'rh': 'pages/proxnav/rammerhead.html',
'w': 'pages/proxnav/womginx.html',
/* Proxy Presets */
'sx': 'pages/proxnav/preset/spotify.html',
'y': 'pages/proxnav/preset/youtube.html',
Expand Down
19 changes: 19 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const axios = require('axios');

async function testServerResponse() {
try {
const response = await axios.get('http://localhost:8080/');
if (response.status === 200) {
console.log('Server responded with status code 200. Test passed.');
process.exit(0); // Exit with success
} else {
console.error(`Expected status code 200 but received ${response.status}. Test failed.`);
process.exit(1); // Exit with failure
}
} catch (error) {
console.error('Error while testing server response:', error.message);
process.exit(1); // Exit with failure
}
}

testServerResponse();
16 changes: 16 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": 2,
"builds": [
{
"src": "src/server.mjs",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/src/server.mjs"
}
]
}

1 change: 0 additions & 1 deletion views/ads.txt

This file was deleted.

Binary file added views/assets/img/preview/hu-v6.1.0-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions views/assets/js/card.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* -----------------------------------------------
/* Authors: QuiteAFancyEmerald
/* GNU Affero General Public License v3.0: https://www.gnu.org/licenses/agpl-3.0.en.html
/* Card Shimmer Mouse Follow Script
/* ----------------------------------------------- */

const shimmerEffects = document.querySelectorAll(".box-card");


Expand Down
Loading

0 comments on commit 5e35250

Please sign in to comment.