Skip to content

Commit f166ee8

Browse files
authored
Merge pull request #15 from mojira/v0.2
Release version 0.2
2 parents 357f50d + 940d751 commit f166ee8

14 files changed

+7271
-77
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
web-ext-artifacts
2-
node_modules
1+
lib
2+
node_modules
3+
web-ext-artifacts

README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,28 @@ This is a browser extension made for simplifying the mod and helper workflow on
77

88
On top of that, it always keeps the messages up-to-date with the latest version from the `helper-messages` repository.
99

10-
As of right now, the extension has only been tested in Mozilla Firefox. It is possible that it works in other browsers like Chrome or Opera as well, but those are currently unsupported.
10+
This extension has primarily been created for and tested in Mozilla Firefox. However, it should also work in Chromium-based browsers, such as Google Chrome, Opera, and modern versions of Microsoft Edge.
1111

1212
⚠ Please note that the helper messages may only be used on the bug tracker by helpers, moderators or Mojang staff. Do not use them yourself if you do not belong to one of these groups as it may confuse users regarding your role.
1313

1414
## Installation
15-
1. Download the latest version of the extension from the [releases](https://github.com/mojira/message-extension/releases) page.
16-
2. Open `about:addons` in your browser
17-
3. Click on the gear icon
18-
4. Select "Install Add-on from File..."
19-
5. Select the downloaded file
15+
### Firefox
16+
1. Select the latest version of the extension on the the [releases](https://github.com/mojira/message-extension/releases) page.
17+
2. Click on the `.xpi` file
18+
3. Follow the instructions on the popups that show up in order to install the extension
19+
20+
You now have installed the extension successfully. If this is enabled in the browser settings, it will be automatically updated whenever there's a new version of it available.
21+
22+
### Google Chrome and other Chromium-based browsers
23+
1. Select the latest version of the extension on the the [releases](https://github.com/mojira/message-extension/releases) page.
24+
2. Download the `.zip` file
25+
3. Extract the `.zip` file into a folder and place it somewhere on your system
26+
4. Open `chrome://extensions`
27+
5. Enable developer mode
28+
6. Click on "Load unpacked extension"
29+
7. Select the folder you placed the source files in
30+
31+
You now have installed the extension successfully. It will not be automatically updated, and on every browser restart you will be warned about having developer extensions enabled.
2032

2133
## Usage
2234
When the addon recognizes a Mojira text field, it automatically highlights it in a green color to indicate that the addon is active. At the same time, it adds an additional "Add Message" button to the toolbar of that text field. You can use that button to insert messages and view all available messages along with their shortcuts.
@@ -41,10 +53,12 @@ You can configure the addon by clicking the Mojira icon in the browser's toolbar
4153
Issues and pull requests are always very much appreciated. If you want to help developing the extension, here are a few tips:
4254

4355
* Run `npm i` in order to install the needed dependencies. Currently this only includes the type definitions for web extensions.
44-
* Run `npm i -g web-ext` in order to install some handy developer tools for web extension development.
56+
* Run `npm run build` in order to build the current version of the extension and to load the required dependencies into the correct folder.
4557
* Run `web-ext run` in order to launch a blank instance of Firefox where your addon is running. The addon is reloaded every time a file is changed.
4658
* You can visit `about:debugging` in that Firefox instance and access the addon's console and dev interface from the "This Firefox" tab.
47-
* You can run `web-ext lint --self-hosted` in order to check whether the addon has any issues that might prevent it from being signed.
59+
* You can run `npm run lint` in order to check whether the addon has any issues that might prevent it from being signed.
4860

4961
## Publishing
5062
When a new version is released, it first needs to be signed by Mozilla. After this is done, the addon file is uploaded to the "releases" page and the version manifest in the `releases` branch is updated.
63+
64+
For the Chromium version of the extension, the file from `npm run build` can directly be used.

manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Mojira Message Extension",
4-
"version": "0.1",
4+
"version": "0.2",
55

66
"description": "Easily access helper messages directly on Mojira by using shortcuts. Please note that the helper messages may only be used by Mojira helpers, Mojira moderators, and Mojang staff.",
77

@@ -39,6 +39,7 @@
3939
"src/styling.css"
4040
],
4141
"js": [
42+
"lib/browser-polyfill.min.js",
4243
"src/util/util.js",
4344
"src/main.js"
4445
]

0 commit comments

Comments
 (0)