您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
掘金自动签到
- // ==UserScript==
- // @name juejin_auto_check_in
- // @namespace pengtianyu
- // @version 0.2.1
- // @description 掘金自动签到
- // @author pengtianyu
- // @match https://juejin.cn/*
- // ==/UserScript==
- (function() {
- // setInterval(() => {
- // if(document.querySelector('.signin-btn')) {
- // goSignIn()
- // }
- // }, 1000)
- let flag = false
- window.onload = function () {
- goSignIn()
- flag = true
- }
- setInterval(() => {
- if(flag) {
- signIn()
- }
- }, 1000)
- // 跳转签到页面
- function goSignIn() {
- let text = document.querySelector('.btn-text').innerHTML
- if(text === '已签到') return false
- document.querySelector('.signin-btn').click()
- console.log('已执行跳转签到页面')
- }
- //点击签到
- function signIn() {
- document.querySelector('.signin .btn').click()
- flag = false
- console.log('已签到')
- }
- })()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址