Rozwinięcie poprzedniego skryptu z http://darkgl.pl/2017/10/30/szybkie-cofanie-skinow-z-rynku-steam/ Skrypt który pozwala w szybszy sposób cofać skiny z rynku steam niż standardowa wersja steam inventory helper. Skrypt przełącza się pomiędzy kolejnymi stronami marketu zaznacza i cofa wszystkie skiny które są na tych stronach.
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 > 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(); }); } }); } } else{ jQuery( jQuery( '.market_paging_pagelink.active' )[ 0 ].next() ).click(); setTimeout( function(){ startRemove(); } , 5000 ); } return false; }; function startRemove(){ jQuery( '.market_listing_right_cell > .select-checkbox' ).click(); RemoveListing(); }
Uruchomienie
startRemove()
Super Dzięki 🙂