Greasy Fork is available in English.

qq空间自动点赞

try to take over the world!

// ==UserScript==
// @name        qq空间自动点赞
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       You
// @match        https://user.qzone.qq.com/*
// @grant        none
// ==/UserScript==

function dianZan()
{
    var list=document.getElementsByClassName("item qz_like_btn_v3 ");
    var i=0
    for(i=0;i<list.length;i++)
    {
        if(list[i].attributes[6].value=='like')
        {
            list[i].click();
        }
    }
}


function doAll()
{
    dianZan();
    window.scrollBy(0,600);
}

var time=prompt("请输入点赞间隔时间,默认两秒",'2')*1000;
window.setInterval(doAll,time);






(function () {
    'use strict';
    console.log("function ()函数启用");

})();