操作方法
1.获得AFF ID, 进入 Cloudflare WARP ,点击右上角的「设置」按钮,进入“更多设置”——“诊断” , 客户端配置里面的 ID 即为“AFF ID” 。
- 下载js脚本,链接是https://github.com/yyuueexxiinngg/some-scripts/blob/master/cloudflare/cloudflare-warp-plus-aff.js,修改YOUR REFERRER ID为获得的AFFID,timestoloop和retrytimes可以任意修改,代码如下:
// Fake register for referrer to get warp plus bandwidth
const referrer = "YOUR REFERRER ID";
const timesToLoop = 10;
const retryTimes = 5;
const https = require("https");
const zlib = require("zlib");
async function init() {
for (let i = 0; i < timesToLoop; i++) {
if (await run()) {
console.log(i + 1, "OK");
} else {
console.log(i + 1, "Error");
for (let r = 0; r < retryTimes; r++) {
if (await run()) {
console.log(i + 1, "Retry #" + (r + 1), "OK");
break;
} else {
console.log(i + 1, "Retry #" + (r + 1), "Error");
if (r === r