CSDN自动点赞

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

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