<commit_before>﻿// ==UserScript==
// @name        BWI And GD SSN Registration for Stub server
// @namespace   bwin.it registration
// @description SSN Registration for Stub server
// @version     1.1.0
// @include     *.www.bwin.it/*/registration*
// @include     *qa*www.internal.giocodigitale.it/*/registration*
// @include     *dev.www.giocodigitale.it/*/registration*
// @grant       GM_xmlhttpRequest
// @require     https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js
// @require     https://raw.githubusercontent.com/drizet/PortalUserScripts/master/src/fiscaleGenerator/UI.js
// @require     https://raw.githubusercontent.com/drizet/PortalUserScripts/master/src/fiscaleGenerator/codeFiscaleGenerator.js
// @require     https://raw.githubusercontent.com/drizet/PortalUserScripts/master/src/core/common.js
// ==/UserScript==

$(function () {
    if ($("#registration-form").length) {
        UI.createInterface(function (codeFiscale) {
            $("#Input_BirthData_FiscalCode").val(codeFiscale);
        });
    }
});<commit_msg>Added new version of stub registrator.<commit_after>﻿// ==UserScript==
// @name        BWI And GD SSN Registration for Stub server
// @namespace   bwin.it registration
// @description SSN Registration for Stub server
// @version     2.0.0
// @include     *.www.bwin.it/*/registration*
// @include     *qa*www.internal.giocodigitale.it/*/registration*
// @include     *dev.www.giocodigitale.it/*/registration*
// @grant       GM_xmlhttpRequest
// @require     https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js
// ==/UserScript==

$(function () {
    if ($("#registration-form").length) {
        $('<iframe>', {
            src: "http://VIW20022:7485/",
            frameborder: 0,
            css: {
                height: 300,
                width: 300,
                position: "absolute",
                top: 0,
                left: 0
            }
        }).appendTo('div.container');

        window.addEventListener("message", receiveMessage, false);
        function receiveMessage(event) {
            if (event.origin !== "http://VIW20022:7485")
                return;
            if (event.data.message == "fillCodeFiscale") {
                $("#Input_BirthData_FiscalCode").val(event.data.value);
            }
        }
    }
});
{'fraction_non_alphanumeric': 0.15741543798785776, 'fraction_numerical': 0.016912402428447527, 'mean_word_length': 2.3434782608695652, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 5, 'lorem ipsum': 0, 'www.': 6, 'xml': 2}, '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': '5548112', 'n_tokens_mistral': 757, 'n_tokens_neox': 711, 'n_words': 116}