CSDN自动点赞

学习练习脚本,安装此脚本,每次浏览其他人csdn博客会自动点赞!

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         CSDN自动点赞
// @icon         chrome://favicon/http://blog.csdn.net/
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  学习练习脚本,安装此脚本,每次浏览其他人csdn博客会自动点赞!
// @author       Zero
// @match        https://blog.csdn.net/*
// @match        *://blog.csdn.net/*
// @grant        none

// ==/UserScript==
(function() {
    'use strict';
    //没有点赞,自动点赞

    if(document.getElementsByClassName("is-like")[0].innerHTML.search("点赞") != -1){
        document.getElementsByClassName("is-like")[0].click();
    }
})();