Search on Steam

Search selected words on steam store

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Search on Steam
// @namespace    https://github.com/silevilence/SearchOnSteam
// @version      0.1
// @description  Search selected words on steam store
// @author       Silevilence
// @match        *://*/*
// @grant        GM_openInTab
// @run-at       context-menu
// @supportURL   https://github.com/silevilence/SearchOnSteam/issues
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Greasy+Fork+donation
// @icon         https://steamstore-a.akamaihd.net/public/shared/images/responsive/share_steam_logo.png
// ==/UserScript==

(function () {
    'use strict';

    // Your code here...
    var sel = document.getSelection();
    GM_openInTab("https://store.steampowered.com/search/?term=" + encodeURI(sel)
        .replace("&", "%26").replace("=", "%3D").replace("?", "%3F"));
})();