Update libbrowz.js

This commit is contained in:
NodeMixaholic 2023-03-09 08:27:36 -06:00 committed by GitHub
parent 77c618d190
commit 7a562a963c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +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 = 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")
}
document.getElementById("txtUrl").value = ""
browserFrame.loadURL(url);