initial push...

This commit is contained in:
Maxim Stewart 2020-05-02 06:29:14 -05:00
parent ee30aee508
commit 7f6ef4d0b2
7 changed files with 62 additions and 2 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

29
src/manifest.json Normal file
View File

@ -0,0 +1,29 @@
{
"manifest_version": 2,
"name": "template",
"version": "1.0.0",
"description": "template.",
"applications": {
"gecko": {
"id": "template@itdominator.com"
}
},
"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 Executable file
View File

@ -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 Normal file
View File

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

0
src/scripts/template.js Normal file
View File

4
src/styles/styles.css Normal file
View File

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