If you're solving some Leetcode problems, but don't want to subscribe to the membership, you can use a simple script to remove all locked problems from your current list.
The locked problems are only for subscribers, so you can't access it. They are there as a call to action to subscribe.
const lockedProblems = document.querySelectorAll('[data-original-title="Subscribe to unlock"]');
lockedProblems.forEach(problem => {
problem.parentElement.parentElement.parentElement.parentElement.remove();
});
Use this simple script to get rid off all the locked problems. Now it is clean and help you focus on the problems you can access.
You can also find this script in the Remove Leetcode locked problems gist.
If you are solving problems, you may be interested in my Algorithms Problem Solving series.
Top comments (0)