Jike Auto Click Like

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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();
        })
    }
})();