Greasy Fork - Search other sites

Add search option to search on Userscripts.org and *cough* OpenUserJS.org.

< Spätná väzba na Greasy Fork - Search other sites

Otázka/komentár

§
Pridaný: 31.08.2015
Upravený: 31.08.2015

Very useful script. Thank you. Just a few things to fix

Very useful script. Thank you.

Just a few things:

  1. Searching in OpenUserjs.org is not
    via https://openuserjs.org/search/
    but https://openuserjs.org/?q=
  2. Userscripts.org does no longer exist.
    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:

  { 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;

and insert after line 66:

  if (searchURL2) {
    aEvent.preventDefault();
    location.assign(searchURL2 + encodeURIComponent(query) +'+site:userscripts-mirror.org' );
  }

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.