GreasyFork 语言筛选器移除器

此脚本修改 GreasyFork 上的 URL,以始终显示所有语言的脚本,除非用户手动选择其他语言。

目前为 2023-05-30 提交的版本。查看 最新版本

作者
mkpoli
评分
0 0 0
版本
0.1.0
创建于
2023-05-30
更新于
2023-05-30
大小
4.1 KB
许可证
MIT
适用于

This UserScript, named GreasyFork Language Filter Remover, is designed to modify the URL on the GreasyFork website. Its primary function is to make sure scripts from all languages are displayed by default, unless a user manually selects to filter by a specific language.

This modification is applied to any search query URLs on the scripts page of GreasyFork.

How it works

When you navigate to a URL of the form https://gf.qytechs.cn/*/scripts?q=*, the script checks if the filter_locale parameter is present in the URL. If it's absent, the script will automatically append filter_locale=0 to the URL, refreshing the page to show scripts from all languages.

The script will remember if you manually click on the "Show results only from a specific language" link (which changes depending on the selected language), by storing a flag in the browser's session storage. The script won't add filter_locale=0 to the URL during the current browsing session once that flag is set, allowing you to browse scripts in your chosen language without being redirected.

Usage

Just install the script using a userscript manager like Tampermonkey or Greasemonkey, and it'll run automatically on GreasyFork.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址