strip www for greasyfork search

This commit is contained in:
tophf 2022-03-06 03:11:48 +03:00
parent 9ed550c882
commit 619f771b4a

View File

@ -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);
};