A cross-browser extension to improve 🚀 productivity on Leetcode.
It is a light-weight browser extension which can be pinned in menu bar. It boosts your productivity by hiding unnecessary visual elements from the screen, enabling you to focus on what is important. You can change your preferences form the popup menu and find out what best suits your needs.
- Hide Difficulty
- Hide Locked Problems
- Highlight Solved Problems
- Hide Solved Problems
- Hide / Show Problems Table Columns (incl. Difficulty, Acceptance etc.)
Note: The extension functions on the following URLs :
-
To install this extension from Chrome Web Store click here.
-
After installation, you should pin this extension to use its features.
- To install this extension from Firefox Browser Addons click here.
- To install this extension from Microsoft Edge Addons click here.
- In case of Mozilla Firefox, the icon will appear in the address bar as this is a page specific extension, this makes sure the extension is running, only when you need it and not all the time.
Would really appreciate if you can ⭐ the repository
$ git clone https://github.com/loveshdongre/leetcode-enhancer/
$ cd leetcode-enhancer
-
Install Live Sass Compiler (Ritwick Dey) extension on VS code or any other compiler of you choice and make sure before testing the compiler is watching and converting you scss file into css if making any changes in scss file. It is required to convert the file popup.scss to popup.css only.
-
Install browserify globally
npm i browserify -g
-
Once code changes are done run
deployment-zip-maker.sh
file.a. This take content-script-main.js, popup-main.js and service-worker-main.js and convert them to content-script.js, popup.js and service-worker.js respectively.
b. Creates the
deployment
folder which will be used to load the extension in the browser
- Go to
chrome://extensions/
from url search and enableDeveloper mode
- Click on
load unpacked
and select the folder containingmanifest.json
file - Pin this extension to use it.
- Go to
about:debugging
from url search and click onThis Firefox
(if you are not already there) - Click on
Load Temporary Add-on...
and select themanifest.json
file - The addon will appear next to the address bar only when you are on leetcode
- follow steps in this link
- .github: Hidden directory that contains git template for submitting an issue.
- deployment: It's gets generated when user run file
deployment-zip-maker.sh
. It is used to build browser specific directory for testing and creating zip for deployment in extension app stores. - docs: Contains terms and condition, Licence and guide to obtain API key of Cohere
- icons: contains app logo, custom checkmark logos, etc
- images: contains display images for web stores
- scripts: this is the main source folder where all the scripts are present. This code is mostly modified for development.
- .babelrc: babel configuration file
- .gitignore: files ignored by git
- content-script.css: for injecting custom style sheet.
- deployment-zip-maker.sh: bash file to create zip file of the only files important for deployment
- manifest.json: Heart of the extension which contains all the configurations. (tip: understand this first)
- popup.css: style sheet for extension pop
- popup.css.map: intermediate file generated while converting .scss file to .css file with Live Sass Compiler extension (Vscode)
- popup.html: html file for extension pop
- popup.js: js file to handle changes like 7C74 storaging checkbox preferences.
- popup.scss: Scss file for styling popup.html file.
- README.md: Guide for the entire extension
- service-worker.js (background script): One important function is listens event from the content-script and enables extension icon in the browser
Contributions are always welcomed, here is what you need to do:
- Work on an existing issue or create a new one here
- Create a pull request linked to that issue
Note: Please set up your git config for user and email so your name gets updated as a contributor
Know more about pull request.
In order to add more useful features and keep the extension bug free your feedback is important. It will be really appreciated, if you could take out some time to write a review so that this extension can be improved ASAP.
- MacOS Sequoia: 15.4.1
- Mozilla Firefox: 138.0.1
- Google Chrome / Brave / Edge: (Chromium) 136.0.7103.93
MIT © Lovesh Dongre