Skip to content

Commit 4e30eca

Browse files
committed
fix id selector
1 parent 1786b34 commit 4e30eca

4 files changed

Lines changed: 24 additions & 5 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<h1 align=center><img src="icons48.png" alt="logo" /> New Tab Notes</h1>
2+
3+
<!-- <p align=center>
4+
<img alt="Mozilla Add-on" src="https://img.shields.io/amo/v/%7B3eacef21-a96d-4adb-942e-c4eb162bf00c%7D">
5+
<img src="https://img.shields.io/amo/rating/%7B3eacef21-a96d-4adb-942e-c4eb162bf00c%7D" />
6+
<img src="https://img.shields.io/amo/dw/%7B3eacef21-a96d-4adb-942e-c4eb162bf00c%7D" />
7+
<img src="https://img.shields.io/amo/users/%7B3eacef21-a96d-4adb-942e-c4eb162bf00c%7De" />
8+
<img src="https://img.shields.io/github/license/semanticdata/firefox-new-tab-notes" />
9+
</p> -->
10+
11+
A Firefox extension for simple notetaking in Firefox's New Tab.
12+
13+
## Acknowledgments
14+
15+
Icons used for all my extensions are part of <a href="https://uxwing.com/">UXWing</a>'s collection. Take a look at their <a href="https://uxwing.com/license">license</a>.
16+
17+
## License
18+
19+
Source code in this repository is available under the [MIT](LICENSE) license. You are free to use this code however you see fit. That said, some acknowledgement would be well received.

firefox-new-tab-notes.zip

2.33 KB
Binary file not shown.

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"strict_min_version": "60.0"
88
}
99
},
10-
"version": "0.1.0",
10+
"version": "0.1.1",
1111
"author": "semanticdata",
1212
"icons": {
1313
"48": "icon48.png"
@@ -17,7 +17,7 @@
1717
"storage"
1818
],
1919
"chrome_url_overrides": {
20-
"newtab": "newtab.html"
20+
"newtab": "new-tab.html"
2121
},
2222
"browser_action": {
2323
"browser_style": true,

newtabnotes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function getBrowser() {
3333

3434
function saveToDB() {
3535
data = {
36-
tab_note: document.querySelector("#notes").value
36+
tab_note: document.querySelector("#new-tab-notes").value
3737
};
3838
if (browser_type === "Chrome") {
3939
chrome.storage.sync.set(data, function() {});
@@ -46,13 +46,13 @@ function tabOpen(tab) {
4646
if (browser_type === "Chrome") {
4747
chrome.storage.sync.get(["tab_note"], function(result) {
4848
if (typeof result.tab_note !== "undefined") {
49-
document.querySelector("#notes").value = result.tab_note;
49+
document.querySelector("#new-tab-notes").value = result.tab_note;
5050
}
5151
});
5252
} else {
5353
browser_obj.storage.sync.get(["tab_note"]).then(result => {
5454
if (typeof result.tab_note !== "undefined") {
55-
document.querySelector("#notes").value = result.tab_note;
55+
document.querySelector("#new-tab-notes").value = result.tab_note;
5656
}
5757
});
5858
}

0 commit comments

Comments
 (0)