Try to fix Google Querys
This commit is contained in:
parent
d484a3557b
commit
981d139755
1 changed files with 6 additions and 1 deletions
|
@ -51,7 +51,12 @@ function go() {
|
|||
url = url.replaceAll("youtube.com", "invidious.nerdvpn.de")
|
||||
url = url.replaceAll("youtu.be", "invidious.nerdvpn.de")
|
||||
} else if (url.includes("google.com/?q")) {
|
||||
url = url.replaceAll("google.com/?q", "startpage.com/?q")
|
||||
// Define the regex pattern
|
||||
const pattern = /https:\/\/www\.google\.com\/search\?q=([^&]+)/;
|
||||
// Define the replacement URL
|
||||
const replacement = "https://search.sparksammy.com/search.php?q=$1&p=0&t=0";
|
||||
// Perform the replacement
|
||||
url = url.replace(pattern, replacement);
|
||||
} else if (url.includes("https://news.google.com")) {
|
||||
url = url.replaceAll("https://news.google.com", "http://68k.news")
|
||||
} else if (url.includes("google.com") && !url.includes("maps") && !url.includes("news") && !url.includes("webstore") && !url.includes("drive") && !url.includes("docs") && !url.includes("sheets") && !url.includes("slides") && !url.includes("mail")) {
|
||||
|
|
Loading…
Reference in a new issue