From 1fb7d3c6fc87c0df9aecb6cd460fb008834f0d73 Mon Sep 17 00:00:00 2001 From: CountBleck Date: Sun, 4 Sep 2022 20:38:04 -0700 Subject: [PATCH] Switch Cyclone's prefix from /service to /service/next If a user navigates to a UV link directly, without the service worker registered, Cyclone's bare server will take over and interpret the URL as http://go/..., which you definitely didn't want, unless you happen to work at Google :P --- static/customBare.mjs | 2 +- static/resources/nebula.bundle.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/customBare.mjs b/static/customBare.mjs index bc14db5..e5bb0dc 100644 --- a/static/customBare.mjs +++ b/static/customBare.mjs @@ -7,7 +7,7 @@ import filter from './cyclone/filter.cyclone.mjs'; import * as security from './cyclone/security.cyclone.mjs'; const config = { - prefix: "/service", + prefix: "/service/next", requireSSL: true, // Requires SSL? defaultHeaders: { 'X-Content-Type-Options': 'no-sniff', diff --git a/static/resources/nebula.bundle.js b/static/resources/nebula.bundle.js index ea45401..300199e 100644 --- a/static/resources/nebula.bundle.js +++ b/static/resources/nebula.bundle.js @@ -77,7 +77,7 @@ window.addEventListener('load', () => { let url = value.trim(); if (!isUrl(url)) url = 'www.google.com/search?q=' + url; if (!(url.startsWith('https://') || url.startsWith('http://'))) url = 'http://' + url; - let redirectTo = '/service/' + url; + let redirectTo = '/service/next/' + url; const option = localStorage.getItem('nogg'); if (option === 'on') { stealthEngine(redirectTo);