function waitToLoad(){
var db = document.body.innerHTML;
var lg = db.match(/"fotos"/) ? 1 : 0;
var msg = lg ? "Liberadas pelo Destrava Álbuns, by Sergio Abreu" : "Unlocked by Sergio Abreu's Unlock Album script";
var placa = lg ? "Fotos =]" : "Photos =]";
var voltar = lg ? "Voltar" : "Back";
if( db.match(/icn_privacy_private/)) {
address = location.href;
var s="", fo = db.match(/http.+medium.+\.jpg/)[0];
for( var i=1; i < 101; i++){
s += " + fo.replace(/medium/, 'milieu/' + i) + "'>";
}
var magica = "document.write(\""+ msg +"<\/title>" +
"+"ipt type='text/javasc"+"ript'>function esconde(o){o.style.display='none';}+"ript><\/head>"+
"
" + s + "
<\/center><\/body><\/html>\")"
var bt = document.createElement('div');
bt.setAttribute('style', 'width:50px; height:auto; margin:3px; padding:3px; border:1px solid #aaaaaa; -moz-border-radius:7px; cursor:pointer; color:red; background:#ffffcc; font-size:9px;');
bt.setAttribute('onclick', magica);
bt.setAttribute('title', msg);
bt.innerHTML = placa;
var bt2 = document.createElement('div');
bt2.setAttribute('class', 'lf');
bt2.setAttribute('style', 'width:'+(lg?50:60)+'px; margin-top:5px; height:15px; padding:7px 10px 3px 10px; border:1px solid #aaaaaa; -moz-border-radius:7px; cursor:pointer; color:red; background:#ffffcc; font-size:10px;');
bt2.setAttribute('onclick', magica);
bt2.setAttribute('title', msg);
bt2.innerHTML = placa;
var as, at = document.links;
as = new Array();
for( var i=0; i < at.length; i++){
if(at[i].innerHTML.match(/(f|ph)otos/) && at[i].innerHTML.match(/icn_privacy_private/)){ as[ as.length] = at[i];}
if( as.length > 1) break;
}
as[0].parentNode.replaceChild(bt , as[0]);
as[1].parentNode.replaceChild(bt2, as[1]);
}
}
window.addEventListener('load', waitToLoad, false);