GreaysFork Enhanced WebHook Sync Settings

Quickly input script sync information and batch add language codes for multiple countries without the need to click

À partir de 2024-09-04. Voir la dernière version.

Auteur
人民的勤务员
Évaluations
0 0 0
Version
1.0
Créer
2024-09-04
Mis à jour
2024-09-04
Taille
27 ko
Compatibilité
Compatible avec Firefox Compatible avec Chrome Compatible avec Opera Compatible avec Safari Compatible avec Edge
Licence
MIT
S'applique à

GreasyFork - Enhanced WebHook Synchronization Settings

When setting up synchronization information on GreasyFork, you might often find that after submitting, the sync information hasn't been successfully saved, requiring you to re-enter it. This is one of the small issues with the website. To solve this problem, this script helps you quickly input script synchronization information and batch-add multiple country language codes without having to click on each checkbox and then go to the corresponding URL.

Features

  • Quick Input of Synchronization Information: No need to manually repeat input, allowing you to quickly set and sync information.
  • Batch Add Language Codes: Supports batch addition of multiple country/region language codes without the need to select each one individually.
  • Supports Multiple Formats: You can choose different URL formats for setup based on your needs.

Instructions (For more details, refer to the images below or the video above)

  • Script Management Page: On the script management page, an additional button is added at the bottom. After clicking it, you can manage the current script.
  • Website Top Navigation Bar: Adds an option to the navigation bar that, when clicked, automatically retrieves the WebHook synchronized scripts for multiple management.

Supported Formats

Currently, the following three formats are supported:

  1. Get Country Language from Markdown File: Only supports README_xxx.md. https://www.xxx.com/path/to/your/README_xxxxx.md
  2. Directly Set Corresponding Country Language (Simple Format): Supports other format files. https://www.xxx.com/path/to/your/filename.md##ko
  3. Directly Set Corresponding Country Language (Detailed Format): Supports other format files. https://www.xxx.com/path/to/your/filename.md##简体中文 (zh-CN)

Example code: If you have more options, you can extend it. let localeKey = url.includes('##') ? url.match(/##.*\((.*?)\)$/) || url.match(/##(.*?)$/) : url.match(/README_(.*?)\.md/)

Attention:

  • When submitting localized country information, there must be a header declaration such as//@ name: zh CN in the code, otherwise even if the submission is successful, it will still fail!
  • The script must exist! Otherwise, synchronization will fail,

Project and Feedback

sync.png nav.png

长期地址
遇到问题?请前往 GitHub 提 Issues。