rt
需油猴脚本
问AI都不行
附加:
讯飞星火:
// ==UserScript==
// @name Hide Luogu Solution Button
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Hide the solution button from Luogu problems
// @author Your Name (or leave it blank)
// @match https://www.luogu.com.cn/problem/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var solutionButton = document.querySelector('.btn-solution');
if (solutionButton) {
solutionButton.style.display = 'none';
}
})();
ChatGPT 4o:
// ==UserScript==
// @name 隐藏洛谷题解按钮
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 隐藏洛谷题目题解按钮
// @author [你的用户名]
// @match https://www.luogu.com.cn/problem/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// 找到题解按钮
const solutionButton = document.querySelector('.btn-solution');
// 如果找到按钮,则将其隐藏
if (solutionButton) {
solutionButton.style.display = 'none';
}
})();