Fixed a bug in search and maps

This commit is contained in:
ManeraKai 2022-03-13 02:24:20 +03:00
parent 1deb226c8a
commit 6e8f9b2f66
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 3 additions and 0 deletions

View File

@ -235,6 +235,9 @@ function initWhoogleCookies() {
function redirect(url) {
if (disable) return;
if (!targets.some((rx) => rx.test(url.href))) return;
if (url.searchParams.has('tbm')) return;
if (!url.searchParams.has('q') && url.pathname != '/') return;
let randomInstance;
let path;