您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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!
// ==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"; } } } } })();