Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fast sell Steam inventory items for the lowest market price
// ==UserScript==
// @name Steam Fast Sell
// @include http*://steamcommunity.com/profiles/*/inventory*
// @include http*://steamcommunity.com/id/*/inventory*
// @description Fast sell Steam items with current price
// @version 2
// @updateURL https://gist.github.com/kyuucr/84c2d99ea09a65fc904a6e40358171c2/raw/steam-fast-sell.user.js
// @namespace kyuucr-steam-fast-sell
// ==/UserScript==
//
// Based on https://greasyfork.org/en/scripts/6211-fast-sell-steam/ with fixes
//
(function (window, undefined) {
var w;
if (typeof unsafeWindow != undefined) {
w = unsafeWindow
} else {
w = window;
}
if (w.self != w.top) {
return;
}
jQuery(document).ready(function ($) {
$('.item_desc_content').append('<a class="item_market_action_button item_market_action_button_green fs">' +
'<span class="item_market_action_button_edge item_market_action_button_left"></span>' +
'<span class="item_market_action_button_contents">FAST SELL</span>' +
'<span class="item_market_action_button_edge item_market_action_button_right"></span>' +
'<span class="item_market_action_button_preload"></span>' +
'</a>');
$('.fs').on('click', fastSell);
});
}) (window);
function fastSell() {
inf = jQuery('div.inventory_iteminfo:visible').find('.item_market_actions').text();
expr = /(?:\d+[\., ]?)+/;
price = expr.exec(inf);
price = price[0];
SellCurrentSelection();
document.getElementById('market_sell_buyercurrency_input').value = price;
SellItemDialog.OnBuyerPriceInputKeyUp();
document.getElementById('market_sell_dialog_accept_ssa').checked = true;
document.getElementById('market_sell_dialog_accept').click();
document.getElementById('market_sell_dialog_ok').click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.