Greasy Fork - Search other sites

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

< Opinie na Greasy Fork - Search other sites

Pytanie/komentarz

§
Napisano: 31-08-2015
Edytowano: 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' );
  }

Odpowiedz

Zaloguj się, by odpowiedzieć.