Git Product home page Git Product logo

leetcode-ext's Introduction

LeetCode Extension

Announcement

Leetcode has requested me to remove the company metadata and premium question description. I have no enough time recently to modify my codes, so I close my extension on Chrome Store.

Description

This is an extension for chrome.

[Download in chrome web store] (https://chrome.google.com/webstore/detail/leetcode-extension/eomonjnamkjeclchgkdchpabkllmbofp)

Source Code: https://github.com/binarylu/leetcode-ext

In source code,

leetcode-ext folder is the source code of chrome extension.

server folder is the source code for crawling the problem tags from leetcode.com.

Usage

There are six major functions:

  1. Show your progress, in different difficulities, in different company tags and in different tags.
  2. Hide the acceptance and difficulty.
  3. Hide the locked problems.
  4. Commit your code to your GitHub.
  5. After running or submitting code, disable the button for 10 seconds to avoid the error that submitting too frequently.
  6. Show the content of locked problems and the problem list of each company tag.
  7. Show quick access link for submission and discussion.

For 1, 2 and 5, they can be turned on / off in extension option page.

For 3, there is checkbox in problem list page and tag page.

For 4, you can login your github account in option page by OAuth. After you login, input the repository name, not the URL.
If the repository you type in does not exist, it will be created. Otherwise, just connect to the existing repository.

For 6, to see the content of locked problem, click the green icon at the right of each locked problem.
If you are not a subscriber, the linke of each company tag will be changed, there will appear a modal showing the problem list after you click the company tag.
In problem page, the company tag button will appear even if you are not a subscriber.

Contribution

Quick Access Link is contributed by Yiding Liu.

Acknowledge

This project is just for study, if you can afford, please subscrib to support https://leetcode.com.

Release Notes

v1.1.2 (2016-06-02)

  • Optimize UI.
  • Add update notification.

v1.1.1 (2016-06-01)

  • Bug fix: The bug that hiding locked problems will hide all the problems has been fixed.

v1.1.0 (2016-05-28)

  • Add quick access link for submission and discussion.

v1.0.5 (2016-04-23)

  • Add option to commit question.md automitically when entering problem page.

v1.0.0 (2016-04-18)

  • show locked problems (click the green icon)
  • show progress of each company tag
  • show problems in each company tag
  • add company tag in problem page

v0.6.0 (2016-04-09)

  • Support OAuth, and personal access token is no longer supported. Please open option page to login with OAuth.

v0.5.0 (2016-04-09)

  • Support to hide locked problem
  • Add chart to show each difficuly's progress

v0.4.7 (2016-04-08)

  • Fit the new leetcode UI for difficulty.
  • bugfix

v0.4.0 (2016-03-24)

  • Add countdown for "run code" button and "submit solution" button, so that you will never run/submit too frequently.
  • Support to set default comment.
  • Add popup, click LeetCode Extension icon, you can go to leetcode.com directly.

v0.3.5 (2016-03-22)

  • Support to add an existing repository

v0.3.0 (2016-03-22)

  • Hide acceptance and difficulty.
  • Add option to commit only accepted codes.

leetcode-ext's People

Contributors

binarylu avatar petrosliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leetcode-ext's Issues

Suggestion: Group Progress Sharing

Hey,
Recently I also implemented a Leetcode enhancement for group sharing. The relative code is at here.

Both my group members admitted that the group sharing would be a great motivation for all, as long as it provided a well defined visualization. A D3.js generated chart reports is planned, while currently my solution is just pushing the text progress to our slack channel.

Would you please tell me about your opinion on this group sharing idea? The solution could be either introducing the feature into this codebase, or create another extension. If you also agree with me, I would like to help : ).

P.S. Another small suggestion: add hyperlink to Leetcode's website to the extension's icon's left mouse onclick event could be of convenience.

I would also be very nice if you could write to me at yl3710#nyu.edu (replace # to @)

Is it possible to install this extension to Chrome from source code directly?

I just found the extension disappeared from my chrome. I came here and noticed the announcement. I really like this extension for my daily leetcode practices. I'm wondering if it's possible to install it on my chrome from source code directly?

Really appreciate your contribution and totally understand your time limitation.

Thanks first. :)

Log in with github button does not work

When first clicking the button, a login page will pop up. But after type in the github account info, nothing happens. After that, even clicking the "Log in with github" button multiple times, no page will pop up. I'm using v1.1.4 and everything else works fine except for github extension.

Suggestion: Difficulty Selection

Displaying problems only in selected difficulty would be a very good feature and only needs a little modification to your code.

The tag bar is totally broken :'((((

Everything in tag bar is 0/0, and I can't even see the category after I updated my account to see locked questions. Plz heeeelp. Career fair is next week. :'((((((

Hide locked problems feature

Thanks for your great project! Although I have a suggestion: it looks like the Hide locked problems feature is broken after the latest update. It is showing "You have solved NaN / NaN problems" and hiding all problems if you tick that box.

Suggestion about Multiple solutions

Hi, I've been using this Leetcode extension for days and it's pretty nice and convenient. But there is an issue when I have some different solutions for one problem.

Since the default name of solution is Solution.java(actually it's solution.java, but I think you can change that to uppercase since the default public class is Solution), when I have a new solution for this problem, the new commit will overwrite the old Solution.java. So it just shows the newest one instead of all of my submissions.

So I think that every time we submit a solution, no matter it's AC or TLE or something wrong, this extension could create a new file in our repo with a different name like Solution1.java, Solution2.java. In this case we can keep all our solutions instead of the newest one.

This extension is pretty awesome! Thank you again for sharing!

doesn't work now

Error in response to storage.get: TypeError: Cannot read property '0' of null
at upload_problem (chrome-extension://eomonjnamkjeclchgkdchpabkllmbofp/leetcode-github.js:335:37)
at null.callback (chrome-extension://eomonjnamkjeclchgkdchpabkllmbofp/leetcode-github.js:49:9)
at HTMLDocument. (chrome-extension://eomonjnamkjeclchgkdchpabkllmbofp/leetcode-github.js:29:25)
at fire (chrome-extension://eomonjnamkjeclchgkdchpabkllmbofp/lib/jquery.js:3119:30)
at Object.fireWith as resolveWith
at Function.ready (chrome-extension://eomonjnamkjeclchgkdchpabkllmbofp/lib/jquery.js:3443:13)
at completed (chrome-extension://eomonjnamkjeclchgkdchpabkllmbofp/lib/jquery.js:3474:10)

Sorry that I didn't state my problem clearly last time

Hi, thank you for your time and patience! I think I didn't state my problem clearly. I've already purchased leetcode premium, and after that, all the tags become 0/0 and I cannot see my progress in company and tag any more. But thank you for all the effort! Let me know whether I state the problem clearly this time. :)

Best,
Huan

Unable to see company tags and the locked questions!

Your app is unavailable on the app store - I downloaded it and manually loaded it as an unpacked extension into Chrome. However, the functionality of seeing Company Tags and Locked questions is still not available!! The interface with this extension is the same as one without it.

Request you to kindly suggest some changes. Thank you!

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.