Results 1 to 4 of 4

Thread: Ссылка вставки суммы покупки/продажи [userscript]

  1. #1
    Новичок
    Join Date
    Jun 2018
    Posts
    19

    Лампочка Ссылка вставки суммы покупки/продажи [userscript]

    Ссылка вставки максимальной суммы покупки/продажи текущей монеты
    https://pastebin.com/raw/87GvvZuR

    Code:
    // ==UserScript==
    // @name         OTLI
    // @namespace    OpenTrade Link Inserter
    // @version      0.1
    // @description  Insert price links
    // @author       DEMENTOR
    // @match        https://trade.multicoins.org/
    // @require      https://code.jquery.com/jquery-3.2.1.min.js
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
        setInterval(function(){
            var buy_amount = $('#id_buy_balance').text();
            var sell_amount = $('#id_sell_balance').text();
    
            $('#id_buy_balance').html('<a href="#">'+ buy_amount +'</a>');
            $('#id_sell_balance').html('<a href="#">'+ sell_amount +'</a>');
        },1000);
    
        $('#id_buy_balance').click(function(e){
            var buy_amount = $('#id_buy_balance').text();
            var BuyPrice = $('#inputBuyPrice').val();
            $('#inputBuyAmount').val((buy_amount/BuyPrice)*0.999);
        });
    
        $('#id_sell_balance').click(function(e){
            var sell_amount = $('#id_sell_balance').text();
            $('#inputSellAmount').val(sell_amount);
        });
    })();
    Attached Images Attached Images

  2. #2
    Администратор
    Join Date
    Oct 2017
    Posts
    540
    Вставил это в движок

  3. #3
    Новичок
    Join Date
    Jun 2018
    Posts
    19
    Quote Originally Posted by kzv View Post
    Вставил это в движок
    спасибо! Так удобнее

  4. #4
    Местный Alekserk's Avatar
    Join Date
    Feb 2018
    Posts
    239
    супер! отличная идея! Dementor, давайте еще новые идеи по улучшению

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •