mirror of
https://github.com/Steffo99/chakra-magic.git
synced 2024-12-22 22:54:19 +00:00
Add browser action
This commit is contained in:
parent
c68aee6880
commit
788817f643
3 changed files with 46 additions and 4 deletions
26
README.md
26
README.md
|
@ -1,3 +1,29 @@
|
||||||
# Chakra Magic
|
# Chakra Magic
|
||||||
|
|
||||||
A WebExtension wrapper for [Illuminate](https://github.com/bongikairu/illuminate)!
|
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.
|
||||||
|
|
7
extension/background.js
Normal file
7
extension/background.js
Normal file
|
@ -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);
|
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"name": "Chakra Magic",
|
"name": "Chakra Magic",
|
||||||
"version": "2019.09.29.1",
|
"version": "2019.09.29.2",
|
||||||
"developer": {
|
"developer": {
|
||||||
"name": "Stefano Pigozzi",
|
"name": "Stefano Pigozzi",
|
||||||
"url": "https://github.com/Steffo99/instant-view-opener"
|
"url": "https://github.com/Steffo99/instant-view-opener"
|
||||||
|
@ -16,7 +16,9 @@
|
||||||
|
|
||||||
"description": "Display which games you were reported and commended in!",
|
"description": "Display which games you were reported and commended in!",
|
||||||
|
|
||||||
"permissions": [],
|
"background": {
|
||||||
|
"scripts": ["background.js"]
|
||||||
|
},
|
||||||
|
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
|
@ -28,5 +30,12 @@
|
||||||
|
|
||||||
"icons": {
|
"icons": {
|
||||||
"128": "icon128.png"
|
"128": "icon128.png"
|
||||||
|
},
|
||||||
|
|
||||||
|
"browser_action": {
|
||||||
|
"default_icon": {
|
||||||
|
"128": "icon128.png"
|
||||||
|
},
|
||||||
|
"default_title": "Open reports/commends page"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue