Skip to content

Commit d8e2831

Browse files
authored
Merge pull request #23 from ssavi-ict/company_info
v1.0.4 updated
2 parents e74b1d9 + 636c79c commit d8e2831

File tree

7 files changed

+21
-11
lines changed

7 files changed

+21
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
### **1. Activate on Google Chrome browser**
77
To activate this extension on your Google Chrome browser.
88

9-
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/)**.
9+
- ## 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/)**.
1010
-----
1111
1. Extract the downloaded ZIP file
1212
2. On your `Google Chrome` browser, go to `Extensions`.
@@ -17,9 +17,9 @@ Download the chrome version from the release page **[LC-Which-Company-chrome-x.x
1717
<br><br>
1818
### **2. Activate on Mozila Firefox browser**
1919

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

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

2424
---
2525
### **3. How to check which company asked a Problem ?**

chrome/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "LC-Which Company",
3-
"version": "1.0.3",
2+
"name": "LeetCode Which Company",
3+
"version": "1.0.4",
44
"homepage_url":"https://github.com/ssavi-ict/LC-Which-Company",
55
"description": "While solving a LeetCode problem this extension shows the name of companies who asked that problem.",
66
"manifest_version": 3,
77
"author": "Avik Sarkar",
88
"action":{
99
"default_popup": "popup.html",
10-
"default_title": "LeetCode Company "
10+
"default_title": "LeetCode Which Company"
1111
},
1212
"icons": {
1313
"32": "res/32.png"

chrome/popup.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,13 @@ async function leetcode_company(){
4646
text += "</p></center>";
4747
document.getElementById("main-content").innerHTML = problem_name + text;
4848
}
49-
else{
50-
document.getElementById("main-content").innerHTML = `<center><img src="res/404.gif" style="width: 400px;"></center>`;
49+
else{
50+
let text = "<center><p>";
51+
text += "<p style='display: inline-block; border-radius: 2px; margin-bottom:5px; font-size:14px;'>&nbsp;<b>";
52+
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>";
53+
text += "However, you can contribute if you have any information.<br>Click below button to Contribute.&nbsp; </b></p>&nbsp;";
54+
text += "</p></center>";
55+
document.getElementById("main-content").innerHTML = text;
5156
}
5257
}
5358
else{

firefox/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "LC-Which Company",
3-
"version": "1.0.3",
2+
"name": "LeetCode Which Company",
3+
"version": "1.0.4",
44
"homepage_url":"https://github.com/ssavi-ict/LC-Which-Company",
55
"description": "While solving a LeetCode problem this extension shows the name of companies who asked that problem.",
66
"manifest_version": 2,

firefox/popup.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ async function leetcode_company(){
4747
document.getElementById("main-content").innerHTML = problem_name + text;
4848
}
4949
else{
50-
document.getElementById("main-content").innerHTML = `<center><img src="res/404.gif" style="width: 400px;"></center>`;
50+
let text = "<center><p>";
51+
text += "<p style='display: inline-block; border-radius: 2px; margin-bottom:5px; font-size:14px;'>&nbsp;<b>";
52+
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>";
53+
text += "However, you can contribute if you have any information.<br>Click below button to Contribute.&nbsp; </b></p>&nbsp;";
54+
text += "</p></center>";
55+
document.getElementById("main-content").innerHTML = text;
5156
}
5257
}
5358
else{

0 commit comments

Comments
 (0)