Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
steam bot
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 101. 102. 103. 104. 105. 106. 107. 108. 109. 110. 111. 112. 113. 114. 115. 116. 117. 118. 119. 120. 121. 122. 123. 124. 125. 126. 127. 128. 129. 130. 131. 132.
// ==UserScript== // @name Steam Community Market Bot // @namespace //benio.me // @version 1.1 // @description Instant buy. Sell and buy bot // @match http://steamcommunity.com/market/* // @copyright //benio.me // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js // ==/UserScript== Math.decimal = function(n, k){ var factor = Math.pow(10, k+1); n = Math.round(Math.round(n*factor)/10); return n/(factor/10); } jQuery.support.cors = true; jQuery(document).ready(function($){ /*$('.market_listing_price').each(function(){ $(this).html($.trim($(this).html().replace(' ', '').replace(',', '.').replace('€', ' €'))); }); $('.market_listing_right_cell.market_listing_their_price').each(function(){ var total=Math.decimal($.trim($(this).find('.market_listing_price.market_listing_price_with_fee').html()).slice(0, -2).replace(' ', '').replace(',', '.'), 2); var subtotal=Math.decimal($.trim($(this).find('.market_listing_price.market_listing_price_without_fee').html()).slice(0, -2).replace(' ', '').replace(',', '.'), 2); var fee=Math.decimal(total-subtotal, 2); $(this).find('.market_listing_price.market_listing_price_without_fee').each(function(){ $(this).css({ 'display': 'inline', 'color': 'grey' }) .insertBefore($(this).prev()) .after('<br>') .after($('<span>').addClass('market_listing_price').html(fee+' €').css({ 'display': 'inline', 'color': 'silver' })) .after('<br>'); }); });*/ // Instant Buy $('a.item_market_action_button.item_market_action_button_green') .click(function(){ var listingid=$(this).attr('href').split("'")[3]; /*$.ajax({ type: "POST", url: 'http://steamcommunity.com/market/buylisting/' + listingid, crossDomain: true, dataType: "xml", data: { 'sessionid': "1"+g_sessionID, 'currency': g_rgWalletInfo['wallet_currency'], 'subtotal': g_rgListingInfo[listingid]['converted_price'], 'fee': g_rgListingInfo[listingid]['converted_fee'], 'total': g_rgListingInfo[listingid]['converted_price'] + g_rgListingInfo[listingid]['converted_fee'] } }).done(function(){ location.reload(); }).fail(function(event, jqXHR, ajaxSettings, thrownError){ console.log('event: '+event+', jqXHR: '+jqXHR+', ajaxSettings: '+ajaxSettings+', thrownError: '+thrownError); });*/ new Ajax.Request( 'http://steamcommunity.com/market/buylisting/' + listingid, { method: 'post', parameters: { 'sessionid': g_sessionID, 'currency': g_rgWalletInfo['wallet_currency'], 'subtotal': g_rgListingInfo[listingid]['converted_price'], 'fee': g_rgListingInfo[listingid]['converted_fee'], 'total': g_rgListingInfo[listingid]['converted_price'] + g_rgListingInfo[listingid]['converted_fee'] }, onSuccess: function( transport ) { location.reload(); }, onFailure: function( transport ) { location.reload(); } }); return false; }) // Auto Buy var refresh=0; if(location.href=='http://steamcommunity.com/market/listings/753/Steam%20Trading%20Card%20Beta'){ refresh=Math.random()*6000+1000; for(listingid in g_rgListingInfo){ var total=g_rgListingInfo[listingid]['converted_price'] + g_rgListingInfo[listingid]['converted_fee']; if(total<12){ new Ajax.Request( 'http://steamcommunity.com/market/buylisting/' + listingid, { method: 'post', parameters: { 'sessionid': g_sessionID, 'currency': g_rgWalletInfo['wallet_currency'], 'subtotal': g_rgListingInfo[listingid]['converted_price'], 'fee': g_rgListingInfo[listingid]['converted_fee'], 'total': total }, onSuccess: function( transport ) { var lista=$('#listing_'+listingid+' a.item_market_action_button.item_market_action_button_green').attr('href').split("'"); var contextid=lista[5]; var assetid=lista[7]; new Ajax.Request( 'http://steamcommunity.com/market/sellitem/', { method: 'post', parameters: { 'sessionid': g_sessionID, 'appid': g_rgListingInfo[listingid]['publisher_fee_app'], 'contextid': contextid, 'assetid': assetid, 'amount': 1, 'price': 14 }, onSuccess: function( transport ) { location.reload(); }, onFailure: function( transport ) { location.reload(); } }); }, onFailure: function( transport ) { location.reload(); } }); refresh=0; break; } } } // Auto Recheck if(refresh){ window.setTimeout(function(){location.reload()}, refresh); } });
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011