-
Generate
index.jsgo install golang.org/dl/go1.19.13@latest # gopherjs v1.19.0-beta1 needs go 1.19.13 go1.19.13 download go1.19.13 install github.com/gopherjs/gopherjs@v1.19.0-beta1 export GOPHERJS_GOROOT="$(go1.19.13 env GOROOT)" cd bridge/bridgejs gopherjs build . # generate bridgejs.js and bridgejs.js.map, or use `gopherjs build -m .` to generate minified ones
-
Use in
v2ray-core-
go mod edit -replacegithub.com/v2fly/BrowserBridgewith this module. (optional) -
replace stock
release/extra/browserforwarder/index.jswith the generatedbridgejs.js. -
replace the SHA256 hash of
browserforwarder/index.jsincommon/platform/securedload/embedded.gowith the SHA256 hash of the generatedbridgejs.js. -
replace stock
index.jsinv2ray-extra.zipwith the generatedbridgejs.js.
-
This repository was archived by the owner on Oct 30, 2024. It is now read-only.