All Projects → yi-Xu-0100 → cfw-scripts

yi-Xu-0100 / cfw-scripts

Licence: MIT license
Some scripts for parser in clash.for.windows.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cfw-scripts

Cuttlefish
Scripts for self-use, ⛔️ fork
Stars: ✭ 164 (+583.33%)
Mutual labels:  scripts, clash
ammlib
bash-library to provide high-level functions with whatever it has available. No hard-dependency: it'll do with what is available (or will fail fast)
Stars: ✭ 24 (+0%)
Mutual labels:  scripts
installer-scripts
💻 Bash scripts for doing installations in one go.
Stars: ✭ 17 (-29.17%)
Mutual labels:  scripts
me
dotfiles of various sorts; scripts, configuration files, modifications, etc.
Stars: ✭ 15 (-37.5%)
Mutual labels:  scripts
perl-scripts
A nice collection of day-to-day Perl scripts.
Stars: ✭ 92 (+283.33%)
Mutual labels:  scripts
harmony-ops
Harmony Ops Master Repository.
Stars: ✭ 36 (+50%)
Mutual labels:  scripts
R2S
基于 RubikWrt 的 NanoPi R2S 固件,每日自动更新插件和内核
Stars: ✭ 96 (+300%)
Mutual labels:  clash
npm-interactive-scripts
⚡️Fast Interactive CLI for npm scripts
Stars: ✭ 17 (-29.17%)
Mutual labels:  scripts
script-best-practices
Best practices for writing bash scripts
Stars: ✭ 15 (-37.5%)
Mutual labels:  scripts
SS-Rule-Snippet
搜集、整理、维护 Surge / Quantumult (X) / Shadowrocket / Surfboard / clash (Premium) 实用规则。
Stars: ✭ 8,975 (+37295.83%)
Mutual labels:  clash
OrientPy
Seismic station orientation tools
Stars: ✭ 29 (+20.83%)
Mutual labels:  scripts
dotstow
dotfiles managed with stow
Stars: ✭ 60 (+150%)
Mutual labels:  scripts
vsSolutionBuildEvent
🎛 Event-Catcher with variety of advanced Actions to service projects, libraries, build processes, runtime environment of the Visual Studio, MSBuild Tools, and …
Stars: ✭ 66 (+175%)
Mutual labels:  scripts
wireguard-tools
Wireguard helper scripts
Stars: ✭ 147 (+512.5%)
Mutual labels:  scripts
notev
✏️ Nyakku 的个人博客~
Stars: ✭ 14 (-41.67%)
Mutual labels:  scripts
rofi-scripts
Small scripts for rofi
Stars: ✭ 61 (+154.17%)
Mutual labels:  scripts
mIRC-Twitch-Scripts
Various scripts and games to use with a mIRC bot designed for Twitch.tv
Stars: ✭ 30 (+25%)
Mutual labels:  scripts
Examples
An complete examples and related support for various popular projects, and more.
Stars: ✭ 22 (-8.33%)
Mutual labels:  scripts
clash-compucolor2
Clash implementation of the Compucolor II home computer
Stars: ✭ 25 (+4.17%)
Mutual labels:  clash
gen-cisco
🧨 Generates Cisco scripts based on YAML files
Stars: ✭ 29 (+20.83%)
Mutual labels:  scripts

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].