Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

替换 combo 中的某几个 js #5

Open
eric-gitta-moore opened this issue Aug 14, 2024 · 3 comments
Open

替换 combo 中的某几个 js #5

eric-gitta-moore opened this issue Aug 14, 2024 · 3 comments

Comments

@eric-gitta-moore
Copy link

例如:https://i.cdn.com/??x.js,y.js,z.js

@eric-gitta-moore
Copy link
Author

插件有没有可能实现把 combo 拆开之后再走一遍 whistle 规则,最后合并 combo。对请求发起方(例如浏览器)呈现出透明代理的效果。

@eric-gitta-moore
Copy link
Author

似乎可以用 https://github.com/wayfind/flex-combo 配合 whistle 实现。但是重新解析一边 whistle 规则不知道咋弄。倒是可以另外在 values 里面写一个 yaml 作为插件的规则

@eric-gitta-moore
Copy link
Author

我已经解决了,感谢 whistle.combo

# sample 1, for https://www.taobao.com/
# sourceURL: https://d.alicdn.com/alilog/??aplus/1.13.5/aplus_pc.js,aplus/1.13.5/plugin/aplus_spmact.js?v=20240718161046
# target:
#   - aplus/1.13.5/aplus_pc.js -> not modified
#   - aplus/1.13.5/plugin/aplus_spmact.js -> https://d.alicdn.com/alilog/aplus/1.13.2/plugin/aplus_spmact.js

/.+.(ali)cdn.com/i combo-url://{com} resCors://*
```com
mapping:
  /aplus/1.13.5/plugin/aplus_spmact.js/i: https://d.alicdn.com/alilog/aplus/1.13.2/plugin/aplus_spmact.js
```

https://github.com/eric-gitta-moore/whistle.combo-url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant