netptop / siteproxy

reverse proxy, online proxy, 反向代理,免翻墙访问Youtube/twitter/Google, 支持github和telegram web登录(请注意不要通过不信任的代理进行登录)。支持DuckDuckGo AI Chat(可免费访问chatGPT3.5和Claude3)
MIT License
1.69k stars 944 forks source link

Workers部署中,需要替换的几个地方(备忘) #92

Open SunsetMkt opened 2 months ago

SunsetMkt commented 2 months ago

代码:https://github.com/netptop/siteproxy/blob/master/build/worker.js

替换代理网站:http://localhost:5006 -> https://your-proxy-domain.name

替换密码:user22334455,为空时表示不需要密码

替换:

/function \w+\(\)\{(?:[^{}]*?\[.*?(?:,0x[^0x]*){20}.*?\][^{}]*?return (.*?))\}/

让它最后return 'https/www.netptop.com'

netptop commented 2 months ago

难为你了 :)

SunsetMkt commented 2 months ago

认识表达式的自己动手也能看出来,不认识的应该也不会逆向。 写这个式子比找函数还累呢 ;-)

nankaine commented 2 months ago

从https://github.com/netptop/siteproxy/issues/60 来的

搜了下关键字,没找到。。。。