Greasy Fork is available in English.

leetcode

try to take over the world!

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
  1. // ==UserScript==
  2. // @name leetcode
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://leetcode-cn.com/problemset/all/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. if(window.top != window.self){
  14. return;
  15. }
  16. var window_url = window.location.href;
  17. var website_host = window.location.host;
  18. //直接跳转到目标网页
  19. if(window_url == "https://leetcode-cn.com/problemset/all/"){
  20. location.href = "https://leetcode-cn.com/problemset/algorithms/";
  21. }
  22. // Your code here...
  23. })();