diff options
Diffstat (limited to 'tlrobinson/JSON Diff_files/thread.js')
-rw-r--r-- | tlrobinson/JSON Diff_files/thread.js | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/tlrobinson/JSON Diff_files/thread.js b/tlrobinson/JSON Diff_files/thread.js new file mode 100644 index 0000000..59c128a --- /dev/null +++ b/tlrobinson/JSON Diff_files/thread.js @@ -0,0 +1,126 @@ +/*jslint evil:true */ +/** + * Dynamic thread loader + * + * + * + * + * + * +*/ + +// +var DISQUS; +if (!DISQUS || typeof DISQUS == 'function') { + throw "DISQUS object is not initialized"; +} +// + +// json_data and default_json django template variables will close +// and re-open javascript comment tags + +(function () { + var jsonData, cookieMessages, session, key; + + /* */ jsonData = {"reactions": [], "reactions_limit": 10, "ordered_highlighted": [], "posts": {"91292128": {"edited": false, "author_is_moderator": false, "from_request_user": null, "up_voted": false, "ip": "", "last_modified_date": null, "dislikes": 0, "raw_message": "the for loop over variables in a object is not that good:\nhttp://erik.eae.net/archives/2005/06/06/22.13.54/\n\nwhen using prototype you have to replace in your script:\nvar keys = [];\nfor (var i in a) keys.push(i);\nfor (var i in b) keys.push(i);\nkeys.sort();\n\nby:\n\nvar keys = [];\nfor (var i in a) if(a.hasOwnProperty(i)) keys.push(i);\nfor (var i in b) if(b.hasOwnProperty(i)) keys.push(i);\nkeys.sort();", "has_replies": false, "vote": false, "votable": true, "last_modified_by": null, "real_date": "2010-10-28_18:00:39", "date": "11 months ago", "message": "the for loop over variables in a object is not that good:<br><a href=\"http://erik.eae.net/archives/2005/06/06/22.13.54/\" rel=\"nofollow\">http://erik.eae.net/archives/2...</a><br><br>when using prototype you have to replace in your script:<br>var keys = [];<br>for (var i in a) keys.push(i);<br>for (var i in b) keys.push(i);<br>keys.sort();<br><br>by:<br><br>var keys = [];<br>for (var i in a) if(a.hasOwnProperty(i)) keys.push(i);<br>for (var i in b) if(b.hasOwnProperty(i)) keys.push(i);<br>keys.sort();", "approved": true, "is_last_child": false, "can_edit": false, "can_reply": true, "likes": 0, "user_voted": null, "num_replies": 1, "down_voted": false, "is_first_child": false, "has_been_anonymized": false, "highlighted": false, "parent_post_id": null, "depth": 0, "points": 0, "user_key": "513d79940a586a121c7a740ffbc6efd7", "author_is_creator": false, "email": "", "killed": false, "is_realtime": false}, "91325696": {"edited": false, "author_is_moderator": true, "from_request_user": false, "up_voted": false, "ip": "", "last_modified_date": null, "dislikes": 0, "raw_message": "That's true, if something modifies Object.prototype, which nothing in this page does, thus the check isn't necessary in this case.", "has_replies": false, "vote": false, "votable": true, "last_modified_by": null, "real_date": "2010-10-28_21:01:45", "date": "11 months ago", "message": "That's true, if something modifies Object.prototype, which nothing in this page does, thus the check isn't necessary in this case.", "approved": true, "is_last_child": true, "can_edit": false, "can_reply": true, "likes": 0, "user_voted": null, "num_replies": 0, "down_voted": false, "is_first_child": true, "has_been_anonymized": false, "highlighted": false, "parent_post_id": 91292128, "depth": 1, "points": 0, "user_key": "tlrobinson", "author_is_creator": true, "email": "", "killed": false, "is_realtime": false}, "48183174": {"edited": false, "author_is_moderator": false, "from_request_user": null, "up_voted": false, "ip": "", "last_modified_date": null, "dislikes": 0, "raw_message": "awesome solution!", "has_replies": false, "vote": false, "votable": true, "last_modified_by": null, "real_date": "2010-05-03_12:41:02", "date": "1 year ago", "message": "awesome solution!", "approved": true, "is_last_child": false, "can_edit": false, "can_reply": true, "likes": 0, "user_voted": null, "num_replies": 0, "down_voted": false, "is_first_child": false, "has_been_anonymized": false, "highlighted": false, "parent_post_id": null, "depth": 0, "points": 0, "user_key": "81d6aa4a3fb7dccd07ca625b23e5c3ff", "author_is_creator": false, "email": "", "killed": false, "is_realtime": false}, "88878316": {"edited": false, "author_is_moderator": false, "from_request_user": false, "up_voted": false, "ip": "", "last_modified_date": null, "dislikes": 0, "raw_message": "Awesome tool. Saved me a lot of time.\n\nSuggestion: little summary section to list total adds, removes, and changes.", "has_replies": false, "vote": false, "votable": true, "last_modified_by": null, "real_date": "2010-10-21_15:16:52", "date": "11 months ago", "message": "Awesome tool. Saved me a lot of time.<br><br>Suggestion: little summary section to list total adds, removes, and changes.", "approved": true, "is_last_child": false, "can_edit": false, "can_reply": true, "likes": 0, "user_voted": null, "num_replies": 0, "down_voted": false, "is_first_child": false, "has_been_anonymized": false, "highlighted": false, "parent_post_id": null, "depth": 0, "points": 0, "user_key": "twitter-14184379", "author_is_creator": false, "email": "", "killed": false, "is_realtime": false}, "82309743": {"edited": false, "author_is_moderator": false, "from_request_user": null, "up_voted": false, "ip": "", "last_modified_date": null, "dislikes": 0, "raw_message": "Really COOL!!! :)", "has_replies": false, "vote": false, "votable": true, "last_modified_by": null, "real_date": "2010-09-30_02:49:14", "date": "1 year ago", "message": "Really COOL!!! :)", "approved": true, "is_last_child": false, "can_edit": false, "can_reply": true, "likes": 0, "user_voted": null, "num_replies": 0, "down_voted": false, "is_first_child": false, "has_been_anonymized": false, "highlighted": false, "parent_post_id": null, "depth": 0, "points": 0, "user_key": "f579b9b40478b96e98bb4ec9058446ef", "author_is_creator": false, "email": "", "killed": false, "is_realtime": false}, "33449360": {"edited": false, "author_is_moderator": false, "from_request_user": null, "up_voted": false, "ip": "", "last_modified_date": null, "dislikes": 0, "raw_message": "Thanks for this tool. It is extremely helpful.", "has_replies": false, "vote": false, "votable": true, "last_modified_by": null, "real_date": "2010-02-10_13:55:05", "date": "1 year ago", "message": "Thanks for this tool. It is extremely helpful.", "approved": true, "is_last_child": false, "can_edit": false, "can_reply": true, "likes": 0, "user_voted": null, "num_replies": 0, "down_voted": false, "is_first_child": false, "has_been_anonymized": false, "highlighted": false, "parent_post_id": null, "depth": 0, "points": 0, "user_key": "c1278b3f4006256da691743ce4bcfc50", "author_is_creator": false, "email": "", "killed": false, "is_realtime": false}, "96253169": {"edited": false, "author_is_moderator": false, "from_request_user": false, "up_voted": false, "ip": "", "last_modified_date": null, "dislikes": 0, "raw_message": "what's the license for this code?", "has_replies": false, "vote": false, "votable": true, "last_modified_by": null, "real_date": "2010-11-11_14:20:47", "date": "11 months ago", "message": "what's the license for this code?", "approved": true, "is_last_child": false, "can_edit": false, "can_reply": true, "likes": 0, "user_voted": null, "num_replies": 0, "down_voted": false, "is_first_child": false, "has_been_anonymized": false, "highlighted": false, "parent_post_id": null, "depth": 0, "points": 0, "user_key": "alexg", "author_is_creator": false, "email": "", "killed": false, "is_realtime": false}, "95514712": {"edited": false, "author_is_moderator": false, "from_request_user": false, "up_voted": false, "ip": "", "last_modified_date": "11 months ago", "dislikes": 0, "raw_message": "This breaks if the value of a property is null, typeof null === 'object', so it will attempt recurse until the stack limit is exceeded <br><br>One way to fix it is to do that following:<br><br>if (typeA === \"object\" || typeA === \"array\" || typeB === \"object\" || typeB === \"array\")<br><br>to <br><br>if ((typeA === \"object\" && a !== null) || typeA === \"array\" || (typeB === \"object\" && b !== null) || typeB === \"array\")", "has_replies": false, "vote": false, "votable": true, "last_modified_by": "author", "real_date": "2010-11-09_13:01:14", "date": "11 months ago", "message": "This breaks if the value of a property is null, typeof null === 'object', so it will attempt recurse until the stack limit is exceeded <br><br>One way to fix it is to do that following:<br><br>if (typeA === \"object\" || typeA === \"array\" || typeB === \"object\" || typeB === \"array\")<br><br>to <br><br>if ((typeA === \"object\" && a !== null) || typeA === \"array\" || (typeB === \"object\" && b !== null) || typeB === \"array\")", "approved": true, "is_last_child": false, "can_edit": false, "can_reply": true, "likes": 0, "user_voted": null, "num_replies": 0, "down_voted": false, "is_first_child": false, "has_been_anonymized": false, "highlighted": false, "parent_post_id": null, "depth": 0, "points": 0, "user_key": "openid-44817", "author_is_creator": false, "email": "", "killed": false, "is_realtime": false}, "160387487": {"edited": false, "author_is_moderator": false, "from_request_user": null, "up_voted": false, "ip": "", "last_modified_date": null, "dislikes": 0, "raw_message": "{\n \"events\": {\n \"list\": [\n {\n \"eventObject\": {\n \"@type\": \"contactlist\",\n \"contacts\": [\n {\n \"uri\": \"tel:+491728881002\",\n \"self\": \"true\",\n \"state\": \"active\" \n },\n {\n \"uri\": \"sip:491728881001@mns.ericsson.ca\",\n \"state\": \"active\" \n },\n {\n \"uri\": \"sip:491728881002@mns.ericsson.ca\",\n \"self\": \"true\",\n \"state\": \"active\" \n },\n {\n \"uri\": \"sip:491728881003@mns.ericsson.ca\",\n \"state\": \"active\" \n },\n {\n \"uri\": \"tel:+491728881000\",\n \"state\": \"pending\" \n } \n ] \n },\n \"id\": \"1b25ae4c-8589-4080-ae4f-3b5e2700fe50\",\n \"destination\": \"sip:491728881002@mns.ericsson.ca\" \n },\n {\n \"eventObject\": {\n \"@type\": \"presencelist\",\n \"userPresences\": [\n {\n \"entity\": \"tel:+491728881002\",\n \"services\": [\n \n ],\n \"self\": \"true\" \n },\n {\n \"entity\": \"sip:491728881001@mns.ericsson.ca\",\n \"services\": [\n \n ] \n },\n {\n \"entity\": \"sip:491728881002@mns.ericsson.ca\",\n \"services\": [\n \n ],\n \"self\": \"true\" \n },\n {\n \"entity\": \"sip:491728881003@mns.ericsson.ca\",\n \"services\": [\n \n ] \n } \n ] \n },\n \"id\": \"4076e6c9-341d-4e87-9ce4-1aff56a2865b\",\n \"destination\": \"sip:491728881002@mns.ericsson.ca\" \n },\n {\n \"eventObject\": {\n \"@type\": \"message\",\n \"from\": \"sip:491728881001@mns.ericsson.ca\",\n \"to\": \"sip:491728881002@mns.ericsson.ca\",\n \"contentType\": \"text/plain\",\n \"subject\": \"testing IM\",\n \"body\": \"Allo world\",\n \"type\": \"message\" \n },\n \"id\": \"250a597b-80af-46ac-8783-4965fd014b79\",\n \"destination\": \"sip:491728881002@mns.ericsson.ca\" \n } \n ] \n }\n}", "has_replies": false, "vote": false, "votable": true, "last_modified_by": null, "real_date": "2011-03-04_04:25:20", "date": "7 months ago", "message": "{<br> \"events\": {<br> \"list\": [<br> {<br> \"eventObject\": {<br> \"@type\": \"contactlist\",<br> \"contacts\": [<br> {<br> \"uri\": \"tel:+491728881002\",<br> \"self\": \"true\",<br> \"state\": \"active\" <br> },<br> {<br> \"uri\": \"<a rel=\"nofollow\">sip:491728881001@mns.ericsson....</a>\",<br> \"state\": \"active\" <br> },<br> {<br> \"uri\": \"<a rel=\"nofollow\">sip:491728881002@mns.ericsson....</a>\",<br> \"self\": \"true\",<br> \"state\": \"active\" <br> },<br> {<br> \"uri\": \"<a rel=\"nofollow\">sip:491728881003@mns.ericsson....</a>\",<br> \"state\": \"active\" <br> },<br> {<br> \"uri\": \"tel:+491728881000\",<br> \"state\": \"pending\" <br> } <br> ] <br> },<br> \"id\": \"1b25ae4c-8589-4080-ae4f-3b5e2700fe50\",<br> \"destination\": \"<a rel=\"nofollow\">sip:491728881002@mns.ericsson....</a>\" <br> },<br> {<br> \"eventObject\": {<br> \"@type\": \"presencelist\",<br> \"userPresences\": [<br> {<br> \"entity\": \"tel:+491728881002\",<br> \"services\": [<br> <br> ],<br> \"self\": \"true\" <br> },<br> {<br> \"entity\": \"<a rel=\"nofollow\">sip:491728881001@mns.ericsson....</a>\",<br> \"services\": [<br> <br> ] <br> },<br> {<br> \"entity\": \"<a rel=\"nofollow\">sip:491728881002@mns.ericsson....</a>\",<br> \"services\": [<br> <br> ],<br> \"self\": \"true\" <br> },<br> {<br> \"entity\": \"<a rel=\"nofollow\">sip:491728881003@mns.ericsson....</a>\",<br> \"services\": [<br> <br> ] <br> } <br> ] <br> },<br> \"id\": \"4076e6c9-341d-4e87-9ce4-1aff56a2865b\",<br> \"destination\": \"<a rel=\"nofollow\">sip:491728881002@mns.ericsson....</a>\" <br> },<br> {<br> \"eventObject\": {<br> \"@type\": \"message\",<br> \"from\": \"<a rel=\"nofollow\">sip:491728881001@mns.ericsson....</a>\",<br> \"to\": \"<a rel=\"nofollow\">sip:491728881002@mns.ericsson....</a>\",<br> \"contentType\": \"text/plain\",<br> \"subject\": \"testing IM\",<br> \"body\": \"Allo world\",<br> \"type\": \"message\" <br> },<br> \"id\": \"250a597b-80af-46ac-8783-4965fd014b79\",<br> \"destination\": \"<a rel=\"nofollow\">sip:491728881002@mns.ericsson....</a>\" <br> } <br> ] <br> }<br>}", "approved": true, "is_last_child": false, "can_edit": false, "can_reply": true, "likes": 0, "user_voted": null, "num_replies": 0, "down_voted": false, "is_first_child": false, "has_been_anonymized": false, "highlighted": false, "parent_post_id": null, "depth": 0, "points": 0, "user_key": "272a3d7fead0893ea5a7f5ddb4491a15", "author_is_creator": false, "email": "", "killed": false, "is_realtime": false}}, "ordered_posts": [160387487, 96253169, 95514712, 91292128, 91325696, 88878316, 82309743, 48183174, 33449360], "realtime_enabled": false, "ready": true, "mediaembed": [], "has_more_reactions": false, "realtime_paused": false, "integration": {"receiver_url": null, "hide_user_votes": false, "reply_position": false, "disqus_logo": false}, "highlighted": {}, "reactions_start": 0, "media_url": "http://mediacdn.disqus.com/1318027414", "users": {"alexg": {"username": "alexg", "tumblr": "", "about": "", "display_name": "Alex Gorbatchev", "url": "http://disqus.com/alexg/", "registered": true, "remote_id": null, "linkedin": "", "blog": "http://alexgorbatchev.com", "remote_domain": "", "points": 5, "facebook": "", "avatar": "http://mediacdn.disqus.com/1318027414/images/noavatar32.png", "delicious": "", "is_remote": false, "verified": true, "flickr": "", "twitter": "", "remote_domain_name": ""}, "twitter-14184379": {"username": "twitter-14184379", "tumblr": "", "about": "", "display_name": "james swanson", "url": "http://disqus.com/twitter-14184379/", "registered": true, "remote_id": "14184379", "linkedin": "", "blog": "http://twitter.com/jswanson", "remote_domain": 2, "points": 1, "facebook": "", "avatar": "http://mediacdn.disqus.com/1318027414/images/noavatar32.png", "delicious": "", "is_remote": true, "verified": false, "flickr": "", "twitter": "http://twitter.com/jswanson", "remote_domain_name": "Twitter"}, "513d79940a586a121c7a740ffbc6efd7": {"username": "nils", "tumblr": "", "about": "", "display_name": "nils", "url": "http://disqus.com/guest/513d79940a586a121c7a740ffbc6efd7/", "registered": false, "remote_id": null, "linkedin": "", "blog": "http://blog.srvme.de", "remote_domain": "", "points": null, "facebook": "", "avatar": "http://mediacdn.disqus.com/1318027414/images/noavatar32.png", "delicious": "", "is_remote": false, "verified": false, "flickr": "", "twitter": "", "remote_domain_name": ""}, "tlrobinson": {"username": "tlrobinson", "tumblr": "", "about": "\u00bd hacker, \u00bd engineer.", "display_name": "tlrobinson", "url": "http://disqus.com/tlrobinson/", "registered": true, "remote_id": null, "linkedin": "", "blog": "http://tlrobinson.net/", "remote_domain": "", "points": 16, "facebook": "", "avatar": "http://mediacdn.disqus.com/uploads/users/3448/avatar32.jpg?1281549414", "delicious": "", "is_remote": false, "verified": false, "flickr": "", "twitter": "", "remote_domain_name": ""}, "f579b9b40478b96e98bb4ec9058446ef": {"username": "Pravin Chikhale1", "tumblr": "", "about": "", "display_name": "Pravin Chikhale1", "url": "http://disqus.com/guest/f579b9b40478b96e98bb4ec9058446ef/", "registered": false, "remote_id": null, "linkedin": "", "blog": "", "remote_domain": "", "points": null, "facebook": "", "avatar": "http://mediacdn.disqus.com/1318027414/images/noavatar32.png", "delicious": "", "is_remote": false, "verified": false, "flickr": "", "twitter": "", "remote_domain_name": ""}, "openid-44817": {"username": "openid-44817", "tumblr": "", "about": "", "display_name": "OriginalSyn", "url": "http://disqus.com/openid-44817/", "registered": true, "remote_id": "http://original.syn.myopenid.com/", "linkedin": "", "blog": "http://original.syn.myopenid.com/", "remote_domain": 4, "points": 1, "facebook": "", "avatar": "http://mediacdn.disqus.com/uploads/users/527/5210/avatar32.jpg?1281549414", "delicious": "", "is_remote": true, "verified": false, "flickr": "", "twitter": "", "remote_domain_name": "OpenID"}, "81d6aa4a3fb7dccd07ca625b23e5c3ff": {"username": "hurricane flow", "tumblr": "", "about": "", "display_name": "hurricane flow", "url": "http://disqus.com/guest/81d6aa4a3fb7dccd07ca625b23e5c3ff/", "registered": false, "remote_id": null, "linkedin": "", "blog": "", "remote_domain": "", "points": null, "facebook": "", "avatar": "http://mediacdn.disqus.com/1318027414/images/noavatar32.png", "delicious": "", "is_remote": false, "verified": false, "flickr": "", "twitter": "", "remote_domain_name": ""}, "272a3d7fead0893ea5a7f5ddb4491a15": {"username": "278777851", "tumblr": "", "about": "", "display_name": "278777851", "url": "http://disqus.com/guest/272a3d7fead0893ea5a7f5ddb4491a15/", "registered": false, "remote_id": null, "linkedin": "", "blog": "", "remote_domain": "", "points": null, "facebook": "", "avatar": "http://mediacdn.disqus.com/1318027414/images/noavatar32.png", "delicious": "", "is_remote": false, "verified": false, "flickr": "", "twitter": "", "remote_domain_name": ""}, "c1278b3f4006256da691743ce4bcfc50": {"username": "PragueExpat", "tumblr": "", "about": "", "display_name": "PragueExpat", "url": "http://disqus.com/guest/c1278b3f4006256da691743ce4bcfc50/", "registered": false, "remote_id": null, "linkedin": "", "blog": "", "remote_domain": "", "points": null, "facebook": "", "avatar": "http://mediacdn.disqus.com/1318027414/images/noavatar32.png", "delicious": "", "is_remote": false, "verified": false, "flickr": "", "twitter": "", "remote_domain_name": ""}}, "user_unapproved": {}, "messagesx": {"count": 0, "unread": []}, "thread": {"voters_count": 1, "offset_posts": 0, "slug": "thread_80", "paginate": false, "num_pages": 1, "days_alive": 0, "moderate_none": false, "voters": {"twitter-20687908": {"url": "http://disqus.com/twitter-20687908/", "username": "twitter-20687908", "is_moderator": false, "avatar": "http://mediacdn.disqus.com/uploads/users/93/391/avatar32.jpg?1313007200", "name": "Apphacker"}}, "total_posts": 9, "realtime_paused": true, "queued": false, "pagination_type": "append", "user_vote": null, "likes": 14, "num_posts": 9, "closed": false, "per_page": 0, "id": 59321948, "killed": true, "moderate_all": false}, "forum": {"use_media": true, "avatar_size": 32, "apiKey": "W5hpNSkkdDvCsmwWhAQA4pDHy2Q0nwWGw47nfMg4oAD5prdlAG1wo1Vq446TOXzH", "features": {}, "use_old_templates": false, "comment_max_words": 0, "mobile_theme_disabled": false, "linkbacks_enabled": false, "is_early_adopter": false, "allow_anon_votes": true, "revert_new_login_flow": false, "stylesUrl": "http://mediacdn.disqus.com/uploads/styles/0/1930/tlrobinson.css", "login_buttons_enabled": false, "streaming_realtime": false, "show_avatar": true, "reactions_enabled": false, "reply_position": false, "id": 1930, "name": "tlrobinson.net", "language": "en", "mentions_enabled": true, "url": "tlrobinson", "allow_anon_post": true, "disqus_auth_disabled": false, "thread_votes_disabled": false, "default_avatar_url": "http://mediacdn.disqus.com/1318027414/images/noavatar32.png", "ranks_enabled": false, "template": {"mobile": {"url": "http://mediacdn.disqus.com/1318027414/build/themes/newmobile.js", "css": "http://mediacdn.disqus.com/1318027414/build/themes/newmobile.css"}, "url": "http://mediacdn.disqus.com/1318027414/build/themes/t_c4ca4238a0b923820dcc509a6f75849b.js?1", "api": "1.0", "name": "Narcissus", "css": "http://mediacdn.disqus.com/1318027414/build/themes/t_c4ca4238a0b923820dcc509a6f75849b.css?1"}, "hasCustomStyles": false, "max_depth": 0, "lastUpdate": "", "moderate_all": false}, "settings": {"realtimeHost": "qq.disqus.com", "uploads_url": "http://media.disqus.com/uploads", "ssl_media_url": "https://securecdn.disqus.com/1318027414", "realtime_url": "http://rt.disqus.com/forums/realtime-cached.js", "facebook_app_id": "52254943976", "minify_js": true, "recaptcha_public_key": "6LdKMrwSAAAAAPPLVhQE9LPRW4LUSZb810_iaa8u", "read_only": false, "facebook_api_key": "4aaa6c7038653ad2e4dbeba175a679ba", "realtimePort": "80", "debug": false, "disqus_url": "http://disqus.com", "media_url": "http://mediacdn.disqus.com/1318027414"}, "ranks": {}, "request": {"sort": 4, "is_authenticated": true, "user_type": "openid", "subscribe_on_post": null, "missing_perm": null, "user_id": 594642, "remote_domain_name": "OpenID", "remote_domain": "openid", "comments_count": 16, "is_verified": false, "profile_url": "http://matej.ceplovi.cz/", "username": "openid-9667", "is_global_moderator": false, "sharing": {"twitter": {"auto": false, "enabled": false}, "facebook": {"auto": false, "enabled": false}, "yahoo": {"auto": false, "enabled": false}}, "timestamp": "2011-10-10_17:04:09", "is_moderator": false, "ordered_unapproved_posts": [], "display_name": "Mat\u011bj Cepl", "likes_count": 5, "unapproved_posts": {}, "forum": "tlrobinson", "is_initial_load": true, "url": "http://matej.ceplovi.cz/", "is_sso": false, "display_username": "Mat\u011bj Cepl", "points": 5, "has_email": true, "moderator_can_edit": false, "is_remote": true, "userkey": "openid-9667", "page": 1}, "context": {"use_twitter_signin": false, "use_fb_connect": false, "show_reply": true, "active_switches": ["addons_ab_test", "bespin", "community_icon", "embedapi", "google_auth", "mentions", "new_facebook_auth", "new_thread_create", "realtime_cached", "ssl", "static_reply_frame", "static_styles", "statsd_created", "upload_media", "use_rs_paginator_30m"], "sigma_chance": 10, "use_google_signin": false, "switches": {"olark_admin_addons": true, "listactivity_replies": true, "use_rs_paginator_30m": true, "use_master_for_api": true, "google_auth": true, "html_email": true, "statsd.timings": true, "community_icon": true, "send_to_akismet": true, "olark_admin_packages": true, "static_styles": true, "stats": true, "addons_ab_test": true, "realtime": true, "realtime_cached": true, "statsd_created": true, "bespin": true, "olark_support": true, "olark_addons": true, "new_facebook_auth": true, "limit_get_posts_days_30d": true, "use_impermium": true, "use_akismet": true, "new_thread_create": true, "edits_to_spam": true, "upload_media": true, "vip_read_slave": true, "embedapi": true, "train_akismet": true, "ssl": true, "send_to_impermium": true, "train_impermium": true, "listactivity_replies_30d": true, "moderate_ascending": true, "new_moderate": true, "mentions": true, "olark_install": true, "static_reply_frame": true}, "forum_facebook_key": null, "use_yahoo": false, "subscribed": false, "active_gargoyle_switches": ["edits_to_spam", "html_email", "limit_get_posts_days_30d", "listactivity_replies", "listactivity_replies_30d", "moderate_ascending", "new_moderate", "olark_addons", "olark_admin_addons", "olark_admin_packages", "olark_install", "olark_support", "realtime", "send_to_akismet", "send_to_impermium", "stats", "statsd.timings", "train_akismet", "train_impermium", "use_akismet", "use_impermium", "use_master_for_api", "vip_read_slave"], "realtime_speed": 15000, "use_openid": false}}; /* */ + /* */ cookieMessages = {"user_created": null, "post_has_profile": null, "post_twitter": null, "post_not_approved": null}; session = {"url": null, "name": null, "email": null}; /* */ + + DISQUS.jsonData = jsonData; + DISQUS.jsonData.cookie_messages = cookieMessages; + DISQUS.jsonData.session = session; + + if (DISQUS.useSSL) { + DISQUS.useSSL(DISQUS.jsonData.settings); + } + + // The mappings below are for backwards compatibility--before we port all the code that + // accesses jsonData.settings to DISQUS.settings + + var mappings = { + debug: 'disqus.debug', + minify_js: 'disqus.minified', + read_only: 'disqus.readonly', + recaptcha_public_key: 'disqus.recaptcha.key', + facebook_app_id: 'disqus.facebook.appId', + facebook_api_key: 'disqus.facebook.apiKey' + }; + + var urlMappings = { + disqus_url: 'disqus.urls.main', + media_url: 'disqus.urls.media', + ssl_media_url: 'disqus.urls.sslMedia', + realtime_url: 'disqus.urls.realtime', + uploads_url: 'disqus.urls.uploads' + }; + + if (DISQUS.jsonData.context.switches.realtime_setting_change) { + urlMappings.realtimeHost = 'realtime.host'; + urlMappings.realtimePort = 'realtime.port'; + } + for (key in mappings) { + if (mappings.hasOwnProperty(key)) { + DISQUS.settings.set(mappings[key], DISQUS.jsonData.settings[key]); + } + } + + for (key in urlMappings) { + if (urlMappings.hasOwnProperty(key)) { + DISQUS.jsonData.settings[key] = DISQUS.settings.get(urlMappings[key]); + } + } +}()); + +DISQUS.jsonData.context.csrf_token = '8d7fc9bdfc23e61c412c738fc2d7ba57'; + +DISQUS.jsonData.urls = { + login: 'http://disqus.com/profile/login/', + logout: 'http://disqus.com/logout/', + upload_remove: 'http://tlrobinson.disqus.com/thread/thread_80/async_media_remove/', + request_user_profile: 'http://disqus.com/openid-9667/', + request_user_avatar: 'http://mediacdn.disqus.com/uploads/users/59/4642/avatar92.jpg?1314011705', + verify_email: 'http://disqus.com/verify/', + remote_settings: 'http://tlrobinson.disqus.com/_auth/embed/remote_settings/', + embed_thread: 'http://tlrobinson.disqus.com/thread.js', + embed_vote: 'http://tlrobinson.disqus.com/vote.js', + embed_thread_vote: 'http://tlrobinson.disqus.com/thread_vote.js', + embed_thread_share: 'http://tlrobinson.disqus.com/thread_share.js', + embed_queueurl: 'http://tlrobinson.disqus.com/queueurl.js', + embed_hidereaction: 'http://tlrobinson.disqus.com/hidereaction.js', + embed_more_reactions: 'http://tlrobinson.disqus.com/more_reactions.js', + embed_subscribe: 'http://tlrobinson.disqus.com/subscribe.js', + embed_highlight: 'http://tlrobinson.disqus.com/highlight.js', + embed_block: 'http://tlrobinson.disqus.com/block.js', + update_moderate_all: 'http://tlrobinson.disqus.com/update_moderate_all.js', + update_days_alive: 'http://tlrobinson.disqus.com/update_days_alive.js', + show_user_votes: 'http://tlrobinson.disqus.com/show_user_votes.js', + forum_view: 'http://tlrobinson.disqus.com/thread_80', + cnn_saml_try: 'http://disqus.com/saml/cnn/try/', + realtime: DISQUS.jsonData.settings.realtime_url, + thread_view: 'http://tlrobinson.disqus.com/thread/thread_80/', + twitter_connect: DISQUS.jsonData.settings.disqus_url + '/_ax/twitter/begin/', + yahoo_connect: DISQUS.jsonData.settings.disqus_url + '/_ax/yahoo/begin/', + openid_connect: DISQUS.jsonData.settings.disqus_url + '/_ax/openid/begin/', + googleConnect: DISQUS.jsonData.settings.disqus_url + '/_ax/google/begin/', + community: 'http://tlrobinson.disqus.com/community.html', + admin: 'http://tlrobinson.disqus.com/admin/moderate/', + moderate: 'http://tlrobinson.disqus.com/admin/moderate/', + moderate_threads: 'http://tlrobinson.disqus.com/admin/moderate-threads/', + settings: 'http://tlrobinson.disqus.com/admin/settings/', + unmerged_profiles: 'http://disqus.com/embed/profile/unmerged_profiles/', + + channels: { + def: 'http://disqus.com/default.html', /* default channel */ + auth: 'https://secure.disqus.com/embed/login.html', + tweetbox: 'http://disqus.com/forums/integrations/twitter/tweetbox.html?f=tlrobinson', + edit: 'http://tlrobinson.disqus.com/embed/editcomment.html', + + + + reply: 'http://mediacdn.disqus.com/1318027414/build/system/reply.html', + upload: 'http://mediacdn.disqus.com/1318027414/build/system/upload.html', + sso: 'http://mediacdn.disqus.com/1318027414/build/system/sso.html', + facebook: 'http://mediacdn.disqus.com/1318027414/build/system/facebook.html' + + + } +}; |