Skip to content

Instantly share code, notes, and snippets.

@XueshiQiao
Created March 10, 2026 02:42
Show Gist options
  • Select an option

  • Save XueshiQiao/a6ac6c4f74cfdbcfa095356559719d73 to your computer and use it in GitHub Desktop.

Select an option

Save XueshiQiao/a6ac6c4f74cfdbcfa095356559719d73 to your computer and use it in GitHub Desktop.
qclaw.js
// add these into you Surge config file.
//
//[MITM]
//hostname = jprx.m.qq.com
//
//[Script]
//qclaw_invite_bypass = type=http-response,pattern=^https:\/\/jprx\.m\.qq\.com\/data\/4056\/forward,requires-body=1,max-size=0,script-path=qclaw_bypass.js
// qclaw_bypass.js
let mockResponse = {
ret: 0,
common: {
code: 0,
message: "success"
},
data: {
already_verified: true
},
resp: {
data: {
already_verified: true
},
common: {
code: 0,
message: "success"
}
}
};
// Return the mocked response to the client
$done({
status: 200,
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(mockResponse)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment