您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
广东省国家工作人员学法考试系统刷课
当前为
// ==UserScript== // @name 广东省国家工作人员学法考试系统刷课xfks-study // @namespace https://gf.qytechs.cn/ // @version 1.02 // @description 广东省国家工作人员学法考试系统刷课 // @author Cosil.C // @match http*://xfks-study.gdsf.gov.cn/study/* // @icon http://xfks-study.gdsf.gov.cn/study/static/images/favicon.ico?v2019031285 // @license GPLv3 // ==/UserScript== let pathname = window.location.pathname; //首页 if (pathname.includes('index')) { //进入专题 document.querySelector('.film_focus_imgs_wrap li .card.current div a.btn')?.click(); } else if (pathname.includes('chapter')) { //文章页 setInterval(() => { if (document.querySelector('.chapter-score').classList.contains('chapter-score-suc')) { let nextChapterBtn = document.querySelector('.next_chapter'); //跳转下一篇文章 if (nextChapterBtn) { console.log('准备跳转下一篇'); document.querySelector('.next_chapter')?.click(); } else { //跳回目录 console.log('准备返回目录'); document.querySelector('.container.title.nav button')?.click(); } } else { submitLearn(); } }, 1000); } else if (pathname.includes('course')) { //专题页 let targets = [].slice.call(document.querySelectorAll('.chapter li')).filter(v => //判断文章是否未读 v.querySelector('.sub_title')?.innerText.trim() === "" && v.querySelector('.title a')?.href ) if (!targets.length) { console.log('该专题学习完毕,准备返回首页') window.location.pathname = 'study/index' } else { //进入文章 console.log('准备进入文章' + targets[0].querySelector('.title a').innerText) targets[0].querySelector('.title a').click() } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址