Skip to content

Instantly share code, notes, and snippets.

@wpyoga
Last active January 17, 2023 15:05
Show Gist options
  • Select an option

  • Save wpyoga/dd8b750d3b8eed066b9ac2461b36e88a to your computer and use it in GitHub Desktop.

Select an option

Save wpyoga/dd8b750d3b8eed066b9ac2461b36e88a to your computer and use it in GitHub Desktop.
KlikBCA: fix input type
// ==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