Title pretty much says it all, but I will elaborate.

With the rising popularity of the steam deck it would be really nice and cool if you could add on the giveaway page a proton DB rating for the games.

This would make finding games not verified but rated as gold and platinum on Linux easier. I have a plug in on my deck that shows a little symbol on each game in my library. Surely something similar could be achieved here.

https://www.protondb.com/

10 months ago

Comment has been collapsed.

I support the idea. I'm a Steam deck user and would love this addition to the site. Bump

10 months ago
Permalink

Comment has been collapsed.

ProtonDB don't have any public API, and parsing html pages is too much bother (and not nice towards protondb maintainers on top of it). So, while it would be nice, there is no technical possibility to do that.

10 months ago
Permalink

Comment has been collapsed.

But it can be achieved from their reporting dumps for example.

https://github.com/maxpoulin64/protondb-api/blob/master/README.md

10 months ago
Permalink

Comment has been collapsed.

Then what is the plug in on my deck using? Its just adds a little symbol to the games and if I click it, I go to the proton dB page for that game.

10 months ago
Permalink

Comment has been collapsed.

You should reply by using the reply button under their comment, this way they don't get a notification, likely throttling the dialogue.

10 months ago
Permalink

Comment has been collapsed.

I was on my mobile I couldnt see it

10 months ago
Permalink

Comment has been collapsed.

Not a problem ^^
If it can be done it's a nice addition.

10 months ago
Permalink

Comment has been collapsed.

Yes ! I would love it too.

Or maybe, use the "Steamdeck Verified" status in steam (I don't know if it is avaiable in the steam api (it look like fantical get it, so i sould be avaiable))

10 months ago*
Permalink

Comment has been collapsed.

+1

10 months ago
Permalink

Comment has been collapsed.

I saw a userscript somewhere for this.

I don't think this should be implemented, since I think it's a really small subset of users who own the device and it would make unnecessary strain on the server and it would add unnecessary maintenance. This can be done from the browser with a userscript if there isn't one already.

Linux users are under 2% and 40% of that is steam deck if I'm not mistaken. Probably the same percentage here.

10 months ago*
Permalink

Comment has been collapsed.

Here is a userscript to add a link with the protondb rating to the giveaway page.
(Edit: "native" does not work, but ESGST can show if it is native to linux)

// ==UserScript==
// @name         SG Proton
// @namespace    http://tampermonkey.net/
// @version      2024-01-23
// @description  try to take over the world!
// @author       You
// @match        https://www.steamgifts.com/giveaway/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=steamgifts.com
// @grant        GM_xmlhttpRequest
// @connect      protondb.com
// ==/UserScript==

(function() {
    'use strict';

    const steam = document.body.querySelector('a.global__image-outer-wrap--game-large');

    if ( steam.href.startsWith('https://store.steampowered.com/app/') )
    {
        const appId = steam.href.slice(35,-1);
        const proton = "https://www.protondb.com/api/v1/reports/summaries/" + appId + ".json"

        GM.xmlHttpRequest({
            method: "GET",
            url: "https://www.protondb.com/api/v1/reports/summaries/" + appId + ".json",
            onload: function(response) {
                let summary = JSON.parse (response.responseText);
                let container = document.body.querySelector('div.featured__heading');
                let el = document.createElement('a');
                el.href = 'https://www.protondb.com/app/' + appId;
                el.target = '_blank';
                el.innerHTML = '  ' + summary.tier + '  ';
                switch ( summary.tier )
                {
                    case 'native':
                        el.style.backgroundColor = 'rgb(0, 128, 0)';
                        break;
                    case 'platinum':
                        el.style.backgroundColor = 'rgb(180, 199, 220)';
                        break;
                    case 'gold':
                        el.style.backgroundColor = 'rgb(207, 181, 59)';
                        break;
                    case 'silver':
                        el.style.backgroundColor = 'rgb(166, 166, 166)';
                        break;
                    case 'bronze':
                        el.style.backgroundColor = 'rgb(205, 127, 50)';
                        break;
                    case 'borked':
                        el.style.backgroundColor = 'rgb(255, 0, 0)';
                        break;
                };
                el.style.color = 'black';
                el.style.borderRadius = '4px';
                container.appendChild(el);
            }
        });
    }
})();
9 months ago*
Permalink

Comment has been collapsed.

Wow, so they do have api after all!

9 months ago
Permalink

Comment has been collapsed.

Yes, I got it from the ProtonDB for Steam browser extention

9 months ago
Permalink

Comment has been collapsed.

Another userscript, based on this one, it uses shields.io dynamic badge instead of making an AJAX call ourselves:

// ==UserScript==
// @name         SteamGifts - ProtonDB Status
// @namespace    https://www.steamgifts.com/user/ormax3
// @author       ormax3
// @match        https://www.steamgifts.com/giveaway/*
// @icon         https://cdn.steamgifts.com/img/favicon.ico
// ==/UserScript==

function createProtonBadge(appid) {
  let img = document.createElement('img');
  img.src = `https://img.shields.io/badge/dynamic/json?url=https://www.protondb.com/api/v1/reports/summaries/${appid}.json&query=$.trendingTier&label=ProtonDB&logo=protondb&color=e3e3e3`;
  let a = document.createElement('a');
  a.rel = 'nofollow noopener';
  a.target = '_blank';
  a.href = `https://www.protondb.com/app/${appid}`;
  a.title = 'ProtonDB';
  a.append(img);
  return a;
}

let container = document.querySelector('.featured__heading');
if (!container) return;
let appid = container.querySelector('a[href^="https://store.steampowered.com/app/"]')?.href.match(/\d+/)[0];
if (!appid) return;
container.after(createProtonBadge(appid));
View attached image.
9 months ago*
Permalink

Comment has been collapsed.

I like the idea. But in three years, I haven't seen a single game on Steam that doesn't work) The Proton team did a great job.
Ofcourse, if we don't count something like Fall Guys

9 months ago
Permalink

Comment has been collapsed.

9 months ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.