关于题目题解按钮隐藏
  • 板块灌水区
  • 楼主ltm_soviet
  • 当前回复3
  • 已保存回复3
  • 发布时间2024/10/13 18:24
  • 上次更新2024/10/13 20:04:35
查看原帖
关于题目题解按钮隐藏
1383031
ltm_soviet楼主2024/10/13 18:24

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';
    }
})();
2024/10/13 18:24
加载中...