browser action
This commit is contained in:
		
							
								
								
									
										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) {
 | 
			
		||||
    const significantUpdates = ["0.1.0", "0.2.0", "0.3.0"];
 | 
			
		||||
    let currentVersion = (await browser.management.getSelf()).version;
 | 
			
		||||
 
 | 
			
		||||
@@ -2,11 +2,15 @@
 | 
			
		||||
	"manifest_version": 2,
 | 
			
		||||
	"name": "BC100 Autofill",
 | 
			
		||||
	"description": "Autofills your BahnCard 100 number and birthday into the passenger rights claim form.",
 | 
			
		||||
	"version": "0.3.6",
 | 
			
		||||
	"version": "0.3.7",
 | 
			
		||||
	"icons": {
 | 
			
		||||
		"48": "icons/icon.png",
 | 
			
		||||
		"96": "icons/icon@2x.png"
 | 
			
		||||
	},
 | 
			
		||||
	"browser_action":{
 | 
			
		||||
		"default_title":"__MSG_iconAction__"
 | 
			
		||||
	},
 | 
			
		||||
	"default_locale":"en",
 | 
			
		||||
	"content_scripts": [
 | 
			
		||||
		{
 | 
			
		||||
			"matches": [
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user