browser action
This commit is contained in:
parent
048724f142
commit
beea705bb0
5
_locales/de/messages.json
Normal file
5
_locales/de/messages.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"iconAction": {
|
||||||
|
"message": "Formular öffnen"
|
||||||
|
}
|
||||||
|
}
|
5
_locales/en/messages.json
Normal file
5
_locales/en/messages.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"iconAction": {
|
||||||
|
"message": "Open form"
|
||||||
|
}
|
||||||
|
}
|
6
bg.js
6
bg.js
@ -11,6 +11,12 @@ browser.runtime.onInstalled.addListener((ev) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
browser.browserAction.onClicked.addListener((tab, info) => {
|
||||||
|
browser.tabs.create({
|
||||||
|
url: "https://www.bahn.de/buchung/fahrgastrechte?einstiegtyp=BC100"
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
async function updateIsSignificant(previousVersion) {
|
async function updateIsSignificant(previousVersion) {
|
||||||
const significantUpdates = ["0.1.0", "0.2.0", "0.3.0"];
|
const significantUpdates = ["0.1.0", "0.2.0", "0.3.0"];
|
||||||
let currentVersion = (await browser.management.getSelf()).version;
|
let currentVersion = (await browser.management.getSelf()).version;
|
||||||
|
@ -2,11 +2,15 @@
|
|||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "BC100 Autofill",
|
"name": "BC100 Autofill",
|
||||||
"description": "Autofills your BahnCard 100 number and birthday into the passenger rights claim form.",
|
"description": "Autofills your BahnCard 100 number and birthday into the passenger rights claim form.",
|
||||||
"version": "0.3.6",
|
"version": "0.3.7",
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "icons/icon.png",
|
"48": "icons/icon.png",
|
||||||
"96": "icons/icon@2x.png"
|
"96": "icons/icon@2x.png"
|
||||||
},
|
},
|
||||||
|
"browser_action":{
|
||||||
|
"default_title":"__MSG_iconAction__"
|
||||||
|
},
|
||||||
|
"default_locale":"en",
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"matches": [
|
"matches": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user