bilibili.com 刷动态自动点赞

等待动态页面加载好后,自动为第一页的所有动态点赞 (电脑端使用)

目前為 2021-04-06 提交的版本,檢視 最新版本

// ==UserScript==
// @name         bilibili.com 刷动态自动点赞
// @namespace    https://greasyfork.org/zh-CN/scripts/424585
// @version      0.1
// @icon         https://www.bilibili.com/favicon.ico
// @description  等待动态页面加载好后,自动为第一页的所有动态点赞 (电脑端使用)
// @author       自制柠檬茶@bilibili
// @match        https://t.bilibili.com/
// @run-at       document-end
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// @grant        none
// ==/UserScript==

/* global $ */

(function() {
    'use strict';

    setTimeout(function(){
        $(".custom-like-icon.zan").filter(
            function() {
                return( this.className.split(/\s+/).length == 2 );
            }
        ).each(function(){
            $(this).trigger('click');
        });
    }, 5000);

})();