Merge pull request #99 from wearrrrr/polishing-patch

General polishing changes to Nebula
This commit is contained in:
Green! 2023-04-27 11:22:26 -04:00 committed by GitHub
commit f02a8802fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 56 additions and 65 deletions

View file

@ -208,15 +208,15 @@ function log() {
setTimeout( setTimeout(
console.log.bind( console.log.bind(
console, console,
"%cWelcome To Nebula", "%cWelcome To Nebula!",
"background: #3F51B5;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:30px;" "background: #3F51B5;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:24px;"
) )
); );
setTimeout( setTimeout(
console.log.bind( console.log.bind(
console, console,
"%cIf you are seeing this, Nebula's main script has succesfully loaded!", "%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:12px;" "background: green;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:16px;"
) )
); );
setTimeout( setTimeout(
@ -231,23 +231,26 @@ function log() {
let browserName; let browserName;
let diagnosticDomain = window.location.href; let diagnosticDomain = window.location.href;
if (userAgent.match(/chrome|chromium|crios/i)) { if (userAgent.match(/chrome|chromium|crios/i)) {
browserName = "chrome"; browserName = "Chrome";
} else if (userAgent.match(/firefox|fxios/i)) { } else if (userAgent.match(/firefox|fxios/i)) {
browserName = "firefox"; browserName = "Firefox";
} else if (userAgent.match(/safari/i)) { } else if (userAgent.match(/safari/i)) {
browserName = "safari"; browserName = "Safari";
} else if (userAgent.match(/opr\//i)) { } else if (userAgent.match(/opr\//i)) {
browserName = "opera"; browserName = "Opera";
} else if (userAgent.match(/edg/i)) { } else if (userAgent.match(/edg/i)) {
browserName = "edge"; browserName = "Edge";
} else { } else {
browserName = "No browser detection"; browserName = "Browser not detected!";
} }
setTimeout(
console.log.bind( console.log.bind(
console, console,
`%cInformation: \n URL: ${diagnosticDomain} \n BrowserName: ${browserName} \n IsOnline: ${online} \n UA: ${userAgent}, `, `%c Information: \n Online: ${online} \n URL: ${diagnosticDomain} \n Browser: ${browserName} \n UA: ${userAgent}`,
"background: gray;color:#FFF;padding:3px;border-radius: 0px; font-size:12px;" "background: gray;color:#FFF;padding:5px;line-height: 26px; font-size:14px;"
); )
)
} }
log(); log();

View file

@ -8,9 +8,18 @@ function switchProxy() {
localStorage.setItem("proxy", selectedOption); localStorage.setItem("proxy", selectedOption);
var storedChoice = localStorage.getItem("proxy"); 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() { function resetViews() {
changeCSS("--background-primary", "#191724", true); changeCSS("--background-primary", "#191724", true);
changeCSS("--navbar-color", "#26233a", true); changeCSS("--navbar-color", "#26233a", true);
@ -27,7 +36,6 @@ function resetViews() {
return "All views reset"; return "All views reset";
} }
function saveIc() { function saveIc() {
console.log("Checked");
var notification = ` var notification = `
<div class="notification-container" id="notification-container"> <div class="notification-container" id="notification-container">
<div class="notification notification-success"> <div class="notification notification-success">
@ -66,8 +74,9 @@ function toggleNoGG() {
localStorage.setItem("nogg", "on"); localStorage.setItem("nogg", "on");
} }
} }
var option2 = localStorage.getItem("ADVcloak"); var option2 = localStorage.ADVcloak;
function toggleClickoff() { function toggleClickoff() {
if (option2 == undefined) return console.error("ADVcloak key unset!")
if (option2 === "on") { if (option2 === "on") {
option2 = "off"; option2 = "off";
localStorage.setItem("ADVcloak", "off"); localStorage.setItem("ADVcloak", "off");
@ -77,6 +86,10 @@ function toggleClickoff() {
} }
} }
function toggleSetting(localStorageKey, value) {
localStorage.setItem(localStorageKey, value);
}
window.onload = function () { window.onload = function () {
if (localStorage.getItem("ABfaviconURL") === null) { if (localStorage.getItem("ABfaviconURL") === null) {
} else if (localStorage.getItem("ABfaviconURL") == "") { } else if (localStorage.getItem("ABfaviconURL") == "") {

5
public/style/privacy.css Normal file
View file

@ -0,0 +1,5 @@
body {
color: white;
font-family: "Roboto";
margin-left: 20px;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,16 +1,14 @@
<!DOCTYPE html> <!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> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title></title> <title>Nebula Privacy Policy</title>
<meta name="description" content="" /> <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" /> <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> </head>
<body> <body>
@ -19,7 +17,7 @@
Your privacy is important to us. It is Nebula Services&#39; policy to Your privacy is important to us. It is Nebula Services&#39; policy to
respect your privacy and comply with any applicable law and regulation respect your privacy and comply with any applicable law and regulation
regarding any personal information we may collect about you, including 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. and other sites we own and operate.
</p> </p>
<p> <p>
@ -59,7 +57,7 @@
</li> </li>
<li>When you mention us on social media</li> <li>When you mention us on social media</li>
</ul> </ul>
<h3>Childrens Privacy</h3> <h3>Children's Privacy</h3>
<p> <p>
We do not aim any of our products or services directly at children under 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 the age of 13, and we do not knowingly collect personal information about