您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Easy-to-edit userscript to filter solution tab for Leetcode solutions. In the example it filters to Javascript
- // ==UserScript==
- // @name LeetCode discuss solution automatically filters JS
- // @description Easy-to-edit userscript to filter solution tab for Leetcode solutions. In the example it filters to Javascript
- // @namespace https://github.com/marcodallagatta/userscripts/raw/main/leetcode-filter-solutions
- // @version 2022.09.02.20.15
- // @author Marco Dalla Gatta
- // @match https://leetcode.com/problems/*/discuss/*
- // @icon https://icons.duckduckgo.com/ip2/leetcode.com.ico
- // @license MIT
- // @grant none
- // ==/UserScript==
- (function() {
- const filter = 'javascript';
- 'use strict';
- if (!window.location.toString().includes('tag')) {
- window.location += `?currentPage=1&orderBy=most_votes&query=&tag=${filter}`
- }
- })();