MyGit

yi-Xu-0100/cfw-scripts

Fork: 2 Star: 34 (更新于 2024-11-23 01:54:42)

license: MIT

Language: JavaScript .

Some scripts for parser in clash.for.windows.

最后发布版本: v0.0.1 ( 2020-11-18 14:13:50)

官方网址 GitHub网址

CFW Scripts

sync2gitee(list) Github last commit Github latest release Github license

views views per week clones clones per week

Some scripts for parser in Fndroid/clash_for_windows_pkg.

Only for studying and testing usage, and delete code yourself with the usage completed. Thanks! 😜

🚀 Usage

📝 setup repository with git and npm

The scripts used mikaelbr/node-notifier for fitting windows notification persist in action center.

git clone https://github.com/yi-Xu-0100/cfw-scripts.git
npm ci
npm run start

The notify will be test and copy ./lib/variables.yml and ./lib/rule-providers.yml to ./scripts/variables.yml and ./scripts/rule-providers.yml. You can set variables in ./scripts/variables.yml and set personal rule in ./scripts/rule-providers.yml, and the files will include in .gitignore.

📝 Setup parser for change-keys.js

The script was used to change keys for fitting breaking changes in clash v1.0.0.

You can set the parsers with reg to fit the all link without string www.example.com.

parsers:
  - reg: ^((?!www\.example\.com).)*$
    file: 'D:/Applications/cfw-scripts/scripts/change-keys.js' #set the path of `change-keys.js`.

📝 Setup parser for change-rules.js

The script will use rule-providers with Loyalsoldier/clash-rules.

You can set the parsers with reg to fit the all link without string www.example.com.

parsers:
  - reg: ^((?!www\.example\.com).)*$
    file: 'D:/Applications/cfw-scripts/scripts/change-rules.js' #set the path of `change-rules.js`.

📝 Setup parser for merge-nodes.js

The script should use behind change-rules.js. The variables need to be set in ./scripts/variables.yml.

You can set the parsers with reg to fit the all link without string www.example.com.

parsers:
  - reg: ^((?!www\.example\.com).)*$
    file: 'D:/Applications/cfw-scripts/scripts/merge-nodes.js' #set the path of `merge-nodes.js`.

📝 Setup parser for auto-check-in.js

The script was used to automatic check in. The variables need to be set in ./scripts/variables.yml.

You can set the parsers with reg to fit the all link without string www.example.com.

parsers:
  - reg: ^((?!www\.example\.com).)*$
    file: 'D:/Applications/cfw-scripts/scripts/auto-check-in.js' #set the path of `auto-check-in.js`.

It will add fake node into proxies and add CHECK-INFO into the end of proxy-groups. Be careful to edit the subscription later.

📝 Setup parser for subs-info-parser.js

The script was used to get subscription information of domains. The variables need to be set in ./scripts/variables.yml.

You can set the parsers with reg to fit the all link without string www.example.com.

parsers:
  - reg: ^((?!www\.example\.com).)*$
    file: 'D:/Applications/cfw-scripts/scripts/subs-info-parser.js' #set the path of `subs-info-parser.js`.

It will add fake node into proxies and add SUBS-INFO into the end of proxy-groups. Be careful to edit the subscription later.

You can set current and expire in ./scripts/variables.yml with subs_info_config. The current for controlling whether the subscription information of current URL showing, and The expire for controlling whether the expiry time of subscription information showing.(The subscription information of domains in variables will all show. See inexample)

📝 Setup Enhanced Tray for info.js

The script was used to get CPU and memory usage. And it will display the two pieces of information in a separate line.

📝 Append traffic data with subscription-userinfo.js

The script was used to get subscription-userinfo from subscription url with different ua of User-Agent:Quantumult%20X/1.0.23 (iPhone12,3; iOS 14.6).

You can set the parser with reg to fit the all link after other parser.

parsers:
  - reg: ^.*$
    file: 'D:/Applications/cfw-scripts/scripts/subscription-userinfo.js' #set the path of `subscription-userinfo.js`.

📝 Scripts

name description variables
change-keys.js fit new version key
change-rules.js add personal rule
merge-nodes.js merge nodes merge-nodes
subs-info-parser.js get subscription information subs-info-parser
auto-check-in.js auto check in auto-check-in
subscription-userinfo.js get subscription information

🍱 Libraries

name description dependencies
variables.json variables for scripts
notify.js notify for windows mikaelbr/node-notifier
rule-providers.json template for rule-providers Loyalsoldier/clash-rules

🔊 CHANGELOG

📄 LICENSE

🎉 Thanks

最近版本更新:(数据更新于 2024-09-04 23:15:12)

2020-11-18 14:13:50 v0.0.1

主题(topics):

cfw-only, clash, javascript, scripts

yi-Xu-0100/cfw-scripts同语言 JavaScript最近更新仓库

2024-11-22 16:46:00 meshery/meshery

2024-11-21 23:03:24 bia-pain-bache/BPB-Worker-Panel

2024-11-21 22:46:48 MHSanaei/3x-ui

2024-11-21 07:00:59 nodejs/node

2024-11-21 00:49:46 FortAwesome/Font-Awesome

2024-11-18 14:26:02 projectdiscovery/nuclei-templates