Prosty skrypt który pozwala w szybszy sposób cofać skiny z rynku steam niż standardowa wersja steam inventory helper.
Skrypt pomija wszystkie niepotrzebne animacje itp. co w przypadku dużej ilości itemów oszczędza mnóstwo czasu.
Dodatkowo przy błędzie steam cofanie działa dalej a nie zatrzymuje się.
Wklejamy w konsole przeglądarki
Ajax.Responders.register({
onException: function() {
$J('#' + idl).remove();
RemoveListing();
}
});
Ajax.Responders.register({
onException: function(request, exception) {
(function() {
throw exception;
}).defer();
}
});
var RemoveListing = function() {
var cks = $J('.market_listing_row .select-checkbox:visible:checked');
if (cks.length & gt; 0) {
var idl = $J(cks[0]).parents('.market_recent_listing_row').attr('id');
if (idl.indexOf('mylisting') == 0) {
var listingid = idl.substring(10);
$J('#' + idl + ' .market_listing_edit_buttons.actual_content a').html('Removing...');
try {
new Ajax.Request(window.location.protocol + '//steamcommunity.com/market/removelisting/' + listingid, {
method: 'post',
parameters: {
sessionid: g_sessionID
},
onSuccess: function(transport) {
$J('#' + idl).remove();
RemoveListing();
},
onFailure: function(transport) {
$J('#' + idl).remove();
},
onException: function(request, exception) {
(function() {
throw exception;
}).defer();
}
});
} catch (err) {
console.log(err);
RemoveListing();
}
} else if (idl.indexOf('mybuyorder') == 0) {
var buyingid = idl.substring(11);
$J('#' + idl + ' .market_listing_edit_buttons.actual_content a').html('Canceling...');
new Ajax.Request('http://steamcommunity.com/market/cancelbuyorder/', {
method: 'post',
parameters: {
sessionid: g_sessionID,
buy_orderid: buyingid
},
onSuccess: function(transport) {
$J('#' + idl).hide(300, function() {
$J('#' + idl).remove();
RemoveListing();
});
},
onFailure: function(transport) {
$J('#' + idl).hide(300, function() {
$J('#' + idl).remove();
});
}
});
}
}
return false;
};
Uruchomienie
RemoveListing()

Jeden komentarz o “Szybkie cofanie skinów z rynku Steam”