Fix Osana being the default proxy

This commit is contained in:
Avad3 2022-09-01 12:55:29 -04:00
parent 5e7dde2534
commit bdd1bbc980
3 changed files with 2 additions and 5 deletions

View file

@ -26,9 +26,6 @@
</head> </head>
<body> <body>
<!-- Scripts -->
<script src="../uv/uv.bundle.js"></script>
<script src="../uv/uv.config.js"></script>
<div> <div>

View file

@ -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 //# sourceMappingURL=osana.config.js.map

View file

@ -64,7 +64,7 @@ window.addEventListener('load', () => {
let url = value.trim(); let url = value.trim();
if (!isUrl(url)) url = 'https://www.google.com/search?q=' + url; if (!isUrl(url)) url = 'https://www.google.com/search?q=' + url;
if (!(url.startsWith('https://') || url.startsWith('http://'))) url = 'http://' + 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'); const option = localStorage.getItem('nogg');
if (option === 'on') { if (option === 'on') {
stealthEngine(redirectTo); stealthEngine(redirectTo);