Giter Club home page Giter Club logo

leetcode-problem-hider's Introduction

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.

leetcode-problem-hider's People

Contributors

hritik2002 avatar

Stargazers

Roman avatar Anas Khan avatar

Watchers

 avatar

leetcode-problem-hider's Issues

Make it extension

Chrome Extension

  • it's Very basic
  • it will not take time to create it
  • as I have made before
  • max 1 day ... for this project

problem

  • copy and paste
  • that code again and again
  • which will be solved then

steps

  • injected using extension
  • checkbox or button
  • then this code will run .. when click on it ... ez

additional feature

  • sort using diff level
  • or sort using attempted/solved/unsolved
  • both

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.