Hey guys i am integrating my userscript inside a page that has a script 
that looks like this posted in his header:

                <script type="text/javascript">
                var user = 
{"userName":"CyberSee","countryCode":null,"kabamId":"37810825","firstName":"Patrick","lastName":"Simard","birthday":"1985-7-29","gender":null,"isGuest":null,"joinDate":"2012-03-12
 
12:03","additionalNetworks":[{"gnuid":"AItOawkt8ukesL0yhTTlyLJxE5fHRjpi1F2AqSw","network":"google"}],"emailAddress":"webmaster@***.com","returnCode":1};
 
        var fbInviteIncentive = null; 
        var urlSlug = "edgeworld"; 
        var playPage = "\/edgeworld\/play"; 
        var clientId = 10; 
        var incentiveData = 
{"promoIcon":"https:\/\/kabam1-a.akamaihd.net\/wwwkabam\/cdn\/features\/invite\/img\/promo_ico.jpg","promoHeader":"Invite
 friends to play on Kabam.com","promoMsg":"Invite your friends and play games 
together. Import people from your address book or invite them directly."}; 
        var tracking = 
{"gameId":10,"entryPath":"page","world":"","username":"Your 
friend","short_name":"ew","invite-controller":"edgeworld","invite-action":"play","invite-module":"default"};
 
        var cdnHost = "https:\/\/kabam1-a.akamaihd.net\/wwwkabam"; 
        var HOST_URL = "https:\/\/www.kabam.com"; 
        var identity = 
{"kabamId":"37810825","userId":"31657138788802955","naid":"37810825","fbuid":"","email":"webmaster@***.com","userName":"CyberSee","isVerified":false,"source":"google"};
 
        var user = 
{"userName":"CyberSee","countryCode":null,"kabamId":"37810825","firstName":"Patrick","lastName":"Simard","birthday":"1985-7-29","gender":null,"isGuest":null,"joinDate":"2012-03-12
 
12:03","additionalNetworks":[{"gnuid":"AItOawkt8ukesL0yhTTlyLJxE5fHRjpi1F2AqSw","network":"google"}],"emailAddress":"webmaster@***.com","returnCode":1};
 
        var nextUrl = null; 
        var logoutUrl = "\/edgeworld"; 
</script>


I need to retrieve the userName and the emailAddress as a usable var inside my 
GM script ... how would i do that?

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/greasemonkey-users/-/xaua5IIwRv4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to