Remove Leetcode locked problems

teekay profile image TK ・1 min read

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 => {

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.

Posted on Jun 5 by:

teekay profile



Sharing knowledge https://leandrotk.github.io/tk


markdown guide