javascript腳本語言實現,自動評論CSDN博客!

csdn新版更新,更新一下自動點贊CSDN博客的JS腳本!

 

同樣,大佬止步。不喜勿噴!

經過不斷試錯。終於弄好了,自動點讚的姊妹腳本。自動評論!

 

對啦,評論是靜默執行的。不會騷擾用戶(即,不會滑動頁面到最下面)!

 

代碼:

【JavaScript腳本語言!】

// ==UserScript==
// @name         自動評論新版
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://blog.csdn.net/*
// @grant        none
// ==/UserScript==
(function() {
    // 等待兩秒鐘再進行評論
    setTimeout(function(){

        var c=["本條消息自動評論","別看啦,程序自己寫的評論","喧鬧的世界,收下這條來自機器的評論吧!"];
        var n = -1;
        var m = 3;
        var temp_count = Math.floor(Math.random()*(n-m+1))+m;//取m-n之間的隨機數 [m,n]

        document.getElementsByClassName("tool-item-comment
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章