diff --git a/README.md b/README.md index 7d22621..c7cc05d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,29 @@ # Chakra Magic -A WebExtension wrapper for [Illuminate](https://github.com/bongikairu/illuminate)! \ No newline at end of file +A WebExtension wrapper for [Illuminate](https://github.com/bongikairu/illuminate)! + +## Licensing + +### Illuminate + +MIT License + +Copyright (c) 2018 Sutas Nakasawek + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/extension/background.js b/extension/background.js new file mode 100644 index 0000000..e3b517b --- /dev/null +++ b/extension/background.js @@ -0,0 +1,7 @@ +function openPage() { + browser.tabs.create({ + url: "https://steamcommunity.com/my/gcpd/570/?category=Account&tab=MatchPlayerReportIncoming" + }); +} + +browser.browserAction.onClicked.addListener(openPage); \ No newline at end of file diff --git a/extension/manifest.json b/extension/manifest.json index 7f81266..132dce2 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -8,7 +8,7 @@ }, "name": "Chakra Magic", - "version": "2019.09.29.1", + "version": "2019.09.29.2", "developer": { "name": "Stefano Pigozzi", "url": "https://github.com/Steffo99/instant-view-opener" @@ -16,7 +16,9 @@ "description": "Display which games you were reported and commended in!", - "permissions": [], + "background": { + "scripts": ["background.js"] + }, "content_scripts": [ { @@ -28,5 +30,12 @@ "icons": { "128": "icon128.png" + }, + + "browser_action": { + "default_icon": { + "128": "icon128.png" + }, + "default_title": "Open reports/commends page" } -} \ No newline at end of file +}