{"action":"created","comment":{"url":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/comments/26008954","id":26008954,"diff_hunk":"@@ -72,12 +94,27 @@ function moveFirstParagraphUpInLeadSection(text) {\n  */\n function runDomTransforms(text) {\n     var doc = domino.createDocument(text);\n-    rmSelectorAll(doc, 'div.noprint');\n-    rmSelectorAll(doc, 'div.infobox');\n-    rmSelectorAll(doc, 'div.hatnote');\n-    rmSelectorAll(doc, 'div.metadata');\n-    rmSelectorAll(doc, 'table'); // TODO: later we may want to transform some of the tables into a JSON structure\n+\n+    var rmSelectors = [\n+                       'div.noprint',\n+                       'div.infobox',\n+                       'div.hatnote',\n+                       'div.metadata',\n+                       'table.navbox',\n+                       'div.magnify',\n+                       'span[style]:not([style=\"display:none\"])',   // Remove <span style=\\\"display:none;\\\">&nbsp;</span>\n+                       'span[class=\"Z3988\"]'                        // Remove <span class=\\\"Z3988\\\"></span>","path":"routes/mobileapp-v1.js","position":47,"original_position":47,"commit_id":"0f7b211e6cc61a05bcfec8e24a75e1631b0d1638","original_commit_id":"0f7b211e6cc61a05bcfec8e24a75e1631b0d1638","user":{"login":"montehurd","id":3143487,"avatar_url":"https://avatars.githubusercontent.com/u/3143487?v=3","gravatar_id":"","url":"https://api.github.com/users/montehurd","html_url":"https://github.com/montehurd","followers_url":"https://api.github.com/users/montehurd/followers","following_url":"https://api.github.com/users/montehurd/following{/other_user}","gists_url":"https://api.github.com/users/montehurd/gists{/gist_id}","starred_url":"https://api.github.com/users/montehurd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montehurd/subscriptions","organizations_url":"https://api.github.com/users/montehurd/orgs","repos_url":"https://api.github.com/users/montehurd/repos","events_url":"https://api.github.com/users/montehurd/events{/privacy}","received_events_url":"https://api.github.com/users/montehurd/received_events","type":"User","site_admin":false},"body":"None of the 461 occurrences in the Obama article have any innerHTML. Huge savings stripping them.","created_at":"2015-03-08T21:03:21Z","updated_at":"2015-03-08T21:03:21Z","html_url":"https://github.com/berndsi/service-mobileapp-node/pull/2#discussion_r26008954","pull_request_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/comments/26008954"},"html":{"href":"https://github.com/berndsi/service-mobileapp-node/pull/2#discussion_r26008954"},"pull_request":{"href":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/2","id":30716934,"html_url":"https://github.com/berndsi/service-mobileapp-node/pull/2","diff_url":"https://github.com/berndsi/service-mobileapp-node/pull/2.diff","patch_url":"https://github.com/berndsi/service-mobileapp-node/pull/2.patch","issue_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/issues/2","number":2,"state":"open","locked":false,"title":"Remove more undisplayed / unused items.","user":{"login":"montehurd","id":3143487,"avatar_url":"https://avatars.githubusercontent.com/u/3143487?v=3","gravatar_id":"","url":"https://api.github.com/users/montehurd","html_url":"https://github.com/montehurd","followers_url":"https://api.github.com/users/montehurd/followers","following_url":"https://api.github.com/users/montehurd/following{/other_user}","gists_url":"https://api.github.com/users/montehurd/gists{/gist_id}","starred_url":"https://api.github.com/users/montehurd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montehurd/subscriptions","organizations_url":"https://api.github.com/users/montehurd/orgs","repos_url":"https://api.github.com/users/montehurd/repos","events_url":"https://api.github.com/users/montehurd/events{/privacy}","received_events_url":"https://api.github.com/users/montehurd/received_events","type":"User","site_admin":false},"body":"The Obama article total section html size:\r\n   Before runDomTransforms: 980010 bytes.\r\n   After runDomTransforms:  448357 bytes.\r\n\r\nI also removed \"noimages\" from the movileview query.","created_at":"2015-03-08T09:06:53Z","updated_at":"2015-03-08T21:03:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afe80bbb91fb7787b4d86cb0b39398a0b0324c60","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/2/commits","review_comments_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/2/comments","review_comment_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/issues/2/comments","statuses_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/statuses/0f7b211e6cc61a05bcfec8e24a75e1631b0d1638","head":{"label":"montehurd:nukeMoreCruft","ref":"nukeMoreCruft","sha":"0f7b211e6cc61a05bcfec8e24a75e1631b0d1638","user":{"login":"montehurd","id":3143487,"avatar_url":"https://avatars.githubusercontent.com/u/3143487?v=3","gravatar_id":"","url":"https://api.github.com/users/montehurd","html_url":"https://github.com/montehurd","followers_url":"https://api.github.com/users/montehurd/followers","following_url":"https://api.github.com/users/montehurd/following{/other_user}","gists_url":"https://api.github.com/users/montehurd/gists{/gist_id}","starred_url":"https://api.github.com/users/montehurd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montehurd/subscriptions","organizations_url":"https://api.github.com/users/montehurd/orgs","repos_url":"https://api.github.com/users/montehurd/repos","events_url":"https://api.github.com/users/montehurd/events{/privacy}","received_events_url":"https://api.github.com/users/montehurd/received_events","type":"User","site_admin":false},"repo":{"id":31841570,"name":"service-mobileapp-node","full_name":"montehurd/service-mobileapp-node","owner":{"login":"montehurd","id":3143487,"avatar_url":"https://avatars.githubusercontent.com/u/3143487?v=3","gravatar_id":"","url":"https://api.github.com/users/montehurd","html_url":"https://github.com/montehurd","followers_url":"https://api.github.com/users/montehurd/followers","following_url":"https://api.github.com/users/montehurd/following{/other_user}","gists_url":"https://api.github.com/users/montehurd/gists{/gist_id}","starred_url":"https://api.github.com/users/montehurd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montehurd/subscriptions","organizations_url":"https://api.github.com/users/montehurd/orgs","repos_url":"https://api.github.com/users/montehurd/repos","events_url":"https://api.github.com/users/montehurd/events{/privacy}","received_events_url":"https://api.github.com/users/montehurd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/montehurd/service-mobileapp-node","description":"Node.js service for specialized page content to used in mobile apps","fork":true,"url":"https://api.github.com/repos/montehurd/service-mobileapp-node","forks_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/forks","keys_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/teams","hooks_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/hooks","issue_events_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/issues/events{/number}","events_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/events","assignees_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/assignees{/user}","branches_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/branches{/branch}","tags_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/tags","blobs_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/statuses/{sha}","languages_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/languages","stargazers_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/stargazers","contributors_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/contributors","subscribers_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/subscribers","subscription_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/subscription","commits_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/contents/{+path}","compare_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/merges","archive_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/downloads","issues_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/issues{/number}","pulls_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/pulls{/number}","milestones_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/milestones{/number}","notifications_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/labels{/name}","releases_url":"https://api.github.com/repos/montehurd/service-mobileapp-node/releases{/id}","created_at":"2015-03-08T07:08:28Z","updated_at":"2015-03-08T07:08:28Z","pushed_at":"2015-03-08T09:10:42Z","git_url":"git://github.com/montehurd/service-mobileapp-node.git","ssh_url":"git@github.com:montehurd/service-mobileapp-node.git","clone_url":"https://github.com/montehurd/service-mobileapp-node.git","svn_url":"https://github.com/montehurd/service-mobileapp-node","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"berndsi:master","ref":"master","sha":"18861efeac8c7db328a39b9cb5a704225004d628","user":{"login":"berndsi","id":1875419,"avatar_url":"https://avatars.githubusercontent.com/u/1875419?v=3","gravatar_id":"","url":"https://api.github.com/users/berndsi","html_url":"https://github.com/berndsi","followers_url":"https://api.github.com/users/berndsi/followers","following_url":"https://api.github.com/users/berndsi/following{/other_user}","gists_url":"https://api.github.com/users/berndsi/gists{/gist_id}","starred_url":"https://api.github.com/users/berndsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndsi/subscriptions","organizations_url":"https://api.github.com/users/berndsi/orgs","repos_url":"https://api.github.com/users/berndsi/repos","events_url":"https://api.github.com/users/berndsi/events{/privacy}","received_events_url":"https://api.github.com/users/berndsi/received_events","type":"User","site_admin":false},"repo":{"id":31553385,"name":"service-mobileapp-node","full_name":"berndsi/service-mobileapp-node","owner":{"login":"berndsi","id":1875419,"avatar_url":"https://avatars.githubusercontent.com/u/1875419?v=3","gravatar_id":"","url":"https://api.github.com/users/berndsi","html_url":"https://github.com/berndsi","followers_url":"https://api.github.com/users/berndsi/followers","following_url":"https://api.github.com/users/berndsi/following{/other_user}","gists_url":"https://api.github.com/users/berndsi/gists{/gist_id}","starred_url":"https://api.github.com/users/berndsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndsi/subscriptions","organizations_url":"https://api.github.com/users/berndsi/orgs","repos_url":"https://api.github.com/users/berndsi/repos","events_url":"https://api.github.com/users/berndsi/events{/privacy}","received_events_url":"https://api.github.com/users/berndsi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/berndsi/service-mobileapp-node","description":"Node.js service for specialized page content to used in mobile apps","fork":false,"url":"https://api.github.com/repos/berndsi/service-mobileapp-node","forks_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/forks","keys_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/teams","hooks_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/hooks","issue_events_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/issues/events{/number}","events_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/events","assignees_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/assignees{/user}","branches_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/branches{/branch}","tags_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/tags","blobs_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/statuses/{sha}","languages_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/languages","stargazers_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/stargazers","contributors_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/contributors","subscribers_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/subscribers","subscription_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/subscription","commits_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/contents/{+path}","compare_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/merges","archive_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/downloads","issues_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/issues{/number}","pulls_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls{/number}","milestones_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/milestones{/number}","notifications_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/labels{/name}","releases_url":"https://api.github.com/repos/berndsi/service-mobileapp-node/releases{/id}","created_at":"2015-03-02T17:37:42Z","updated_at":"2015-03-07T18:35:47Z","pushed_at":"2015-03-07T18:35:46Z","git_url":"git://github.com/berndsi/service-mobileapp-node.git","ssh_url":"git@github.com:berndsi/service-mobileapp-node.git","clone_url":"https://github.com/berndsi/service-mobileapp-node.git","svn_url":"https://github.com/berndsi/service-mobileapp-node","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/2"},"html":{"href":"https://github.com/berndsi/service-mobileapp-node/pull/2"},"issue":{"href":"https://api.github.com/repos/berndsi/service-mobileapp-node/issues/2"},"comments":{"href":"https://api.github.com/repos/berndsi/service-mobileapp-node/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/berndsi/service-mobileapp-node/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/berndsi/service-mobileapp-node/statuses/0f7b211e6cc61a05bcfec8e24a75e1631b0d1638"}}}}