Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit df029ab

Browse files
Format commit
1 parent d8a579a commit df029ab

File tree

8 files changed

+47
-38
lines changed

8 files changed

+47
-38
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@
5151
</div>
5252

5353
## NOTE:
54-
* For Cyclic users this will **not** work as it is too big
55-
* This will **NOT** deploy on Github Pages, Netlify, Vercel, Gitlab Pages or any other *static* host
54+
55+
- For Cyclic users this will **not** work as it is too big
56+
- This will **NOT** deploy on Github Pages, Netlify, Vercel, Gitlab Pages or any other _static_ host
57+
5658
---
5759

5860
This is our second edition of [Ruby](https://github.com/ruby-network/ruby-v1). This edition focuses on speed and more features.
@@ -70,6 +72,7 @@ This is our second edition of [Ruby](https://github.com/ruby-network/ruby-v1). T
7072
- [Ultraviolet](https://github.com/titaniumnetwork-dev/ultraviolet)
7173
- [Dynamic Interception Proxy (DIP)](https://github.com/Dynamic-Interception-Proxy/DIP)
7274
- [Osana](https://github.com/nebulaservices/osana)
75+
7376
---
7477

7578
- Basic Password protection for the website (you can set a password in the settings page)
@@ -84,11 +87,11 @@ This is our second edition of [Ruby](https://github.com/ruby-network/ruby-v1). T
8487

8588
- Easy to self host
8689

87-
- Tab cloaking
90+
- Tab cloaking
8891

89-
- Multithreading for performance
92+
- Multithreading for performance
9093

91-
- **NEW:** Off click cloaking (make the tab look like a Google search when you are doing something else)
94+
- **NEW:** Off click cloaking (make the tab look like a Google search when you are doing something else)
9295

9396
- And more!
9497

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ if (numCPUs > 0 && cluster.isPrimary) {
181181
return;
182182
}
183183
});
184-
// Define the /analytics endpoint
184+
// Define the /analytics endpoint
185185
app.use((req, res) => {
186186
res.writeHead(302, {
187187
Location: '/404',

public/js/settings.js

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -351,38 +351,41 @@ function setFullScreenElsewhere() {
351351
}
352352
//CLICKOFF CLOAKING
353353
function changeClickoff(value) {
354-
localStorage.setItem('clickoff', value)
354+
localStorage.setItem('clickoff', value);
355355
window.location.reload();
356356
}
357357
function handleClickoff() {
358-
let favicon = document.getElementById('favicon')
358+
let favicon = document.getElementById('favicon');
359359
let cloakedTitle = 'Google';
360360
let cloakedFavicon = 'https://google.com/favicon.ico';
361-
if (localStorage.getItem('clickedoff') === 'false' || localStorage.getItem('clickedoff') === null || localStorage.getItem('clickedoff') === undefined) {
361+
if (
362+
localStorage.getItem('clickedoff') === 'false' ||
363+
localStorage.getItem('clickedoff') === null ||
364+
localStorage.getItem('clickedoff') === undefined
365+
) {
362366
document.title = cloakedTitle;
363367
favicon.href = cloakedFavicon;
364-
localStorage.setItem('clickedoff', true)
365-
}
366-
else {
368+
localStorage.setItem('clickedoff', true);
369+
} else {
367370
document.title = localStorage.getItem('title');
368371
favicon.href = localStorage.getItem('favicon');
369-
localStorage.setItem('clickedoff', false)
372+
localStorage.setItem('clickedoff', false);
370373
}
371374
}
372375
function setClickoff(setValue, routechange) {
373-
let clickoff = localStorage.getItem('clickoff')
376+
let clickoff = localStorage.getItem('clickoff');
374377
if (!clickoff) {
375-
localStorage.setItem('clickoff', false)
378+
localStorage.setItem('clickoff', false);
376379
}
377380
if (setValue === 'true') {
378-
let val = document.getElementById('clickoff')
379-
val.value = localStorage.getItem('clickoff')
381+
let val = document.getElementById('clickoff');
382+
val.value = localStorage.getItem('clickoff');
380383
}
381384
if (clickoff === 'true') {
382385
if (routechange === 'true') {
383-
localStorage.setItem('clickedoff', false)
386+
localStorage.setItem('clickedoff', false);
384387
}
385-
document.addEventListener("visibilitychange", handleClickoff);
388+
document.addEventListener('visibilitychange', handleClickoff);
386389
}
387390
}
388391
if (
@@ -412,13 +415,13 @@ if (
412415
setProxyElsewhere();
413416
setThemeElsewhere();
414417
setBgEffectElsewhere();
415-
setClickoff('false', 'true')
418+
setClickoff('false', 'true');
416419
} else {
417420
setTitleElsewhere();
418421
setFaviconElsewhere();
419422
setProxyElsewhere();
420423
setThemeElsewhere();
421424
setBgEffectElsewhere();
422425
setFullScreenElsewhere();
423-
setClickoff('false', 'true')
426+
setClickoff('false', 'true');
424427
}

railway.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
2-
"$schema": "https://railway.app/railway.schema.json",
3-
"build": {
4-
"builder": "NIXPACKS",
5-
"buildCommand": "yarn build"
6-
},
7-
"deploy": {
8-
"startCommand": "yarn start",
9-
"healthcheckPath": null,
10-
"healthcheckTimeout": null,
11-
"restartPolicyType": "never"
12-
}
2+
"$schema": "https://railway.app/railway.schema.json",
3+
"build": {
4+
"builder": "NIXPACKS",
5+
"buildCommand": "yarn build"
6+
},
7+
"deploy": {
8+
"startCommand": "yarn start",
9+
"healthcheckPath": null,
10+
"healthcheckTimeout": null,
11+
"restartPolicyType": "never"
12+
}
1313
}
14-

render.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ services:
66
buildCommand: yarn && yarn build
77
startCommand: yarn start
88
envVars:
9-
- key: CPUS
10-
value: 0
9+
- key: CPUS
10+
value: 0

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import Password from '../components/password';
4242
color: var(--text-color);
4343
font-family: var(--font);
4444
}
45-
#get-started-button {
45+
#get-started-button {
4646
font-size: 3rem;
4747
text-align: center;
4848
margin-top: 0.25rem;

src/pages/settings.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ import Password from '../components/password';
135135
<option value="triangles-and-circles">Triangles and Circles</option>
136136
</select>
137137
<div class="divider mt-20">Click Off Cloaking</div>
138-
<select class="dropdown" id="clickoff" onchange="changeClickoff(this.value)">
138+
<select
139+
class="dropdown"
140+
id="clickoff"
141+
onchange="changeClickoff(this.value)"
142+
>
139143
<option value="false">Off</option>
140144
<option value="true">On</option>
141145
</select>

src/styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
.teal {
147147
--bg-color: #0c1a1a;
148148
--text-color: #ffffff;
149-
--border-color: #6aCfc7;
149+
--border-color: #6acfc7;
150150
--text-bg-color: #0c1a2a;
151151
--scroll-bar-track-color: #0c1a1a;
152152
--scroll-bar-thumb-color: #6acfc7;

0 commit comments

Comments
 (0)