Last active
August 27, 2019 00:31
-
-
Save r5v9/8a5f861c2d7c5d25e5ded07fa683d351 to your computer and use it in GitHub Desktop.
Tradingview rotate userscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Tradingview Rotate | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.tradingview.com/chart/NrwqIuhp/ | |
// @grant none | |
// ==/UserScript== | |
symbols = [] | |
idx = 0 | |
function next_symbol() { | |
symbols[idx].click() | |
idx += 1 | |
if (idx == symbols.length) idx = 0; | |
setTimeout(function(){ | |
$.find(".apply-common-tooltip:contains(5D)")[0].click() | |
}, 500); | |
setTimeout(function(){ | |
next_symbol() | |
}, 10000); | |
} | |
(function() { | |
window.addEventListener('load', function() { | |
symbols = $.find('.symbol-list-item') | |
next_symbol() | |
}, false); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment