Helps Hide Leetcode's Difficulty and Acceptance.

Latest Version

Version
4.2
Update
December 2, 2021
Size
96.04KiB
Developer
Category
Users
293
Rating
3.85714 ★
Manifest Version
2
Web Store Status
Languages Support
English (United States)
See more
Permissions
ActiveTab
DeclarativeContent
Storage
See more

LeetCode Patch Extension

更新日志(Update Log):
- 4.2 [2021/11/30]
BUG修复:leetcode前端元素结构调整,导致无法正常隐藏难度。已修复
Fix Bug: The main function doesn't work because leetcode's front-end structure adjustment. Already Fixed that.

- 4.1 [2019/12/12]
新功能:隐藏“Similar Questions”中题目列表的难度(位于写代码界面的左侧题目卡下方)
New Feature: Hide the difficulty level of 'Similar Questions' on coding page.
Thanks to the advice from a nice user, Jiradet~
- 4.0 [2019/8/19]
新功能:隐藏submit失败后显示的“最后一次输入”的用例。 @见截图5
New Feature: Hide the Last Executed Input when your submit failed. @See 5th screenshot
- 3.3 [2019/8/17]
新功能:隐藏写代码界面左下角按钮【Problems】点开后的选题界面的题目难度。@见截图4
New Feature: Hide the difficulty on the Problem Picker Page when u click on the 'Problems' button at the left bottom of the coding page. @See the 4th Screenshot
- 3.2 [2019/8/11]
BUG修复:leetcode前端元素结构调整,导致无法正常隐藏难度。已修复
Fix Bug: The main function doesn't work because leetcode's front-end structure adjustment. Already Fixed that.
- 3.0 [2019/7/30]
新功能:隐藏contest的题目难度
New Feature: Hide the difficulty of sub-pages of contest
- 2.1 [2019/7/24]
新功能:submit成功后,会在提交界面显示题目难度,并隐藏推荐题目列表的难度。@见截图3
New Feature: After your success, it will show u the difficulty just on the submission tab page, and hide the difficulty of recommended next challenges. @See the 3rd Screenshot

<简介> (English Version is Below)
这款插件主要用来帮助您在leetcode隐藏题目的难度和通过率、隐藏提交失败后平台提示的最后一次输入的测试用例。用起来很简单~(目前不支持leetcode-cn网站)。后面的需求是有朋友提出来的,觉得fail之后应该先主动思考代码逻辑本身哪里出现了问题,是不是没考虑边界情况等,平台直接显示的Last Executed Input会使人懒得去严谨的思考。

特点:
1.隐藏“编程界面”和“题目列表界面”的题目难度。@见截图1&2&4
2.submit后,如果成功会显示题目难度,并隐藏推荐的题目列表的难度。@见截图3
3.submit后,如果失败,可以隐藏leetcode显示的“Last Executed Input”测试用例。@见截图5

为什么需要它:
写这个插件主要是因为自己刷题的时候,如果碰到了hard的题,还没开始看题目内心就已经形成了无形的压力,甚至如果时间不是很充裕就会换一道题,这些赤裸裸的心理暗示对刷题的状态和实力的发挥都有很大影响,而且实际的机试/比赛都是看不到难度的,因此萌生了写一个插件隐藏难度和通过率的念头。
另外在chrome store搜了一下功能类似的插件,试用了几个后,发现有的插件在跳转到写代码那个界面的时候,题目难度的隐藏有延迟,就是会短暂的看到一小下题目难度,这就有点难受了,本插件进行了小小的优化,基本没有这个问题。
大家一起快乐刷题呀!~

Intro:
This extension mainly helps you hide leetcode's difficulty, acceptance and the last executed input.Easy to use~
The second require came from a friend, who thought that after submission failure it's important for us to review our codes, and think about what's wrong with it, in which cases it will fail, instead of looking at the failed Input directly and fix our codes, which can make us lazy.

