NovaAppsInc / fracital-proxy

Another proxy website made with the UltraViolet proxy by TitaniumNetwork
GNU General Public License v3.0
43 stars 360 forks source link

Add availability to a search engine redirection #1

Closed CAESARSNOOT closed 2 years ago

CAESARSNOOT commented 2 years ago

Search engine redirection

Working on adding availability to search the string that is the search bar that isn't a website i.e. No One Like You by Scorpions will redirect to a search engine with the search for No One Like You by Scorpions

Nebelung-Dev commented 2 years ago

It's built in: https://fracital.org/kb/gateway?url=No One Like You by Scorpions

CAESARSNOOT commented 2 years ago

It's built in: https://fracital.org/kb/gateway?url=No One Like You by Scorpions

yeah but detecting if if not a url then send user to that page, I'm a bit stupid lol.

boomermath commented 2 years ago

It can be done pretty easily. Since valid url's are not allowed to have spaces in them, if the value in the url bar has a spaces + no .com ending etc, then its a query which can be encoded with something like https://google.com/search?q=${encodeURIComponent(query)}

Nebelung-Dev commented 2 years ago

https://fracital.org/kb/gateway?url=No%20One%20Like%20You%20by%20Scorpions