1
Fork 0
mirror of https://github.com/Steffo99/chakra-magic.git synced 2024-12-22 22:54:19 +00:00
chakra-magic/extension/background.js

12 lines
368 B
JavaScript
Raw Normal View History

2019-10-02 08:48:18 +00:00
let thisBrowser = null;
if(!thisBrowser) try { thisBrowser = browser; } catch(e) {}
if(!thisBrowser) try { thisBrowser = chrome; } catch(e) {}
2019-09-29 14:35:05 +00:00
function openPage() {
2019-10-02 08:48:18 +00:00
thisBrowser.tabs.create({
2019-09-29 14:35:05 +00:00
url: "https://steamcommunity.com/my/gcpd/570/?category=Account&tab=MatchPlayerReportIncoming"
});
}
2019-10-02 08:48:18 +00:00
thisBrowser.browserAction.onClicked.addListener(openPage);