I want to make like this bookmarklet.
<a href="javascript:var%20d=document.location.href,p=0;g='http://www.linkshare.ne.jp/service/linktool/builder/?token=5ad92161237bffe3f5d4c9573222f348073338b62b2cab5ff27a15ebe02d7b03&murl='+d;a=function(){if(!wi ndow.open(g,'LinkGenerator','toolbar=no,status=no,resizable=yes,width=800,height=640,scrollbars=yes' )){l.href=g;}};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()};void(0);">test</a>
if I click this bookmarklet at
http://www.nissen.co.jp/all/event/PL...d=ntop_018_006,

and I can see "http://click.linksynergy.com/fs-bin/click?id=x8yjnrgvgrU&subid=0&offerid=130577.1&type=10&tmpid=832&RD_PARM1=http%253A%252F%252Fwww.niss en.co.jp%252Fall%252Fevent%252FPL10WI004_001_ceremony%252Findex.htm%253F".

I want replace some text inside "http://click.linksynergy.com/fs-bin/click?id=x8yjnrgvgrU&subid=0&offerid=130577.1&type=10&tmpid=832&RD_PARM1=http%253A%252F%252Fwww.niss en.co.jp%252Fall%252Fevent%252FPL10WI004_001_ceremony%252Findex.htm%253F" and add some text inside new window.

I know by php file_get_contents and I heard threre is php.js which can use php code.

If you know , let me know how to replace and add text inside bookmarklet new window.