禁止 Leetcode 跳转中文站 2023

通过屏蔽英文版 leetcode 中文站相关的资源加载,从而禁止其自动跳转中文站点,并同时屏蔽中文站提示广告。

目前為 2023-10-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name         禁止 Leetcode 跳转中文站 2023
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  通过屏蔽英文版 leetcode 中文站相关的资源加载,从而禁止其自动跳转中文站点,并同时屏蔽中文站提示广告。
// @author       zgxkbtl
// @license      MIT
// @match        https://leetcode.com/*
// @grant        GM_webRequest
// ==/UserScript==

(function() {
    'use strict';
    GM_webRequest([
        { selector: 'https://leetcode.cn/api/is_china_ip/*', action: 'cancel' },
        { selector: 'https://assets.leetcode-cn.com/*', action: 'cancel' },
    ], function(info, message, details) {
        console.log(info, message, details);
    });
})();

QingJ © 2025

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