Steam QuickLaunch

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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