// ==UserScript== // @name Lunarstorm Guestbook Personalizer // @namespace http://www.lysator.liu.se/~jhs/userscript // @description Replaces local ads with an image of the guestbook's owner // @include http://www.lunarstorm.se/gst/gst_guestbook.aspx* // ==/UserScript== (function() { var ad = document.getElementsByTagName('iframe')[0].parentNode; var id = unescape( /userid=([^&]*)/.exec( location.search )[1] ); ad.innerHTML = ''; ad.style.height = '407px'; // user image size: 305x407 ad.style.background = '#FFF url("http://photo.lunarstorm.se/large/' + id.substr( 1, 3 ) +'/'+ id +'.jpg") no-repeat 50% 0'; var re = /