您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
I am not a LeetCode Plus user and I don’t want to see LeetCode member-only problems.
// ==UserScript== // @name LeetCode Minus User // @namespace http://tampermonkey.net/ // @version 1.1 // @description I am not a LeetCode Plus user and I don’t want to see LeetCode member-only problems. // @author liuxueyang // @match https://leetcode.cn/* // @match https://leetcode.com/* // @license MIT // @supportURL https://github.com/liuxueyang/leetcode-minus-user/issues // @homepageURL https://github.com/liuxueyang/leetcode-minus-user // ==/UserScript== (function() { 'use strict'; function hideLockedProblems() { document.querySelectorAll('.fa-lock').forEach(lock => { const item = lock.closest('a'); if (item) { item.style.display = 'none'; } }); } hideLockedProblems(); const observer = new MutationObserver(hideLockedProblems); observer.observe(document.body, { childList: true, subtree: true }); })();