Kod
// ==UserScript==
// @name *
// @namespace *
// @description *
// @include *
// @include *
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// @version 1.0
// ==/UserScript==
$('form[name=nazwa_formularza_czy_coś_takiego] input').each(function() {
switch (this.name.replace(/[^a-z0-9]+/i, '')) {
case 'state': this.value = 'PL'; break;
case 'state': this.value = '--'; break;
case 'country': this.value = '--'; break;
case 'countryCode': this.value = '--'; break;
case 'phoneOne': this.value = '--'; break;
case 'phoneTwo': this.value = '--'; break;
case 'phoneThree': this.value = '--'; break;
case 'phoneWhole': this.value = '--'; break;
case 'firstName': this.value = '--'; break;
case 'lastName': this.value = '--'; break;
case 'address1': this.value = '--'; break;
case 'address2': this.value = ''; break;
case 'city': this.value = '--'; break;
case 'zip': this.value = '--'; break;
case 'recaptcharesponsefield': $(this).focus(); break;
}
});
// @name *
// @namespace *
// @description *
// @include *
// @include *
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// @version 1.0
// ==/UserScript==
$('form[name=nazwa_formularza_czy_coś_takiego] input').each(function() {
switch (this.name.replace(/[^a-z0-9]+/i, '')) {
case 'state': this.value = 'PL'; break;
case 'state': this.value = '--'; break;
case 'country': this.value = '--'; break;
case 'countryCode': this.value = '--'; break;
case 'phoneOne': this.value = '--'; break;
case 'phoneTwo': this.value = '--'; break;
case 'phoneThree': this.value = '--'; break;
case 'phoneWhole': this.value = '--'; break;
case 'firstName': this.value = '--'; break;
case 'lastName': this.value = '--'; break;
case 'address1': this.value = '--'; break;
case 'address2': this.value = ''; break;
case 'city': this.value = '--'; break;
case 'zip': this.value = '--'; break;
case 'recaptcharesponsefield': $(this).focus(); break;
}
});