Easily block users on Leetcode so they will never show up in comments or replies again.
Get rid of bots, spammers, self-advertisers, and people posting solutions in the discussion section.
Install Leetblock »
You can install the extension through the Chrome Web Store on browsers such as Google Chrome, Microsoft Edge, Opera, and Brave. Simply follow this link and click on the "Add to Chrome" or "Get" button, depending on your browser.
Alternatively, you can install the extension locally by following these steps:
-
Clone the repository
git clone https://github.com/niklashenning/leetblock.git
-
Open your browser's extension manager
chrome://extensions/
,edge://extensions/
, ... -
Enable developer mode to be able to load unpacked extensions
-
Click the "Load unpacked" button and select the "src" folder of the cloned repository, which will load and enable the extension
After enabling the extension, "Block" buttons will appear on every comment and reply. Clicking it will add that user to the block list and hide all of their posts as long as you keep them blocked.
If you want to manually block a user by username, click on the extension icon to open the popup, enter the username into the text field, and click the "Block User" button.
To unblock a user, simply open the extension popup, locate the username in the list, and click the "Unblock" button next to it.
To unblock every user, open the extension popup and click the "Unblock All" button. After confirming your decision, your block list will be cleared, and all posts will be visible again.
leetblock-demo.mp4
This software is licensed under the MIT license.