braulio_holtz

Binance link futures

Mar 10th, 2020
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Binance link futures
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  Link to futures
  6. // @author       Sminem Bitnada
  7. // @grant        none
  8. // @include      https://www.binance.com/en/futures/*
  9. // @include      https://www.binance.com/br/futures/*
  10. // ==/UserScript==
  11.  
  12. (function() {
  13.     'use strict';
  14.     console.log("test");
  15.  
  16.     // Your code here...
  17.     setTimeout(() => {
  18.         $(".trade-history .kJqiXO").each(function(key, val) {
  19.             var actual = $(val).parent();
  20.  
  21.             var html = "<a href='https://www.binance.com/en/futures/"+actual.text()+"' style='color: #fff;'>"+actual.html()+"</a>";
  22.  
  23.             actual.html(html);
  24.         });
  25.     }, 10000);
  26.  
  27. })();
Advertisement
Add Comment
Please, Sign In to add comment