首页 > 其他分享 >易班网薪油猴脚本 稳130+/天

易班网薪油猴脚本 稳130+/天

时间:2022-12-13 12:34:44浏览次数:108  
标签:薪油 section yiban 易班网 130 let querySelector div document

易班网薪油猴脚本 稳130+/天

收益构成:

项目 收益/天
发帖 100
点赞 30
签到 2
7天连续签到 奖励50
易伴云签到 2
评论 -

一、点赞

  1. 先安装油猴插件,把脚本保存,如图

  2. 脚本

// ==UserScript==
// @name         易班自动点赞
// @namespace
// @version      0.4
// @description  
// @author       xxing9199
// @match        https://s.yiban.cn/app/*
// @icon
// @grant        none
// ==/UserScript==

(function () {
  'use strict';

  window.XXING_YIBAN_DIANZANCOUNT = 1;

  window.slepp = function (delay) {
    var start = (new Date()).getTime();
    while ((new Date()).getTime() - start < delay) {
      continue;
    }
  }

  setTimeout(() => {
    window.scrollTo(0, (document.querySelector("body > div.container.with-bg > section > section.comments.box").offsetTop));
    slepp(500);
    window.scrollTo(0, (document.querySelector("body > div.container.with-bg > section > section.comments.box").offsetTop) + (105 * 20));
    setTimeout(() => {
      let reloadCoult = document.querySelector("body > div.container.with-bg > section > section.comments.box > div").children.length;
      if (reloadCoult >= 35) {

        let count = 1;
        let _t = setInterval(() => {
          document.querySelector("body > div.container.with-bg > section > section.comments.box > div > div:nth-child(" + XXING_YIBAN_DIANZANCOUNT + ") > div > div.status > div.actions > div.like > div").click();
          document.querySelector("head > title").innerHTML = `

标签:薪油,section,yiban,易班网,130,let,querySelector,div,document
From: https://www.cnblogs.com/xxing/p/16978242.html

相关文章