leetcode

try to take over the world!

// ==UserScript==
// @name         leetcode
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://leetcode-cn.com/problemset/all/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    if(window.top != window.self){
		return;
	}
	var window_url = window.location.href;
    var website_host = window.location.host;
    //直接跳转到目标网页
    if(window_url == "https://leetcode-cn.com/problemset/all/"){
        location.href = "https://leetcode-cn.com/problemset/algorithms/";
	}
    // Your code here...
})();