NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Bittrex Quick buy and sell // @namespace http://tampermonkey.net/ // @version 0.1 // @description Adds quick sell and bu buttons. For bid adds 0.00000001 and select max. For ask drops 0.00000001 like buy action. // @author Can // @license MIT // @match https://bittrex.com/Market/Index?MarketName* // @grant none // ==/UserScript== (function () { 'use strict'; jQuery('#ifrm').height(450); (function () { var $buyForm = $('[name="price_Buy"]').parents('form'); var $button = $('<button class="btn btn-success" type="button">Quick Buy</button>'); var $buyButton = $buyForm.find('[type=submit]'); $buyButton.wrap('<div id="buyWrapper" class="btn-group">'); $buyForm.find('div:last-child').addClass('text-center'); $buyButton.css('margin-top', 0); $button.click(function () { var $max = $('[name="quantity_Buy"]').parents('.input-group').find('button:first'); if (!$max.is('.active')) { $max.click(); } var value = parseFloat($('#buyOrdersTable tbody tr:first td:nth-child(5)').text()); var newValue = value + 0.00000001; $('[name="price_Buy"]').val(newValue).trigger('change'); $buyButton.click(); }); $('#buyWrapper').append($button); })(); (function () { var $buyForm = $('[name="price_Sell"]').parents('form'); var $button = $('<button class="btn btn-success" type="button">Quick Sell</button>'); var $buyButton = $buyForm.find('[type=submit]'); $buyButton.wrap('<div id="sellWrapper" class="btn-group">'); $buyForm.find('div:last-child').addClass('text-center'); $buyButton.css('margin-top', 0); $button.click(function () { var $max = $('[name="quantity_Sell"]').parents('.input-group').find('button:first'); if (!$max.is('.active')) { $max.click(); } var value = parseFloat($('#sellOrdersTable tbody tr:first td:nth-child(5)').text()); var newValue = value - 0.00000001; $('[name="price_Sell"]').val(newValue).trigger('change'); $buyButton.click(); }); $('#sellWrapper').append($button); })(); })();