力扣屏蔽单题难度标签

屏蔽力扣题目页的难度标签

当前为 2023-01-13 提交的版本,查看 最新版本

// ==UserScript==
// @name         力扣屏蔽单题难度标签
// @namespace    markshawn.com
// @version      0.1
// @description  屏蔽力扣题目页的难度标签
// @author       markshawn2020
// @match        https://leetcode.cn/problems/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=leetcode.cn
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    let getLevelEle = () => document.querySelector("#qd-content > div.h-full.flex-col.ssg__qd-splitter-primary-w > div > div.min-h-0.flex-grow > div > div.flex.h-full.w-full.overflow-y-auto > div > div > div.w-full.px-5.pt-4 > div > div.mt-3.flex.space-x-4 > div");
    let check = setTimeout(() => {
        let levelEle = getLevelEle();
        console.log(`checking level ele: ${levelEle ? "OK" : "FAILED"}`);
        if(levelEle) levelEle.style.display = 'none';
        else check();
    }, 100);

    check();

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址