您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide Premium Problems on Leetcode
// ==UserScript== // @name leetcode-cn hide premium problems // @namespace https://greatest.deepsurf.us/en/users/304696-ruanima // @description:en Hide Premium Problems on Leetcode // @version 0.4 // @author ruanimal // @thanks hntee // @match https://leetcode-cn.com/problemset/* // @description Hide Premium Problems on Leetcode // ==/UserScript== (function() { 'use strict'; observeDomChange(); })(); function observeDomChange() { var MutationObserver = window.MutationObserver; var myObserver = new MutationObserver (mutationHandler); var obsConfig = { childList: true, attributes: true, subtree: true, attributeFilter: ['list-group'] }; myObserver.observe (document, obsConfig); function mutationHandler (mutationRecords) { $('tr i.fa-lock').parent().parent().parent().parent().parent().hide(); } }