Steam Deck compatibility links on Steam
This snippet adds a link to ProtonDB and CheckMyDeck for the currently viewed game on Steam. You can either use the bookmarklet, or use the snippet directly by pasting it into the browser console.
Bookmarklet: Steam Deck compat. links.
((document) => {
const id = document.location.href.split('/')[4];
const container = document.createElement('div');
container.append(document.createElement('hr'));
const content = document.createElement('p');
container.append(content);
content.innerHTML = 'View on: <a target="_blank" href="https://checkmydeck.ofdgn.com/explore/apps/'+id+'">CheckMyDeck</a>, <a target="_blank" href="https://www.protondb.com/app/'+id+'">ProtonDB</a>';
document.querySelectorAll('.responsive_apppage_details_right')[1].append(content);
})(document);