您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2023/11/14 10:30:41
// ==UserScript== // @name 教学评价_非常满意 // @namespace Violentmonkey Scripts // @match http://jwglxt.webvpn.zufedfc.edu.cn/jwglxt/xspjgl/kcgcpj_cxKcgcpjxxIndex.html // @grant none // @version 1.0 // @author kalicyh // @license MIT // @description 2023/11/14 10:30:41 // ==/UserScript== (function() { 'use strict'; // 创建一个按钮元素 const button = document.createElement('button'); button.textContent = '点击所有 "非常满意"'; button.style.position = 'fixed'; button.style.top = '95px'; button.style.right = '60px'; document.body.appendChild(button); // 添加点击事件处理程序 button.addEventListener('click', function() { // 查找包含"非常满意"文本的元素并点击它们 const elementsWithText = document.querySelectorAll('.block p'); for (const element of elementsWithText) { if (element.textContent === '非常满意') { element.click(); } } }); })();