您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
leetcode swith en and cn site
// ==UserScript== // @name LeetCode 英文站跳转中文站 // @description leetcode swith en and cn site // @include *://leetcode*.com/* // @exclude *://leetcode.com/*/discuss/* // @version 0.0.1 // @author mzvast // @license MIT // @namespace https://greasyfork.org/users/210993 // ==/UserScript== var en_host = "leetcode.com"; var cn_host = "leetcode-cn.com"; if (location.hostname==en_host) { var pathname_L = location.pathname.split('/'); var url = "https://"+cn_host+pathname_L.slice(0,3).join('/'); // console.log('url:',url); location.replace(url); }