Compare commits

..

No commits in common. "f263c0358fe3a71325d8b27350fc9518e22e90a7" and "ce720da6fda4838ad60a0aefc223a65d7ecff7e9" have entirely different histories.

3 changed files with 13 additions and 12 deletions

View File

@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "SGDB Button on Steam",
"version": "1.0.2",
"version": "1.0.1",
"description": "Adds a button on Steam game pages to bring you to its SteamGridDB entry.",
"icons": {
"16": "icons/icon_16.png",
@ -31,7 +31,7 @@
],
"web_accessible_resources": [
{
"resources": [ "icons/sgdb_16.png" ],
"resources": [ "icons/sgdb_16.png", "icons/nes_32.png" ],
"matches": [ "*://store.steampowered.com/app/*", "*://steamcommunity.com/app/*" ]
}
]

View File

@ -41,11 +41,20 @@
height: 22px;
}
</style>
<script src="popup.js" defer></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
const headerIcon = document.querySelector("#sgdb-icon");
const nesIcon = document.querySelector("#nes-icon");
const giteaIcon = document.createElement("#gitea-icon");
headerIcon.src = browser.runtime.getURL("icons/icon_32.png");
nesIcon.src = browser.runtime.getURL("icons/nes_32.png");
giteaIcon.src = browser.runtime.getURL("icons/gitea_32.png");
});
</script>
</head>
<body>
<h2>
<img id="sgdb-icon" src="" style="vertical-align: middle; display: inline"> SGBD Button on Steam
<img id="header-icon" src="" style="vertical-align: middle; display: inline"> SGBD Button on Steam
</h2>
<a class="btn" href="https://www.steamgriddb.com/profile/76561198274324627">
<span data-tooltip-text="View my profile">

View File

@ -1,8 +0,0 @@
document.addEventListener("DOMContentLoaded", function() {
const headerIcon = document.querySelector("#sgdb-icon");
const nesIcon = document.querySelector("#nes-icon");
const giteaIcon = document.querySelector("#gitea-icon");
headerIcon.src = browser.runtime.getURL("icons/icon_32.png");
nesIcon.src = browser.runtime.getURL("icons/nes_32.png");
giteaIcon.src = browser.runtime.getURL("icons/gitea_32.png");
});