<commit_before>// ==UserScript==
// @name         Bancolombia password
// @namespace    http://federicojm.com/
// @version      0.2
// @description  Submit password filled by password manager.
// @author       <NAME>
// @match        https://sucursalpersonas.transaccionesbancolombia.com/mua/VALIDATEPASSWORD
// @match        https://sucursalpersonas.transaccionesbancolombia.com/cb/pages/jsp/home/index.jsp
// @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.
    $(document).on('change', "#password", function() {
        var password = $(this).val();

        // Bancolombia sets a timeout for collect().
        // Run it if necessary.
        // Only available on first password.
        if (window.collect !== undefined && 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();
            }
            // Only available on first password.
            if (window.inspect !== undefined) {
                inspect();
            }
            enviar();
        }<commit_msg>Remove readonly attr from #password field<commit_after>// ==UserScript==
// @name         Bancolombia password
// @namespace    http://federicojm.com/
// @version      0.3
// @description  Submit password filled by password manager.
// @author       <NAME>
// @match        https://sucursalpersonas.transaccionesbancolombia.com/mua/VALIDATEPASSWORD
// @match        https://sucursalpersonas.transaccionesbancolombia.com/cb/pages/jsp/home/index.jsp
// @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').attr('readonly', false);

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

        // Bancolombia sets a timeout for collect().
        // Run it if necessary.
        // Only available on first password.
        if (window.collect !== undefined && 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();
            }
            // Only available on first password.
            if (window.inspect !== undefined) {
                inspect();
            }
            enviar();
        }
{'fraction_non_alphanumeric': 0.14392803598200898, 'fraction_numerical': 0.0023988005997001498, 'mean_word_length': 2.0162748643761303, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7432521', 'n_tokens_mistral': 944, 'n_tokens_neox': 921, 'n_words': 253}