Skip to content

Instantly share code, notes, and snippets.

@r5v9
Last active August 27, 2019 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r5v9/8a5f861c2d7c5d25e5ded07fa683d351 to your computer and use it in GitHub Desktop.
Save r5v9/8a5f861c2d7c5d25e5ded07fa683d351 to your computer and use it in GitHub Desktop.
Tradingview rotate userscript
// ==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