The really long Java script you will need to copy and paste is after both presentations.
Translate This Page |
There maybe some people that will only be able to use this with non friend cities.
If you can't see the below presentation, here's what you need to do:
If you are still having problems viewing, go to this website for more information:
If you can't see the below presentation, here's what you need to do:
If you are still having problems viewing, go to this website for more information:
This is the current script (all white) that needs to be copied into the URL/Location address.
Start at the J (in java script) and go to the very last }
javascript:function get_id_from_game(){try{varcontent%3Ddocument.getElementById('app10979261223_content_row');var
as%3Dcontent.getElementsByTagName('a');for(i%3D0;i<as.length;i%2B%2B){if(as[i].innerHTML%3D%3D'Profile'){match%3D/[;%26]user%3D(\d%2B)/.exec(as[i].href);if(match)return
match[1];}}}catch(err){}try{var
content%3Ddocument.getElementById('app_content_16421175101').innerHTML;return
/[%3F;%26]opponent_id%3D(\d%2B)/.exec(content)[1];}catch(err){}return
null;}function get_id_from_fb(){function f(expr){try{return
/id%3D([0-9]%2B)/.exec(eval(expr))[1];}catch(e){return
null;}}return f("document.getElementById('profile_connect').href")||f("document.getElementById('profile_action_send_message').href")||f("document.getElementById('profileimage').parentNode.innerHTML")||f("document.getElementById('profile_name').parentNode.innerHTML")||null;}function
get_id(){return get_id_from_fb()||get_id_from_game();}id%3Dget_id();if(id){location.href%3D'http://apps.facebook.com/metropolisgame/players.php%3Fid%3D$ID'.replace('$ID',id);}else{alert('Could
not find an id! You need to be on a profile page for this to work.');}