Skip to content

Instantly share code, notes, and snippets.

@haridsv haridsv/bookmarklet
Last active Nov 4, 2016

Embed
What would you like to do?
Open Citibank India login dialog and set it right.
javascript:s=document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='https://goo.gl/e8GRr5';void(0);
var citiWindow = window.open("https://www.citibank.co.in/ibank/login/IQPin.jsp");
function setItRight() {
if (! citiWindow.showhideKeyBoardsv1) {
setTimeout(setItRight, 1000);
}
else {
citiWindow.showhideKeyBoardsv1(1);
}
}
setItRight();
@haridsv

This comment has been minimized.

Copy link
Owner Author

haridsv commented Nov 4, 2016

Calling JS doesn't work as it gives this error:

Uncaught DOMException: Blocked a frame with origin "http://stackoverflow.com" from accessing a cross-origin frame.
    at setItRight (https://rawgit.com/haridsv/13ac3196a7074ffd8756946538cc693a/raw/dumbCiti.js:4:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.