GreaysFork Enhanced WebHook Sync Settings

人民的勤务员
2024-09-04T04:12:18Z

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

简体中文 | English | 한국어 | Tiếng Việt | 繁體中文
👆️access GitHub Readme file on for a better experience。

GitHubView the serviceman’s scriptGithub:@ChinaGodMan
GreasyForkView the serviceman’s script
View the serviceman’s script on the current page

⭐If the script helps you,Can light up the stars to encourage⭐

Recommended use：

💡 Tip: The script manager and browser listed above do not represent all
The script runs normally in the following environment

GreaysFork EnhanceWebHookSync settings

「 GreaysFork Quickly enter script synchronization information，And add language codes for multiple countries in batches，Instead of clicking the selection boxes one by one and going to the corresponding URL。 」

Download:Github | ⭐Greasy Fork

Update records

🛠️ GreaysForkEnhancedWebHook Update log

📅 2024/9/15 10:53 - Ver 1.1.1.0

repair: • Buttonhover active focusPut into parent class.Sync-Modal

📅 2024/9/5 04:29 - Ver 1.1.0.0

New: • Return after each submission GreasyFork Synchronization prompts。

📅 2024/9/4 11:52 - Ver 1.0.0.0

Initial version: • Welcome。

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##simplebodymiddlearts (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

Project Page: GitHub Repository

Support and Issues: Report Issues