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');
    const content = document.createElement('p');
    content.innerHTML = 'View on: <a target="_blank" href="'+id+'">CheckMyDeck</a>, <a target="_blank" href="'+id+'">ProtonDB</a>';