mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 13:30:00 -04:00
Merge pull request #99 from wearrrrr/polishing-patch
General polishing changes to Nebula
This commit is contained in:
commit
f02a8802fc
6 changed files with 56 additions and 65 deletions
|
@ -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(
|
||||
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
@ -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">
|
||||
|
@ -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");
|
||||
|
@ -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") == "") {
|
||||
|
|
5
public/style/privacy.css
Normal file
5
public/style/privacy.css
Normal 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
|
@ -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>
|
||||
|
@ -19,7 +17,7 @@
|
|||
Your privacy is important to us. It is Nebula Services' 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>
|
||||
|
@ -59,7 +57,7 @@
|
|||
</li>
|
||||
<li>When you mention us on social media</li>
|
||||
</ul>
|
||||
<h3>Children’s 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue