在脚本猴中新建脚本并使用:
// ==UserScript==
// @name CSDN Blog Visitor
// @namespace http://tampermonkey.net/
// @version 2024-05-25
// @description Automated visits to CSDN blog pages to simulate user interaction.
// @author FontTian
// @match https://blog.csdn.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=csdn.net
// @grant none
// ==/UserScript==
(function() {
'use strict';
class CSDN {
constructor(blogUrls) {
this.blogUrls = blogUrls;
this.headers = {
'User-Agent': this.randomUserAgent(),
'Accept': 'text/html;q=0.9,*/*;q=0.8',
'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'Accept-Encoding': 'gzip',
<