Open In Steam

Open In Steam adds a button to all Steam sites to open the page in Steam.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name           Open In Steam
// @namespace      http://tampermonkey.net/
// @version        0.2
// @description    Open In Steam adds a button to all Steam sites to open the page in Steam.
// @author         rf5860
// @match          /https:\/\/.*steam.*\.com\/.*/
// @match          http*://steamcommunity.com/*
// @match          http*://store.steampowered.com/*
// @icon           https://www.google.com/s2/favicons?domain=steampowered.com
// @grant          none
// @license        MIT
// ==/UserScript==

var language_pulldown = document.querySelector("#language_pulldown");
var openInSteamLink = document.createElement('a');
openInSteamLink.appendChild(document.createTextNode("Open in steam"));
openInSteamLink.className = "global_action_link";
openInSteamLink.title = "Open in steam";
openInSteamLink.href = `steam://openurl/${document.location.href}`;
language_pulldown.parentElement.insertBefore(openInSteamLink, language_pulldown);