Skip to content

Commit

Permalink
Merge pull request #99 from wearrrrr/polishing-patch
Browse files Browse the repository at this point in the history
General polishing changes to Nebula
  • Loading branch information
GreenyDEV committed Apr 27, 2023
2 parents d937871 + ae00851 commit f02a880
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 65 deletions.
33 changes: 18 additions & 15 deletions public/resources/nebulamain.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@ function log() {
setTimeout(
console.log.bind(
console,
"%cWelcome To Nebula",
"background: #3F51B5;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:30px;"
"%cWelcome To Nebula!",
"background: #3F51B5;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:24px;"
)
);
setTimeout(
console.log.bind(
console,
"%c If you are seeing this, Nebula's main script has succesfully loaded!",
"background: green;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:12px;"
"%cIf you are seeing this, Nebula's main script has succesfully loaded!",
"background: green;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:16px;"
)
);
setTimeout(
Expand All @@ -231,23 +231,26 @@ function log() {
let browserName;
let diagnosticDomain = window.location.href;
if (userAgent.match(/chrome|chromium|crios/i)) {
browserName = "chrome";
browserName = "Chrome";
} else if (userAgent.match(/firefox|fxios/i)) {
browserName = "firefox";
browserName = "Firefox";
} else if (userAgent.match(/safari/i)) {
browserName = "safari";
browserName = "Safari";
} else if (userAgent.match(/opr\//i)) {
browserName = "opera";
browserName = "Opera";
} else if (userAgent.match(/edg/i)) {
browserName = "edge";
browserName = "Edge";
} else {
browserName = "No browser detection";
browserName = "Browser not detected!";
}
console.log.bind(
console,
`%cInformation: \n URL: ${diagnosticDomain} \n BrowserName: ${browserName} \n IsOnline: ${online} \n UA: ${userAgent}, `,
"background: gray;color:#FFF;padding:3px;border-radius: 0px; font-size:12px;"
);
setTimeout(
console.log.bind(
console,
`%c Information: \n Online: ${online} \n URL: ${diagnosticDomain} \n Browser: ${browserName} \n UA: ${userAgent}`,
"background: gray;color:#FFF;padding:5px;line-height: 26px; font-size:14px;"
)
)

}
log();

Expand Down
19 changes: 16 additions & 3 deletions public/resources/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ function switchProxy() {

localStorage.setItem("proxy", selectedOption);
var storedChoice = localStorage.getItem("proxy");
console.log(selectedOption);
}

function setDefaultsIfUndefined() {
if (localStorage.ADVcloak == undefined) localStorage.setItem("ADVcloak", "off")
if (localStorage.nogg == undefined) localStorage.setItem("nogg", "off")
if (localStorage.ABtitle == undefined) localStorage.setItem("ABtitle", "")
if (localStorage.ABfaviconURL == undefined) localStorage.setItem("ABfaviconURL", "")
if (localStorage.theme == undefined) localStorage.setItem("theme", "dark")
if (localStorage.proxy == undefined) localStorage.setItem("proxy", "uv")
}
setDefaultsIfUndefined();

function resetViews() {
changeCSS("--background-primary", "#191724", true);
changeCSS("--navbar-color", "#26233a", true);
Expand All @@ -27,7 +36,6 @@ function resetViews() {
return "All views reset";
}
function saveIc() {
console.log("Checked");
var notification = `
<div class="notification-container" id="notification-container">
<div class="notification notification-success">
Expand Down Expand Up @@ -66,8 +74,9 @@ function toggleNoGG() {
localStorage.setItem("nogg", "on");
}
}
var option2 = localStorage.getItem("ADVcloak");
var option2 = localStorage.ADVcloak;
function toggleClickoff() {
if (option2 == undefined) return console.error("ADVcloak key unset!")
if (option2 === "on") {
option2 = "off";
localStorage.setItem("ADVcloak", "off");
Expand All @@ -77,6 +86,10 @@ function toggleClickoff() {
}
}

function toggleSetting(localStorageKey, value) {
localStorage.setItem(localStorageKey, value);
}

window.onload = function () {
if (localStorage.getItem("ABfaviconURL") === null) {
} else if (localStorage.getItem("ABfaviconURL") == "") {
Expand Down
5 changes: 5 additions & 0 deletions public/style/privacy.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
body {
color: white;
font-family: "Roboto";
margin-left: 20px;
}
38 changes: 5 additions & 33 deletions src/index.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/options.html

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions src/privacy.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title></title>
<meta name="description" content="" />
<title>Nebula Privacy Policy</title>
<link rel="icon" type="image/x-icon" href="/images/logo.png"/>
<meta name="description" content="Privacy Policy for Nebula Services"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="" />
<link rel="stylesheet" href="style/main.css"/>
<link rel="stylesheet" href="style/privacy.css"/>
</head>

<body>
Expand All @@ -19,7 +17,7 @@ <h2>Privacy Policy</h2>
Your privacy is important to us. It is Nebula Services&#39; policy to
respect your privacy and comply with any applicable law and regulation
regarding any personal information we may collect about you, including
across our website, <a href="https://nebula.bio">https://nebula.bio</a>,
across our website, <a href="https://nebulaproxy.io">https://nebulaproxy.io</a>,
and other sites we own and operate.
</p>
<p>
Expand Down Expand Up @@ -59,7 +57,7 @@ <h4>Collection and Use of Information</h4>
</li>
<li>When you mention us on social media</li>
</ul>
<h3>Childrens Privacy</h3>
<h3>Children's Privacy</h3>
<p>
We do not aim any of our products or services directly at children under
the age of 13, and we do not knowingly collect personal information about
Expand Down

0 comments on commit f02a880

Please sign in to comment.