Enhance subscriptions with Merge and Script

Merge and Script are signature Clash Verge features: they modify the final config as an overlay, so your customizations survive subscription updates.

The two enhancement methods

Merge (use this first): declarative YAML merging. prepend-rules / append-rules insert rules at the head or tail of the rule list, and same-named fields override the subscription values — covering rules, DNS tweaks, port changes, and most other needs.

Script: programmatic modification in JavaScript. Export a main(config) function and transform the config object freely — bulk-rename nodes, add or remove proxy groups conditionally, any complex logic.

Sponsored Where does the subscription link come from? Our partner provider gives you 1 GB of high-speed Hong Kong data at signup — import it in one click. Get high-speed nodes

Where to find them

  1. Open the Profiles page and locate the Merge and Script cards in the global extension area.
  2. Right-click a card and choose “Open File” to edit.
  3. Saving regenerates the config immediately; right-click the active subscription → “Open File” to inspect the merged result.