第一个脚本

掘金随便改改

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         第一个脚本
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  掘金随便改改
// @author       qc-z
// @match        https://juejin.cn/user/*
// @icon         https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web//static/favicons/favicon-16x16.png
// @grant        none
// @require      http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==

$(document).ready(function(){
    setTimeout(()=>{
        const tag1 = document.getElementsByClassName('count')[3]
        const tag2 = document.getElementsByClassName('count')[4]
        const tag3 = document.getElementsByClassName('count')[5]
        tag1.innerText = Math.ceil(Math.random() * 1000000)
        tag2.innerText = Math.ceil(Math.random() * 1000000)
        tag3.innerText = Math.ceil(Math.random() * 1000000)
    },1000)
});