// ==UserScript==
// @name         Bancolombia password
// @namespace    http://federicojm.com/
// @version      0.1
// @description  Submit password filled by password manager.
// @author       Federico JM
// @match        https://sucursalpersonas.transaccionesbancolombia.com/mua/VALIDATEPASSWORD
// @grant        none
// @run-at       document-end
// ==/UserScript==

/* - jshint settings - */
/* globals collect, clearKeys, inspect, enviar */


(function ($) {
    'use strict';

    // jQuery is loaded by Bancolombia.
    if (typeof $ === "undefined") {
        return false;
    }

    // Password manager fills password field.
    // Bancolombia uses an onscreen keyboard that fails with password managers.
    // Simulate clicking each number and submit.
    $('#password').change(function() {
        var password = $(this).val();

        // Bancolombia sets a timeout for collect().
        // Run it if necessary.
        if (typeof dom_data_collection === "undefined") {
            collect();
        }

        if (password.length === 4) {
            clearKeys();
            for (var i = 0, len = password.length; i < len; i++) {
                $('#keyboard_ div:contains("' + password[i] + '")').parent().click();
            }
            inspect();
            enviar();
        }
    });
})(window.jQuery);

@@ -112,9 +112,9 @@
   0.
-1
+2
 %0A// 
@@ -292,16 +292,115 @@
 ASSWORD%0A
+// @match        https://sucursalpersonas.transaccionesbancolombia.com/cb/pages/jsp/home/index.jsp%0A
 // @gran
@@ -866,28 +866,44 @@
   $(
-'#password').change(
+document).on('change', %22#password%22, 
 func
@@ -1039,28 +1039,105 @@
 ry.%0A        
-if (
+// Only available on first password.%0A        if (window.collect !== undefined && 
 typeof dom_d
@@ -1429,24 +1429,125 @@
           %7D%0A
+            // Only available on first password.%0A            if (window.inspect !== undefined) %7B%0A    
             
@@ -1553,24 +1553,38 @@
  inspect();%0A
+            %7D%0A
             

Enable 2nd password autosubmit