Open in Itch App Floating Button

Add an extra floating button that hopefully leads to the same page in Itch App

// ==UserScript==
// @name         Open in Itch App Floating Button
// @namespace    https://itch.io/
// @version      2025-05-26
// @description  Add an extra floating button that hopefully leads to  the same page in Itch App
// @author       Dimava
// @match        https://*.itch.io/*
// @match        https://itch.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=itch.io
// @grant        none
// @license MIT 
// ==/UserScript==

(function() {
    'use strict';

    document.querySelector('#user_tools').insertAdjacentHTML(
    'beforeEnd',
    `
    <li>
      <a class="action_btn"
         href="itch:${document.querySelector('[name="itch:path"]').content}"
      >
        <span class="icon icon-download"></span>
        Open in Itch App
      </a>
    </li>
    `
)

})();