Skip to content

Automatically convert gfwlist to pac everyday

Notifications You must be signed in to change notification settings

Kshao123/gfwlist2pac

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gfwlist2pac

Automatically convert gfwlist to pac everyday

Just use https://raw.githubusercontent.com/Kshao123/gfwlist2pac/master/gfwlist.pac

Proxys / CDNs:

Usage

使用需知

PAC 文件目前通过 genpacgfwlist 生成,默认代理使用 clash127.0.0.1:7890,如需修改参考如下

# file => .github/workfolws/update.yml
- genpac --pac-proxy "SOCKS5 127.0.0.1:7890; SOCKS 127.0.0.1:7890; DIRECT;" --gfwlist-url - --gfwlist-local gfwlist/gfwlist.txt -o gfwlist.pac --user-rule-from user-rules.txt
+ genpac --pac-proxy "你的代理 DIRECT;" --gfwlist-url - --gfwlist-local gfwlist/gfwlist.txt -o gfwlist.pac --user-rule-from user-rules.txt

自定义 pac rules

fork 后可在 user-rules.txt 内根据规则(http://adblockplus.org,或 genpac)添加白名单和Proxy名单

自定义规则会优先处理,覆盖 gfwlist(如需修改可参考上述需知),合理配置 rules 可提升速度

E.g

# file => user-rules.txt
!proxy
||baidu.com
*.taobao.com

!no proxy
@@||google.com
@@||openai.com

更新

fork 之后需要更新,需要开启 Actions 功能,默认每天更新,或 push

on:
  push:
    branches:
      - master
  # 更新时间 每日 19:37
  schedule:
    - cron: '37 19 * * *'

About

Automatically convert gfwlist to pac everyday

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%