Skip to content

Commit

Permalink
adding gfg difficulty level + explore card commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
QasimWani committed Jan 3, 2022
1 parent fa7a16a commit 50a483c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"manifest_version": 2,
"name": "LeetHub",
"description": "Automatically integrate your Leetcode, GeeksforGeeks submissions to GitHub",
"description": "Automatically integrate your Leetcode & GeeksforGeeks submissions to GitHub",
"homepage_url": "https://github.com/QasimWani/LeetHub",
"version": "1.1.0",
"version": "1.1.1",
"author": "Qasim Wani",
"browser_action": {
"default_icon": "assets/thumbnail.png",
Expand All @@ -26,7 +26,6 @@
"https://leetcode.com/*",
"https://practice.geeksforgeeks.org/*",
"tabs",
"activeTab",
"unlimitedStorage",
"storage"
],
Expand Down
5 changes: 5 additions & 0 deletions scripts/gfg.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ function findDifficulty() {
const ele = document.getElementsByClassName(
'problem-tab__problem-level',
)[0].innerText;

if (ele != null) {
if(ele.trim() == "Basic" || ele.trim() === "School")
{
return "Easy";
}
return ele;
}
return '';
Expand Down
2 changes: 1 addition & 1 deletion scripts/leetcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function findCode(
slicedText.indexOf("'") + 1,
slicedText.lastIndexOf("'"),
);
msg = `Time: ${resultRuntime}, Memory: ${resultMemory} -LeetHub`;
msg = `Time: ${resultRuntime}, Memory: ${resultMemory} - LeetHub`;
}

if (code != null) {
Expand Down

0 comments on commit 50a483c

Please sign in to comment.