Last active
May 18, 2023 16:13
-
-
Save mkmohangb/0bffbe915f2aacf3c6e902728c83bf9f to your computer and use it in GitHub Desktop.
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 Kite rename instrument name | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://kite.zerodha.com/* | |
// @grant none | |
// ==/UserScript== | |
(function () { | |
console.log(document.readyState); | |
window.addEventListener("load", (event) => { | |
console.log("in load:", document.body.childNodes); | |
let widgets = document.body.querySelectorAll(".instrument-widget > span > span"); | |
console.log(widgets); | |
console.log(widgets[1].textContent); | |
widgets[1].textContent = "BANKNIFTY"; | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment