Steam QuickLaunch

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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);
}