Features:
1.Hide the Difficulty and Acceptance on ProblemSet Page and the coding Page. @See the 1st&2nd&4th screenshot
2. After submitting, if you got a 'Success', you would see the difficulty below it. And the difficulty of recommended next challenges would be hidden. @See the 3rd screenshot
3. After submitting, if you failed, it can hide the 'Last Executed Input'. @See the 5th screenshot

Why You Need This:
I wrote this because when I was coding on leetcode, if I encountered 'Hard' problems, I became nervous even before I read the problems' description, and thought I couldn't make it, perhaps even chose another problem to solve.This strong psychological hint has a great influence on me,and we can't see the difficulty in a real programming test,so the idea of ​​writing a extension to hide difficulty and acceptance has arisen.
In addition, I searched the extensions in the Chrome Store for similar functions. I tried several of them, found that using some of them, there was a delay in hiding the difficulty when it jumped to the interface for coding, which means that I can see the difficulty for a short time before it's hided. This is a liitle bit awkward.
This extension has been slightly optimized and basically has no such problem.
Let's write codes on leetcode~!
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "LeetCode Patch", "short_name": "Patch", "version": "4.2", "description": "Helps Hide Leetcode's Difficulty and Acceptance.", "permissions": ["activeTab", "declarativeContent", "storage"], "background": { "scripts": ["js/jquery.js","js/background.js"], "persistent": false }, "content_scripts": [ { "matches": ["https://leetcode.com/problemset/*","https://leetcode.com/problems/*", "https://leetcode.com/tag/*","https://leetcode.com/company/*","https://leetcode.com/contest/*"], "js": ["js/jquery.js","js/common.js"], "run_at": "document_start" }, { "matches":["https://leetcode.com/problems/*"], "js":["js/content-script.js"],"run_at": "document_start" }, { "matches":["https://leetcode.com/problemset/*","https://leetcode.com/tag/*","https://leetcode.com/company/*"], "js":["js/problemset-script.js"],"run_at": "document_start" }, { "matches":["https://leetcode.com/contest/*/problems/*"], "js":["js/contest-script.js"],"run_at": "document_start" } ], "page_action": { "default_popup": "popup.html", "default_icon": { "16": "logo_v8.0.png", "32": "logo_v8.0.png", "48": "logo_v8.0.png", "128": "logo_v8.0.png" } }, "icons": { "16": "logo_v8.0.png", "32": "logo_v8.0.png", "48": "logo_v8.0.png", "128": "logo_v8.0.png" }, "manifest_version": 2}
Read more

How to download and manually install LeetCode Patch extension for Chrome

Looking for a way to install LeetCode Patch extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install LeetCode Patch extensions manually, this article outlines two simple methods to effortlessly install LeetCode Patch extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download LeetCode Patch extension and manually install through Drag &Drop

If you ever need to manually install a LeetCode Patch extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the LeetCode Patch Extension by clicking the "Download CRX" button on the website.

Look for the LeetCode Patch extension you wish to install. Go to the website and download the LeetCode Patch extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for LeetCode Patch extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the LeetCode Patch extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download LeetCode Patch extension for Chrome and install in Developer Mode

This is another method to install LeetCode Patch extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the LeetCode Patch extension file

Select and download the LeetCode Patch extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the LeetCode Patch extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your LeetCode Patch extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the LeetCode Patch extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install LeetCode Patch extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

User reviews

icon

Timothy Choi (ID: 00000070c057074f) Voted 1 ★ - Updated 05/07/2023 Doesn't work in 2023

icon

Ati Ok (ID: 0000005fdcbc7308) Voted 3 ★ - Updated 09/01/2021 It does not hide the difficulty on the problems list page. If you open-source the repo, I can fix it.

icon

Kevin (ID: 00000007a1367cb6) Voted 3 ★ - Updated 07/23/2021 No longer work with latest leetcoce.com. May you please fix it?

icon

Chunibyo (ID: 00000006aae4ff16) Voted 5 ★ - Updated 01/12/2020 挡住input的功能非常好用, 谢谢作者

icon

杨显 (ID: 000000209c0279e0) Voted 5 ★ - Updated 07/22/2019 厉害喔,邸Tuo,棒棒呦,可惜我不做困难的题~