FAST SELL STEAM

Fast sell Steam items with current price

当前为 2014-11-01 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name FAST SELL STEAM
// @include  http*://steamcommunity.com/profiles/*/inventory/*
// @description Fast sell Steam items with current price
// @version 0.1
// @namespace https://greasyfork.org/users/6507
// ==/UserScript==
// 
// 
// 
(function (window, undefined) {  
    var w;
    if (typeof unsafeWindow != undefined) {
        w = unsafeWindow
    } else {
        w = window;
    }

    if (w.self != w.top) {
        return;
    }
	

	document.addEventListener('DOMContentLoaded', function() {

	jQuery(document).ready(function($) { 
		$('.item_desc_content').append('<a style="background: linear-gradient(to bottom, rgba(33,101,138,1) 5%,rgba(23,67,92,1) 95%)"class="item_market_action_button_contents item_market_action_button fs" href="#">FAST SELL</a>');
		$('.fs').on('click', sellOne);
	});





}, false);


	

	

})(window);

		
function sellOne() {
	

	
var inf = document.getElementById('iteminfo0_item_market_actions').innerHTML;

expr = /(\d+\.\d+)/;
price = expr.exec(inf);
price = price[1];



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();
}