Browse Source

initial push...

master
Maxim Stewart 1 year ago
parent
commit
7f6ef4d0b2
  1. 12
      README.md
  2. BIN
      src/images/icons/template.png
  3. 29
      src/manifest.json
  4. 13
      src/pages/template.html
  5. 6
      src/scripts/events.js
  6. 0
      src/scripts/template.js
  7. 4
      src/styles/styles.css

12
README.md

@ -1,2 +1,10 @@
# Firefox-Plugin-Template
This is a template to quickly start developing a Firefox plugin/extension.
# template
template works to improve...
<br/>
# Download
https://addons.mozilla.org/en-US/firefox/addon/</your path>
# Version: 1.0.0

BIN
src/images/icons/template.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

29
src/manifest.json

@ -0,0 +1,29 @@
{
"manifest_version": 2,
"name": "template",
"version": "1.0.0",
"description": "template.",
"applications": {
"gecko": {
"id": "[email protected]"
}
},
"icons": {
"48": "images/icons/template.png",
"96": "images/icons/template.png"
},
"permissions": [
"activeTab",
"tabs"
],
"browser_action": {
"default_icon": "images/icons/template.png",
"default_title": "template",
"default_popup": "pages/template.html"
}
}

13
src/pages/template.html

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../styles/styles.css"/>
</head>
<body>
<script src="../scripts/events.js"></script>
<script src="../scripts/template.js"></script>
</body>
</html>

6
src/scripts/events.js

@ -0,0 +1,6 @@
document.addEventListener("click", (e) => {
if (e.button == 0) { // Left click
if (e.target.tagName == "") {
}
}
});

0
src/scripts/template.js

4
src/styles/styles.css

@ -0,0 +1,4 @@
body, html {
padding: 0em;
margin: 0em;
}
Loading…
Cancel
Save