Skip to content

Instantly share code, notes, and snippets.

@braulioholtz
Created March 10, 2020 21:21
Show Gist options
  • Save braulioholtz/6dbcca17388c45db128f28c117b48196 to your computer and use it in GitHub Desktop.
Save braulioholtz/6dbcca17388c45db128f28c117b48196 to your computer and use it in GitHub Desktop.
Binance - link to futures
// ==UserScript==
// @name Binance link futures
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Link to futures
// @author Sminem Bitnada
// @grant none
// @include https://www.binance.com/en/futures/*
// @include https://www.binance.com/br/futures/*
// @require https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==
(function() {
'use strict';
console.log("test");
// Your code here...
setTimeout(() => {
$(".trade-history .kJqiXO").each(function(key, val) {
var actual = $(val).parent();
var html = "<a href='https://www.binance.com/en/futures/"+actual.text()+"' style='color: #fff;'>"+actual.html()+"</a>";
actual.html(html);
});
}, 10000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment