您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在访问leetcode.cn时自动跳转到leetcode.com
当前为
// ==UserScript== // @name 自动跳转到leetcode.com // @namespace https://github.com/boris1993/tampermonkey-always-leetcode-com // @version 2023-12-21 // @description 在访问leetcode.cn时自动跳转到leetcode.com // @author boris1993 // @license WTFPL // @match https://leetcode.cn/* // @icon https://www.google.com/s2/favicons?sz=64&domain=leetcode.cn // @grant none // ==/UserScript== (function() { 'use strict'; const url = new URL(document.URL); const hostname = url.hostname; if (hostname !== 'leetcode.cn') { return; } const path = url.pathname; const newUrl = `${url.protocol}//leetcode.com${path}`; location.replace(newUrl); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址