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.
To use this code, simply include it in the JavaScript console of your browser while visiting the Leetcode tag page Leetcode tag page.
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".
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.