Discuz!源码的论坛进行签到涨积分脚本

JavaScript
技之树 2021-10-2

2491 0

原理

  通过访问他人获得积分

使用方法

  打开F12,将下方的JS代码运行即可。

代码

(function() {
  // 开始从哪一个用户开始访问,论坛的UID
  const userIdStart = 1
  // 最多访问几个用户
  const maxCheckNum = 10
  // 访问一个用户后,休息几秒
  const restSeconds = 3

  let counting = 0

  autoCheckIn()

  function autoCheckIn() {
    const userProfileUrl = `https://论坛地址/space-uid-${userIdStart + counting++}.html`
    console.log(`正在访问第${counting}个用户: ${userProfileUrl}`)
    const img = new Image()
    img.src = userProfileUrl    
    if (counting < maxCheckNum) {
      setTimeout(autoCheckIn, restSeconds * 1000)
    }
  }
})()

function load(i) {
    var img = new Image();
    img.onerror = function () {
        img.onerror = null;
        console.log("已访问", i, "个用户的空间");
        if (i < 10) {
            load(i + 1)
        } else {
            alert("签到完毕");
            return
        }
    };
    setTimeout(function () {
        img.src = "https://论坛地址/space-uid-" + (2000 + i) + ".html"
    }, 3000)
}
load(1);
这家伙太懒了,什么也没留下。
最新回复 (0)
    • YiOVE论坛
      2
         
返回