Skip to content

Instantly share code, notes, and snippets.

@mkmohangb
Last active May 18, 2023 16:13
Show Gist options
  • Save mkmohangb/0bffbe915f2aacf3c6e902728c83bf9f to your computer and use it in GitHub Desktop.
Save mkmohangb/0bffbe915f2aacf3c6e902728c83bf9f to your computer and use it in GitHub Desktop.
// ==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