Add search option to search on Userscripts.org and *cough* OpenUserJS.org.
< Spätná väzba na Greasy Fork - Search other sites
Very useful script. Thank you. Just a few things to fix
Very useful script. Thank you.
Just a few things:
https://openuserjs.org/search/
https://openuserjs.org/?q=
Here are my changes: lines 51-52 to become:
{ name: "OpenUserJS", url: "https://openuserjs.org/?q=" }, { name: "Userscripts.org", url: "https://www.google.com/search?q=" }
line 59 to become: case 2: searchURL2 = sites[1].url; break;
case 2: searchURL2 = sites[1].url; break;
and insert after line 66:
if (searchURL2) { aEvent.preventDefault(); location.assign(searchURL2 + encodeURIComponent(query) +'+site:userscripts-mirror.org' ); }
Aby ste mohli pridať odpoveď, prihláste sa.
Very useful script. Thank you. Just a few things to fix
Very useful script. Thank you.
Just a few things:
via
https://openuserjs.org/search/
but
https://openuserjs.org/?q=
Userscripts-mirror.org doesn't offer searching (nor standard not even via tags).
So, the only solution would be Google Search.
(therefore, it's better to make it the last of the 3 options)
Here are my changes:
lines 51-52 to become:
line 59 to become:
case 2: searchURL2 = sites[1].url; break;
and insert after line 66: