Skip to content
/ leetag Public

This project is a chrome extension working on leetcode platform, which can remind you the tags and hints of the problem you're struggling with in a soft way. Meanwhile, it can show you which weekly contest this question has occurred in with a tag attached question title.

Notifications You must be signed in to change notification settings

zqqcee/leetag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetag

Sometimes, I have no idea how to resolve a question from Leetcode.Same to you, I really don't want to click the "Solution" directly, because it lacks fun to resolve the question at all, so I usually open the comment component to find some inspiring discussion. However, I found that if someone can give me some tags or short hints about the question like what method to use, such as arrays, greedy algorithm, dynamic programming, etc., I can quickly start coding. The tags and hints on Leetcode are hidden in the lower left corner. I think this kind of way to display is a liitle bit troublesome. So I write this chrome extension.

Introduction

This project is a chrome extension working on leetcode platform, which can remind you the tags and hints of the problem you're struggling with in a soft way. Meanwhile, it can show you which weekly contest this question has occurred in with a tag attached question title. That's why one named "leetag".

Install

This extension uses Chrome Extension API menifest V3. So please make sure your chrome version is 88+.

  • Clone this repository , run git clone https://github.com/zqqcee/leetag.git

  • Open the chrome extensions page. You can visit chrome://extensions/

  • Open the Developer Mode

    image-20230526193205583
  • Click here and choose the file you've cloned from this repository.

    image-20230526193509982
  • Visit the https://leetcode.cn/problemset/all/,and select any problem you want to resolve.

  • When you open a page of question, You will see the leetag button locating here, after about 2s.

    image-20230526194001981

Usage

Note: Some fetching bug can solve after refresh web page.

  • When you visit leecode.cn website and open a question, background.js fetches the question data and weekly contest data, automatically.
  • If you wonder which weekly contest this question has occurred in, you're able to click the leetag button.
  • then,
    • If you want to know the tags about this question, click the tag button.
    • If you want to get some hints for this question, click the hints button.

leetag

Warning

  • This extension hasn't supported leetcode beta, so it can't work on the new version platform.

    • Interfaces are reserved in content.js. background.js will automatically fetch "isBeta" in the background, a data that identifies whether the user is using the new version of the interface. In content.js, only modify toolBarClassName and titleClassName to the corresponding className of the new version

Roadmap

  • Translation Plugin
    • Translate hints to Chinese
  • Leetcode Beta Support (WIP)

Related Projects

Thanks to leetcode.cn for providing a platform with a friendly user experience!

Thanks to the data support from zerotrac/leetcode_problem_rating!

About

This project is a chrome extension working on leetcode platform, which can remind you the tags and hints of the problem you're struggling with in a soft way. Meanwhile, it can show you which weekly contest this question has occurred in with a tag attached question title.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published