From bdd1bbc9806e674a186d64614bd6b4dc4643cca3 Mon Sep 17 00:00:00 2001
From: Avad3 <65318266+Avad3@users.noreply.github.com>
Date: Thu, 1 Sep 2022 12:55:29 -0400
Subject: [PATCH] Fix Osana being the default proxy
---
static/options/index.html | 3 ---
static/osana/osana.config.js | 2 +-
static/resources/nebula.bundle.js | 2 +-
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/static/options/index.html b/static/options/index.html
index 6024d58..a5b7579 100644
--- a/static/options/index.html
+++ b/static/options/index.html
@@ -26,9 +26,6 @@
-
-
-
diff --git a/static/osana/osana.config.js b/static/osana/osana.config.js
index d28be5c..b4813af 100644
--- a/static/osana/osana.config.js
+++ b/static/osana/osana.config.js
@@ -1,2 +1,2 @@
-(()=>{"use strict";self.__osana$config={bare:`${location.origin}/bare/`,prefix:"/service/~osana/",codec:self.__osana$bundle.codecs.none,files:{config:"/osana.config.js",client:"/osana.client.js",bundle:"/osana.bundle.js",worker:"/osana.worker.js"},blacklist:[/^(www\.)?netflix\.com/,/^accounts\.google\.com/]}})();
+(()=>{"use strict";self.__osana$config={bare:`${location.origin}/bare/`,prefix:"/service/~osana/",codec:self.__osana$bundle.codecs.none,files:{config:"/osana/osana.config.js",client:"/osana/osana.client.js",bundle:"/osana/osana.bundle.js",worker:"/osana/osana.worker.js"},blacklist:[/^(www\.)?netflix\.com/,/^accounts\.google\.com/]}})();
//# sourceMappingURL=osana.config.js.map
\ No newline at end of file
diff --git a/static/resources/nebula.bundle.js b/static/resources/nebula.bundle.js
index 12ac8f5..076e9ae 100644
--- a/static/resources/nebula.bundle.js
+++ b/static/resources/nebula.bundle.js
@@ -64,7 +64,7 @@ window.addEventListener('load', () => {
let url = value.trim();
if (!isUrl(url)) url = 'https://www.google.com/search?q=' + url;
if (!(url.startsWith('https://') || url.startsWith('http://'))) url = 'http://' + url;
- let redirectTo = localStorage.getItem('proxy') === 'uv' ? __uv$config.prefix + __uv$config.encodeUrl(url) : __osana$config.prefix + __osana$config.codec.encode(url);
+ let redirectTo = proxy ? __uv$config.prefix + __uv$config.encodeUrl(url) : __osana$config.prefix + __osana$config.codec.encode(url);
const option = localStorage.getItem('nogg');
if (option === 'on') {
stealthEngine(redirectTo);