Jike Auto Click Like

即刻网页版滚动时会对页面所有内容点赞

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Jike Auto Click Like
// @namespace    JikeWebAutoClickLike
// @version      0.3
// @description  即刻网页版滚动时会对页面所有内容点赞
// @author       liuxsdev(@即刻:秋犯)
// @match        https://web.okjike.com/*
// @run-at       document-end
// @homepage     https://gist.github.com/liuxsdev/15243c150e268da74aae655843cbcde1
// @license      The MIT License (MIT); http://opensource.org/licenses/MIT
// ==/UserScript==

(function() {
    'use strict';
    document.body.onmousewheel=function(){
        var selector = 'div.flex.items-center.justify-center.w-5.h-5:not(.text-tint-warming)'
        var zan = document.querySelectorAll(selector)
        zan.forEach(function(item,index){
            var p=item.parentElement;
            p.click();
        })
    }
})();