{"action":"created","comment":{"url":"https://api.github.com/repos/zotero/translators/pulls/comments/51213036","id":51213036,"diff_hunk":"@@ -0,0 +1,182 @@\n+{\n+\t\"translatorID\": \"feef66bf-4b52-498f-a586-8e9a99dc07a0\",\n+\t\"label\": \"Retsinformation\",\n+\t\"creator\": \"Roald Frøsig\",\n+\t\"target\": \"^https?://(?:www\\\\.)?retsinformation\\\\.dk/\",\n+\t\"minVersion\": \"3.0\",\n+\t\"maxVersion\": \"\",\n+\t\"priority\": 100,\n+\t\"inRepository\": true,\n+\t\"translatorType\": 4,\n+\t\"browserSupport\": \"g\",\n+\t\"lastUpdated\": \"2016-01-27 14:38:37\"\n+}\n+\n+function detectWeb(doc, url){\n+\tif (ZU.xpathText(doc, '//div[@class=\"wrapper2\"]/table[@id=\"ctl00_MainContent_ResultGrid1\"]')) {\n+\t\treturn \"multiple\";\n+\t} else if (url.indexOf(\"R0710\") != -1) {\n+\t\tthreeLetters = getKortNavn(doc, url)[0].substr(0,3);\n+\t\tif (/(DOM|AFG|KEN|UDT)/.test(threeLetters)) {\n+\t\t\treturn \"case\";\n+\t\t};\n+\t\tif (/(EDP|ISP|FOU)/.test(threeLetters)) {","path":"retsinformation.js","position":23,"original_position":23,"commit_id":"4069455c24dd9b519a4407de8c744c24c19d7571","original_commit_id":"4069455c24dd9b519a4407de8c744c24c19d7571","user":{"login":"aurimasv","id":1381759,"avatar_url":"https://avatars.githubusercontent.com/u/1381759?v=3","gravatar_id":"","url":"https://api.github.com/users/aurimasv","html_url":"https://github.com/aurimasv","followers_url":"https://api.github.com/users/aurimasv/followers","following_url":"https://api.github.com/users/aurimasv/following{/other_user}","gists_url":"https://api.github.com/users/aurimasv/gists{/gist_id}","starred_url":"https://api.github.com/users/aurimasv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurimasv/subscriptions","organizations_url":"https://api.github.com/users/aurimasv/orgs","repos_url":"https://api.github.com/users/aurimasv/repos","events_url":"https://api.github.com/users/aurimasv/events{/privacy}","received_events_url":"https://api.github.com/users/aurimasv/received_events","type":"User","site_admin":false},"body":"fyi, you don't need the `( )` here. No need to fix this, just saying.","created_at":"2016-01-29T00:58:19Z","updated_at":"2016-01-29T00:58:19Z","html_url":"https://github.com/zotero/translators/pull/1005#discussion_r51213036","pull_request_url":"https://api.github.com/repos/zotero/translators/pulls/1005","_links":{"self":{"href":"https://api.github.com/repos/zotero/translators/pulls/comments/51213036"},"html":{"href":"https://github.com/zotero/translators/pull/1005#discussion_r51213036"},"pull_request":{"href":"https://api.github.com/repos/zotero/translators/pulls/1005"}}},"pull_request":{"url":"https://api.github.com/repos/zotero/translators/pulls/1005","id":57495799,"html_url":"https://github.com/zotero/translators/pull/1005","diff_url":"https://github.com/zotero/translators/pull/1005.diff","patch_url":"https://github.com/zotero/translators/pull/1005.patch","issue_url":"https://api.github.com/repos/zotero/translators/issues/1005","number":1005,"state":"open","locked":false,"title":"Create retsinformation.js","user":{"login":"roaldfrosig","id":10515159,"avatar_url":"https://avatars.githubusercontent.com/u/10515159?v=3","gravatar_id":"","url":"https://api.github.com/users/roaldfrosig","html_url":"https://github.com/roaldfrosig","followers_url":"https://api.github.com/users/roaldfrosig/followers","following_url":"https://api.github.com/users/roaldfrosig/following{/other_user}","gists_url":"https://api.github.com/users/roaldfrosig/gists{/gist_id}","starred_url":"https://api.github.com/users/roaldfrosig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roaldfrosig/subscriptions","organizations_url":"https://api.github.com/users/roaldfrosig/orgs","repos_url":"https://api.github.com/users/roaldfrosig/repos","events_url":"https://api.github.com/users/roaldfrosig/events{/privacy}","received_events_url":"https://api.github.com/users/roaldfrosig/received_events","type":"User","site_admin":false},"body":"Zotero translator for the Danish legal site www.retsinformation.dk","created_at":"2016-01-28T12:33:43Z","updated_at":"2016-01-29T00:58:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7d57a1ab1dd919fd174f098063e2a83aaf94362","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zotero/translators/pulls/1005/commits","review_comments_url":"https://api.github.com/repos/zotero/translators/pulls/1005/comments","review_comment_url":"https://api.github.com/repos/zotero/translators/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zotero/translators/issues/1005/comments","statuses_url":"https://api.github.com/repos/zotero/translators/statuses/4069455c24dd9b519a4407de8c744c24c19d7571","head":{"label":"roaldfrosig:roaldfrosig-patch-1","ref":"roaldfrosig-patch-1","sha":"4069455c24dd9b519a4407de8c744c24c19d7571","user":{"login":"roaldfrosig","id":10515159,"avatar_url":"https://avatars.githubusercontent.com/u/10515159?v=3","gravatar_id":"","url":"https://api.github.com/users/roaldfrosig","html_url":"https://github.com/roaldfrosig","followers_url":"https://api.github.com/users/roaldfrosig/followers","following_url":"https://api.github.com/users/roaldfrosig/following{/other_user}","gists_url":"https://api.github.com/users/roaldfrosig/gists{/gist_id}","starred_url":"https://api.github.com/users/roaldfrosig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roaldfrosig/subscriptions","organizations_url":"https://api.github.com/users/roaldfrosig/orgs","repos_url":"https://api.github.com/users/roaldfrosig/repos","events_url":"https://api.github.com/users/roaldfrosig/events{/privacy}","received_events_url":"https://api.github.com/users/roaldfrosig/received_events","type":"User","site_admin":false},"repo":{"id":50574993,"name":"translators","full_name":"roaldfrosig/translators","owner":{"login":"roaldfrosig","id":10515159,"avatar_url":"https://avatars.githubusercontent.com/u/10515159?v=3","gravatar_id":"","url":"https://api.github.com/users/roaldfrosig","html_url":"https://github.com/roaldfrosig","followers_url":"https://api.github.com/users/roaldfrosig/followers","following_url":"https://api.github.com/users/roaldfrosig/following{/other_user}","gists_url":"https://api.github.com/users/roaldfrosig/gists{/gist_id}","starred_url":"https://api.github.com/users/roaldfrosig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roaldfrosig/subscriptions","organizations_url":"https://api.github.com/users/roaldfrosig/orgs","repos_url":"https://api.github.com/users/roaldfrosig/repos","events_url":"https://api.github.com/users/roaldfrosig/events{/privacy}","received_events_url":"https://api.github.com/users/roaldfrosig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roaldfrosig/translators","description":"Zotero Translators","fork":true,"url":"https://api.github.com/repos/roaldfrosig/translators","forks_url":"https://api.github.com/repos/roaldfrosig/translators/forks","keys_url":"https://api.github.com/repos/roaldfrosig/translators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roaldfrosig/translators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roaldfrosig/translators/teams","hooks_url":"https://api.github.com/repos/roaldfrosig/translators/hooks","issue_events_url":"https://api.github.com/repos/roaldfrosig/translators/issues/events{/number}","events_url":"https://api.github.com/repos/roaldfrosig/translators/events","assignees_url":"https://api.github.com/repos/roaldfrosig/translators/assignees{/user}","branches_url":"https://api.github.com/repos/roaldfrosig/translators/branches{/branch}","tags_url":"https://api.github.com/repos/roaldfrosig/translators/tags","blobs_url":"https://api.github.com/repos/roaldfrosig/translators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roaldfrosig/translators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roaldfrosig/translators/git/refs{/sha}","trees_url":"https://api.github.com/repos/roaldfrosig/translators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roaldfrosig/translators/statuses/{sha}","languages_url":"https://api.github.com/repos/roaldfrosig/translators/languages","stargazers_url":"https://api.github.com/repos/roaldfrosig/translators/stargazers","contributors_url":"https://api.github.com/repos/roaldfrosig/translators/contributors","subscribers_url":"https://api.github.com/repos/roaldfrosig/translators/subscribers","subscription_url":"https://api.github.com/repos/roaldfrosig/translators/subscription","commits_url":"https://api.github.com/repos/roaldfrosig/translators/commits{/sha}","git_commits_url":"https://api.github.com/repos/roaldfrosig/translators/git/commits{/sha}","comments_url":"https://api.github.com/repos/roaldfrosig/translators/comments{/number}","issue_comment_url":"https://api.github.com/repos/roaldfrosig/translators/issues/comments{/number}","contents_url":"https://api.github.com/repos/roaldfrosig/translators/contents/{+path}","compare_url":"https://api.github.com/repos/roaldfrosig/translators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roaldfrosig/translators/merges","archive_url":"https://api.github.com/repos/roaldfrosig/translators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roaldfrosig/translators/downloads","issues_url":"https://api.github.com/repos/roaldfrosig/translators/issues{/number}","pulls_url":"https://api.github.com/repos/roaldfrosig/translators/pulls{/number}","milestones_url":"https://api.github.com/repos/roaldfrosig/translators/milestones{/number}","notifications_url":"https://api.github.com/repos/roaldfrosig/translators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roaldfrosig/translators/labels{/name}","releases_url":"https://api.github.com/repos/roaldfrosig/translators/releases{/id}","deployments_url":"https://api.github.com/repos/roaldfrosig/translators/deployments","created_at":"2016-01-28T10:21:56Z","updated_at":"2016-01-28T10:21:59Z","pushed_at":"2016-01-28T10:30:32Z","git_url":"git://github.com/roaldfrosig/translators.git","ssh_url":"git@github.com:roaldfrosig/translators.git","clone_url":"https://github.com/roaldfrosig/translators.git","svn_url":"https://github.com/roaldfrosig/translators","homepage":"http://www.zotero.org/support/dev/translators","size":11718,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"zotero:master","ref":"master","sha":"b73799491315842abcf8f0b15db07fa9b8965acc","user":{"login":"zotero","id":891917,"avatar_url":"https://avatars.githubusercontent.com/u/891917?v=3","gravatar_id":"","url":"https://api.github.com/users/zotero","html_url":"https://github.com/zotero","followers_url":"https://api.github.com/users/zotero/followers","following_url":"https://api.github.com/users/zotero/following{/other_user}","gists_url":"https://api.github.com/users/zotero/gists{/gist_id}","starred_url":"https://api.github.com/users/zotero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zotero/subscriptions","organizations_url":"https://api.github.com/users/zotero/orgs","repos_url":"https://api.github.com/users/zotero/repos","events_url":"https://api.github.com/users/zotero/events{/privacy}","received_events_url":"https://api.github.com/users/zotero/received_events","type":"Organization","site_admin":false},"repo":{"id":1991863,"name":"translators","full_name":"zotero/translators","owner":{"login":"zotero","id":891917,"avatar_url":"https://avatars.githubusercontent.com/u/891917?v=3","gravatar_id":"","url":"https://api.github.com/users/zotero","html_url":"https://github.com/zotero","followers_url":"https://api.github.com/users/zotero/followers","following_url":"https://api.github.com/users/zotero/following{/other_user}","gists_url":"https://api.github.com/users/zotero/gists{/gist_id}","starred_url":"https://api.github.com/users/zotero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zotero/subscriptions","organizations_url":"https://api.github.com/users/zotero/orgs","repos_url":"https://api.github.com/users/zotero/repos","events_url":"https://api.github.com/users/zotero/events{/privacy}","received_events_url":"https://api.github.com/users/zotero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zotero/translators","description":"Zotero Translators","fork":false,"url":"https://api.github.com/repos/zotero/translators","forks_url":"https://api.github.com/repos/zotero/translators/forks","keys_url":"https://api.github.com/repos/zotero/translators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zotero/translators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zotero/translators/teams","hooks_url":"https://api.github.com/repos/zotero/translators/hooks","issue_events_url":"https://api.github.com/repos/zotero/translators/issues/events{/number}","events_url":"https://api.github.com/repos/zotero/translators/events","assignees_url":"https://api.github.com/repos/zotero/translators/assignees{/user}","branches_url":"https://api.github.com/repos/zotero/translators/branches{/branch}","tags_url":"https://api.github.com/repos/zotero/translators/tags","blobs_url":"https://api.github.com/repos/zotero/translators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zotero/translators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zotero/translators/git/refs{/sha}","trees_url":"https://api.github.com/repos/zotero/translators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zotero/translators/statuses/{sha}","languages_url":"https://api.github.com/repos/zotero/translators/languages","stargazers_url":"https://api.github.com/repos/zotero/translators/stargazers","contributors_url":"https://api.github.com/repos/zotero/translators/contributors","subscribers_url":"https://api.github.com/repos/zotero/translators/subscribers","subscription_url":"https://api.github.com/repos/zotero/translators/subscription","commits_url":"https://api.github.com/repos/zotero/translators/commits{/sha}","git_commits_url":"https://api.github.com/repos/zotero/translators/git/commits{/sha}","comments_url":"https://api.github.com/repos/zotero/translators/comments{/number}","issue_comment_url":"https://api.github.com/repos/zotero/translators/issues/comments{/number}","contents_url":"https://api.github.com/repos/zotero/translators/contents/{+path}","compare_url":"https://api.github.com/repos/zotero/translators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zotero/translators/merges","archive_url":"https://api.github.com/repos/zotero/translators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zotero/translators/downloads","issues_url":"https://api.github.com/repos/zotero/translators/issues{/number}","pulls_url":"https://api.github.com/repos/zotero/translators/pulls{/number}","milestones_url":"https://api.github.com/repos/zotero/translators/milestones{/number}","notifications_url":"https://api.github.com/repos/zotero/translators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zotero/translators/labels{/name}","releases_url":"https://api.github.com/repos/zotero/translators/releases{/id}","deployments_url":"https://api.github.com/repos/zotero/translators/deployments","created_at":"2011-07-03T17:40:38Z","updated_at":"2016-01-26T03:14:49Z","pushed_at":"2016-01-28T12:33:43Z","git_url":"git://github.com/zotero/translators.git","ssh_url":"git@github.com:zotero/translators.git","clone_url":"https://github.com/zotero/translators.git","svn_url":"https://github.com/zotero/translators","homepage":"http://www.zotero.org/support/dev/translators","size":13063,"stargazers_count":162,"watchers_count":162,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":149,"mirror_url":null,"open_issues_count":140,"forks":149,"open_issues":140,"watchers":162,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zotero/translators/pulls/1005"},"html":{"href":"https://github.com/zotero/translators/pull/1005"},"issue":{"href":"https://api.github.com/repos/zotero/translators/issues/1005"},"comments":{"href":"https://api.github.com/repos/zotero/translators/issues/1005/comments"},"review_comments":{"href":"https://api.github.com/repos/zotero/translators/pulls/1005/comments"},"review_comment":{"href":"https://api.github.com/repos/zotero/translators/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zotero/translators/pulls/1005/commits"},"statuses":{"href":"https://api.github.com/repos/zotero/translators/statuses/4069455c24dd9b519a4407de8c744c24c19d7571"}}}}