Steam QuickLaunch

Launches games in the "Recent Game Activity" section of a Steam profile at the press of a button

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Steam QuickLaunch
// @namespace    http://github.com/scoliono
// @version      1.0
// @description  Launches games in the "Recent Game Activity" section of a Steam profile at the press of a button
// @author       scoliono
// @match        http*://steamcommunity.com/*/*
// @grant        none
// ==/UserScript==

var g=document.getElementsByClassName('game_info');
for (var i=0; i<g.length; i++)
{
    var anchor = document.createElement("a");
    var txt = document.createTextNode("Launch game");
    anchor.setAttribute("class","whitelink");
    var appID=document.getElementsByClassName('game_name')[i].childNodes[0].getAttribute('href').match(/\d+/g);
    anchor.setAttribute("href","steam://run/"+appID);
    anchor.appendChild(txt);
    g[i].appendChild(document.createElement("br"));
    g[i].appendChild(anchor);
}