fix google news.

This commit is contained in:
Sam Sneed 2024-05-26 14:14:45 +00:00 committed by GitHub
parent c57bcb26f9
commit b664e3f3f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,12 +8,12 @@ function go() {
url = url.replaceAll("youtu.be", "yewtu.be")
} else if (url.includes("google.com/?q")) {
url = url.replaceAll("google.com/?q", "startpage.com/?q")
} else if (url.includes("google.com") && !url.includes("maps") && !url.includes("news") && !url.includes("webstore") && !url.includes("mail")) {
url = url.replaceAll("google.com", "startpage.com")
} else if (url.includes("https://news.google.com")) {
url = url.replaceAll("https://news.google.com", "http://68k.news")
} else if (url.includes("news.google.com")) {
url = url.replaceAll("news.google.com", "68k.news")
} else if (url.includes("google.com") && !url.includes("maps") && !url.includes("news") && !url.includes("webstore") && !url.includes("mail")) {
url = url.replaceAll("google.com", "startpage.com")
}
document.getElementById("txtUrl").value = ""
browserFrame.loadURL(url);