From b664e3f3f108ed4a6dab78b5cbae4f36ea26a3d4 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Sun, 26 May 2024 14:14:45 +0000 Subject: [PATCH] fix google news. --- libbrowz.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbrowz.js b/libbrowz.js index b60fd70..caa210d 100644 --- a/libbrowz.js +++ b/libbrowz.js @@ -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);