Skip to content

hritik2002/Leetcode-Problem-Hider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Leetcode Problem Hider

This simple JavaScript code hides the solved problems on the Leetcode tags Leetcode/tag/{tag_name} page.

PS: replace tag_name with array, string, bit-manipulation or any other DSA tag.

It is useful while preparing for placements or coding competitions and only wants to see the unsolved problems for a specific tag from Leetcode/tag/tag_name page.

Usage

To use this code, simply include it in the JavaScript console of your browser while visiting the Leetcode tag page Leetcode tag page.

How it works

The code uses DOM manipulation to hide the solved problems on the Leetcode tag page. It selects all the table rows on the page using the querySelectorAll method and then loops through each row. If the first child of the row has an attribute called value, it hides that particular row by setting its display style to "none".

Example

Before pasting the code in the browser's console.

Screenshot 2023-02-07 at 8 50 44 PM

After pasting the code in the browser's console.

LeetcodeWithCode

Conclusion

This code is a simple solution for hiding the solved problems on the Leetcode tag page and only showing the unsolved problems. It can be easily customized for your specific needs.

About

Helps to hide solved problems on Leetcode/ tags/ {tag-name} page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published