Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.28k stars 424 forks source link

Make userscript search site configurable #1749

Open wordpure opened 1 year ago

wordpure commented 1 year ago
  1. Currently, the redirected link when clicking the script search button is https://www.userscript.zone/?l={language-code}&utm_source=ext&utm_medium=cli&utm_campaign=firb#q={tab-url}. It doesn't show search results, you have to click the search button to jump to https://www.userscript.zone/search?l={language-code}&source=index&q={tab-url} to get it.

    That being the case, why not directly change the link that jumps when you click the script search button to https://www.userscript.zone/search?q={tab-url} (Userscript.Zone will intelligently select the interface language) to simplify the steps?

    图片

    图片

    图片

  2. Is it possible to add a option in the settings page, provide GreasyFork and OpenUserJS as additional script search engine choices, and even go further, allowing users to customize the URL of the script search engine to set the interface language, sorting method, etc.?

    GreasyFork:https://greasyfork.org/scripts/by-site/{tab-domain} OpenUserJS:https://openuserjs.org/?q={tab-domain}

derjanb commented 1 year ago

It doesn't show search results, you have to click the search button

This is intentional behavior. For privacy reasons the URL that should be searched for is part of the URL hash (#q=). That means the URL is not transferred to the server until you press the search button.

You can write a userscript to press the button for you. 😉

Is it possible to add a option in the settings page, provide GreasyFork and OpenUserJS as additional script search engine choices

Yes, sounds reasonable. Results will be less accurate, but that might be OK.