crear bookmark
nombrarlo como gusten
en url agregar esto
javascript:var isIframe = function(){return window.location.href=='https://www.pcbac.com/PotalaPersonal/home.do';}; var ifr = false; var formName = 'loginForm'; var $ = function(idname) { var doc = ifr ? window.frames.working.document : document; return doc.getElementById(idname) || doc.getElementsByName(idname)[0] || '';}; var createHTMLElement = function(id,type){ var _parent = $(id).parentNode;_parent.innerHTML = ''; var _input = document.createElement('input'); _input.setAttribute('type', type); _input.setAttribute('id', id); _input.setAttribute('name', id); _input.setAttribute('size', '32'); _input.setAttribute('autocomplete', 'off'); _input.setAttribute('class', 'notfocussed'); _input.setAttribute('onblur', ifr?'parent.copyText(this);':'copyText(this);'); _parent.appendChild(_input); }; var copyText = function(caja){var usuario = caja.value;var k = '';for (var i=0; i<usuario.length; i++){var caracter = usuario[i];k = k + $(caracter).value;} if((caja.id=='usernameA') || (caja.id=='claveActual')){$('Field1ValueHidden').value = k;}if((caja.id=='passwordA') || (caja.id=='nuevaClave')){$('Field2ValueHidden').value = k;}if(caja.id=='confirmacionNuevaClave'){$('Field3ValueHidden').value = k;}}; (function(){ifr=isIframe(); if(ifr){formName='cambioClaveForm';} var firstRowSplit = $(formName).charFirstRowhidden.value;var secondRowSplit = $(formName).charSecondRowhidden.value;var thirdRowSplit = $(formName).charThirdRowhidden.value;var firstRowSplitMi = $(formName).charFirstRowhiddenHMi.value;var secondRowSplitMi = $(formName).charSecondRowhiddenHMi.value;var thirdRowSplitMi = $(formName).charThirdRowhiddenHMi.value; var firstRowSplitMa = $(formName).charFirstRowhiddenHMa.value;var secondRowSplitMa = $(formName).charSecondRowhiddenHMa.value;var thirdRowSplitMa = $(formName).charThirdRowhiddenHMa.value;var firstRow = firstRowSplit.split('|');var firstRowMi = firstRowSplitMi.split('|');var firstRowMa = firstRowSplitMa.split('|');var todo = new Array();for(i=0;i<firstRow.length-1;i++){todo[firstRow[i].toLowerCase()] = firstRowMi[i];todo[firstRow[i]] = firstRowMa[i];}var secondRow = secondRowSplit.split('|');var secondRowMi = secondRowSplitMi.split('|');var secondRowMa = secondRowSplitMa.split('|');for(i=0;i<secondRow.length-1;i++){todo[secondRow[i].toLowerCase()] = secondRowMi[i];todo[secondRow[i]] = secondRowMa[i];} var thirdRow = thirdRowSplit.split('|');var thirdRowMi = thirdRowSplitMi.split('|');var thirdRowMa = thirdRowSplitMa.split('|');for(i=0;i<thirdRow.length-1;i++){todo[thirdRow[i].toLowerCase()] = thirdRowMi[i];todo[thirdRow[i]] = thirdRowMa[i]} for(var m=0;m<3;m++){todo[$(formName).number1[m].value] = $(formName).number1[m].alt;todo[$(formName).number2[m].value] = $(formName).number2[m].alt;todo[$(formName).number3[m].value] = $(formName).number3[m].alt;}todo[$(formName).number4.value] = $(formName).number4.alt;for(var m=0;m<10;m++){todo[$(formName).button4[m].value] = $(formName).button4[m].alt;}for(var m=0;m<11;m++){todo[$(formName).button5[m].value] = $(formName).button5[m].alt;todo[$(formName).button10[m].value] = $(formName).button10[m].alt;} var letras = new Array();for (var i=32; i<170; i++){letras[i] = String.fromCharCode(i);} for (var i = 0; i< letras.length; i++) {var letra = letras[i];var input = document.createElement('input');input.setAttribute('type', 'hidden');input.setAttribute('id', letra);input.setAttribute('value', todo[letra]);$(formName).appendChild(input);} if(!ifr){ createHTMLElement('usernameA','text'); createHTMLElement('passwordA','password'); }else{ createHTMLElement('claveActual','password'); createHTMLElement('nuevaClave','password'); createHTMLElement('confirmacionNuevaClave','password'); } $(ifr?formName:'forma1').getElementsByTagName("table")[0].getElementsByTagName("tr")[ifr?14:8].style.display = 'none'; })()