Skip to content

Instantly share code, notes, and snippets.

@haridsv
Last active November 4, 2016 13:10
Show Gist options
  • Save haridsv/13ac3196a7074ffd8756946538cc693a to your computer and use it in GitHub Desktop.
Save haridsv/13ac3196a7074ffd8756946538cc693a to your computer and use it in GitHub Desktop.
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
Copy link
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