Remove Leetcode's Premium Problems

If you are not a VIP member of leetcode, you can't solve the premium problems which have a lock after them. But we can get rid of them~~~~~~ Fuck them and give you a nice interface!

2017-11-27 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Remove Leetcode's Premium Problems
// @namespace    http://www.kongpingfan.com/
// @version      0.1.2
// @description  If you are not a VIP member of leetcode, you can't solve the premium problems which have a lock after them. But we can get rid of them~~~~~~ Fuck them and give you a nice interface!
// @author       kongpingfan
// @include        *leetcode.com*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
   setInterval(getRidOf,1500);
    function getRidOf(){
     if (document.getElementsByClassName("fa-lock")){
    var elements=document.getElementsByClassName("fa-lock");
    for (var i =0;i<elements.length;i++){
        if (elements[i].parentNode.parentNode.parentNode.parentNode.parentNode.tagName=="TR" ||elements[i].parentNode.parentNode.parentNode.parentNode.parentNode.tagName=="tr" ){
            elements[i].parentNode.parentNode.style.display="none";
        }
        if (elements[i].parentNode.parentNode.parentNode.tagName=="TR" ||elements[i].parentNode.parentNode.parentNode.tagName=="tr" ){
            elements[i].parentNode.parentNode.parentNode.style.display="none";
        }
    }
}
    }
})();