Open steam pages in client

Adds a button to open the page in steam client

// ==UserScript==
// @name        Open steam pages in client
// @namespace   gjwse90gj98we
// @include     https://*steampowered.com*
// @include     https://*steamcommunity.com*
// @grant       none
// @version     1.0
// @author      anon
// @description Adds a button to open the page in steam client
// ==/UserScript==

(function () {
var link = document.createElement("a");
link.className = "global_action_link"
link.href = "steam://openurl/" + window.location.href
link.appendChild(document.createTextNode("open in app"));
var page = document.getElementById("global_action_menu");
page.appendChild(link);
})();