Skip to content

Commit

Permalink
Merge pull request #23 from ssavi-ict/company_info
Browse files Browse the repository at this point in the history
v1.0.4 updated
  • Loading branch information
ssavi-ict authored Mar 27, 2023
2 parents e74b1d9 + 636c79c commit d8e2831
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### **1. Activate on Google Chrome browser**
To activate this extension on your Google Chrome browser.

Download the chrome version from the release page **[LC-Which-Company-chrome-x.x.x.zip](https://github.com/ssavi-ict/LC-Which-Company/releases/)**.
- ## Download the chrome version from the release page **[LC-Which-Company-chrome-x.x.x.zip](https://github.com/ssavi-ict/LC-Which-Company/releases/)**.
-----
1. Extract the downloaded ZIP file
2. On your `Google Chrome` browser, go to `Extensions`.
Expand All @@ -17,9 +17,9 @@ Download the chrome version from the release page **[LC-Which-Company-chrome-x.x
<br><br>
### **2. Activate on Mozila Firefox browser**

1. Go to this link - https://addons.mozilla.org/en-US/firefox/addon/leetcode-for-company/
- ## Install the extension from - https://addons.mozilla.org/en-US/firefox/addon/leetcode-for-company/

2. Install it using **Add to Firefox**.
- Click on **Add to Firefox**.

---
### **3. How to check which company asked a Problem ?**
Expand Down
Binary file not shown.
6 changes: 3 additions & 3 deletions chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "LC-Which Company",
"version": "1.0.3",
"name": "LeetCode Which Company",
"version": "1.0.4",
"homepage_url":"https://github.com/ssavi-ict/LC-Which-Company",
"description": "While solving a LeetCode problem this extension shows the name of companies who asked that problem.",
"manifest_version": 3,
"author": "Avik Sarkar",
"action":{
"default_popup": "popup.html",
"default_title": "LeetCode Company "
"default_title": "LeetCode Which Company"
},
"icons": {
"32": "res/32.png"
Expand Down
9 changes: 7 additions & 2 deletions chrome/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@ async function leetcode_company(){
text += "</p></center>";
document.getElementById("main-content").innerHTML = problem_name + text;
}
else{
document.getElementById("main-content").innerHTML = `<center><img src="res/404.gif" style="width: 400px;"></center>`;
else{
let text = "<center><p>";
text += "<p style='display: inline-block; border-radius: 2px; margin-bottom:5px; font-size:14px;'>&nbsp;<b>";
text += "This problem is either not asked by any Company.<br><br>OR<br><br>The company information not yet updated.<br>Please bear with us.<br>We will update the information soon.<br><br>";
text += "However, you can contribute if you have any information.<br>Click below button to Contribute.&nbsp; </b></p>&nbsp;";
text += "</p></center>";
document.getElementById("main-content").innerHTML = text;
}
}
else{
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LC-Which Company",
"version": "1.0.3",
"name": "LeetCode Which Company",
"version": "1.0.4",
"homepage_url":"https://github.com/ssavi-ict/LC-Which-Company",
"description": "While solving a LeetCode problem this extension shows the name of companies who asked that problem.",
"manifest_version": 2,
Expand Down
7 changes: 6 additions & 1 deletion firefox/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ async function leetcode_company(){
document.getElementById("main-content").innerHTML = problem_name + text;
}
else{
document.getElementById("main-content").innerHTML = `<center><img src="res/404.gif" style="width: 400px;"></center>`;
let text = "<center><p>";
text += "<p style='display: inline-block; border-radius: 2px; margin-bottom:5px; font-size:14px;'>&nbsp;<b>";
text += "This problem is either not asked by any Company.<br><br>OR<br><br>The company information not yet updated.<br>Please bear with us.<br>We will update the information soon.<br><br>";
text += "However, you can contribute if you have any information.<br>Click below button to Contribute.&nbsp; </b></p>&nbsp;";
text += "</p></center>";
document.getElementById("main-content").innerHTML = text;
}
}
else{
Expand Down

0 comments on commit d8e2831

Please sign in to comment.