From 619f771b4a47a0b9c68eade8b5e0fdb8cb3724b8 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 6 Mar 2022 03:11:48 +0300 Subject: [PATCH] strip www for greasyfork search --- popup/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup/search.js b/popup/search.js index 0bdffecb..559a6a4d 100644 --- a/popup/search.js +++ b/popup/search.js @@ -91,7 +91,7 @@ `${URLS.usw}search?q=${catQ}` || where === 'gf' && 'https://greasyfork.org/' + ($.root.lang.split('-')[0] || 'en') + - `/scripts/by-site/${tryURL(tabURL).hostname}?language=css${add('&q=', q)}`; + `/scripts/by-site/${tryURL(tabURL).hostname.replace(/^www\./, '')}?language=css${add('&q=', q)}`; Events.openURLandHide.call({href}, event); };