Greasy Fork is available in English.

LeetCode discuss solution automatically filters JS

Easy-to-edit userscript to filter solution tab for Leetcode solutions. In the example it filters to Javascript

Pada tanggal 02 September 2022. Lihat %(latest_version_link).

  1. // ==UserScript==
  2. // @name LeetCode discuss solution automatically filters JS
  3. // @description Easy-to-edit userscript to filter solution tab for Leetcode solutions. In the example it filters to Javascript
  4. // @namespace https://github.com/marcodallagatta/userscripts/raw/main/leetcode-filter-solutions
  5. // @version 2022.09.02.20.15
  6. // @author Marco Dalla Gatta
  7. // @match https://leetcode.com/problems/*/discuss/*
  8. // @icon https://icons.duckduckgo.com/ip2/leetcode.com.ico
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14.  
  15. const filter = 'javascript';
  16.  
  17. 'use strict';
  18. if (!window.location.toString().includes('tag')) {
  19. window.location += `?currentPage=1&orderBy=most_votes&query=&tag=${filter}`
  20. }
  21. })();