Update libbrowz.js

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

View file

@ -6,8 +6,8 @@ function go() {
if (url.includes("youtube.com") || url.includes("youtu.be")) { if (url.includes("youtube.com") || url.includes("youtu.be")) {
url = url.replaceAll("youtube.com", "yewtu.be") url = url.replaceAll("youtube.com", "yewtu.be")
url = url.replaceAll("youtu.be", "yewtu.be") url = url.replaceAll("youtu.be", "yewtu.be")
} else if (url.includes("google.com")) { } else if (url.includes("google.com/?q")) {
url = url.replaceAll("google.com", "startpage.com") url = url.replaceAll("google.com/?q", "startpage.com/?q")
} }
document.getElementById("txtUrl").value = "" document.getElementById("txtUrl").value = ""
browserFrame.loadURL(url); browserFrame.loadURL(url);