Last active
January 17, 2023 15:05
-
-
Save wpyoga/dd8b750d3b8eed066b9ac2461b36e88a to your computer and use it in GitHub Desktop.
KlikBCA: fix input type
This file contains hidden or 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 KlikBCA: fix input type | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description Fix input types in KlikBCA | |
| // @author [email protected] | |
| // @match https://ibank.klikbca.com/*.do | |
| // @match https://ibank.klikbca.com/*.do?* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=klikbca.com | |
| // @grant none | |
| // @run-at document-body | |
| // ==/UserScript== | |
| // This solution works most of the time. | |
| (function() { | |
| 'use strict'; | |
| const inputNotPassword = ['PIN', 'T1', 'T2', 'Key', 'tantangan', 'respondAppli1']; | |
| inputNotPassword.forEach(id => { | |
| const el = document.getElementById(id); | |
| if (el) { | |
| el.outerHTML = el.outerHTML.replace('type="password"', 'type="text"'); | |
| } | |
| }) | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment