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

请问使用说明 #1

Open
pandamac opened this issue Feb 23, 2024 · 1 comment
Open

请问使用说明 #1

pandamac opened this issue Feb 23, 2024 · 1 comment

Comments

@pandamac
Copy link

请问使用说明

pnpm start
server 等待接受body值

whistle安装后单独
可以挂代理 127.0.0.1:8899

但是如何执行 search(xxx) 代码
如何在指定网址上运行?

@zhifengle
Copy link
Owner

zhifengle commented Feb 24, 2024

配置好 127.0.0.1:8899 后,打开 http://127.0.0.1:8899/#rules
以 cn.bing.com 为例子,配置如下

cn.bing.com hook-server://hook

配置好之后,浏览器打开 https://cn.bing.com ,F12打开开发者工具。控制台现在能使用 search('xxx') 了

具体原理就是:访问 cn.bing.com,会访问中间代理 127.0.0.1:8899,如果配置了 cn.bing.com hook-server://hook
中间代理响应请求时,会执行本项目的 hook-server 注入 JS 代码。

whistle 的规则参考

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

2 participants