Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.addEventListener(
- 'load',
- function (e) {
- var imgs=document.getElementsByTagName("img");
- for(i in imgs){
- if (imgs[i].src.match(/http:\/\/profile\.ak\.facebook\.com\/.+\/\d+\/\d+\/.\d+_\d+\.jpg/)) {
- imgs[i].src = imgs[i].src.replace(/(http:\/\/profile\.ak\.facebook\.com\/.+\/\d+\/\d+\/)(.)(\d+_\d+\.jpg)/g, "$1n$3");
- imgs[i].style.width = "200px";
- imgs[i].style.height = "auto";
- }
- }
- },
- false
- );
Add Comment
Please, Sign In to add comment