Skip to content

Commit 03476ee

Browse files
committed
Debug
1 parent d3f51d7 commit 03476ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

metasearch-hacks.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Hacks for the cute metasearch engine https://github.com/mat-1/metasearch2
3-
// @version 0.2
3+
// @version 0.3
44
// @downloadURL https://userscripts.codonaft.com/metasearch-hacks.user.js
55
// ==/UserScript==
66

@@ -22,7 +22,7 @@ const images = body.querySelectorAll('div.image-result');
2222
if (REDIRECT_ON_FAILURE && q && images.length === 0 && !body.querySelector('div.search-result')) {
2323
const categories = params.get('tab') === 'images' ? 'images' : 'general';
2424
const newParams = new URLSearchParams({ q, categories });
25-
window.location.replace(`https://codonaft.com/searxng#${params}`);
25+
window.location.replace(`https://codonaft.com/searxng#${newParams}`);
2626
}
2727

2828
if (FIX_IMAGES) {

0 commit comments

Comments
 (0)