From f36f346c5e6c22c35fbee7f3b69d6a054866f17c Mon Sep 17 00:00:00 2001 From: PeterFour Date: Sat, 15 Nov 2025 16:36:27 +0000 Subject: [PATCH] Add ProtonDB button --- _locales/en/messages.json | 6 ++++ _locales/fr/messages.json | 6 ++++ icons/protondb.svg | 42 +++++++++++++++++++++++++ manifest.json | 1 + options/options.html | 4 +++ scripts/community/gamehub.js | 30 ++++++++++++++++++ scripts/store/app.js | 59 ++++++++++++++++++++++++++++++++++++ 7 files changed, 148 insertions(+) create mode 100644 icons/protondb.svg diff --git a/_locales/en/messages.json b/_locales/en/messages.json index fd65f3b9c..b0fbd846f 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -33,6 +33,9 @@ "view_on_pcgamingwiki": { "message": "View on PCGamingWiki" }, + "view_on_protondb": { + "message": "View on ProtonDB" + }, "view_your_achievements": { "message": "Personal achievements" }, @@ -553,6 +556,9 @@ "options_button_pcgw": { "message": "Display PCGamingWiki button on product pages" }, + "options_button_protondb": { + "message": "Display ProtonDB button on product pages" + }, "options_button_sub": { "message": "Display a button on package pages" }, diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index 4a5575bc8..121b6e44d 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -31,6 +31,9 @@ "view_on_pcgamingwiki": { "message": "Voir sur PCGamingWiki" }, + "view_on_protondb": { + "message": "Voir sur ProtonDB" + }, "view_your_achievements": { "message": "Succès personnels" }, @@ -531,6 +534,9 @@ "options_button_pcgw": { "message": "Afficher le bouton PCGamingWiki sur les pages des produits" }, + "options_button_protondb": { + "message": "Afficher le bouton ProtonDB sur les pages des produits" + }, "options_button_sub": { "message": "Afficher un bouton sur les pages des packages" }, diff --git a/icons/protondb.svg b/icons/protondb.svg new file mode 100644 index 000000000..53dc01e32 --- /dev/null +++ b/icons/protondb.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + diff --git a/manifest.json b/manifest.json index fa436d78c..c702bb3de 100644 --- a/manifest.json +++ b/manifest.json @@ -71,6 +71,7 @@ "icons/white.svg", "icons/pcgamingwiki.svg", + "icons/protondb.svg", "icons/steamhunters.svg", "icons/image.svg", "icons/achievements_completed.svg", diff --git a/options/options.html b/options/options.html index 1e2f7bdc0..966d0e9fb 100644 --- a/options/options.html +++ b/options/options.html @@ -122,6 +122,10 @@

+