Merge pull request #8 from Avad3/main
Fix Osana being the default proxy
This commit is contained in:
commit
275a6fd445
3 changed files with 2 additions and 5 deletions
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue