{"action":"created","comment":{"url":"https://api.github.com/repos/YOURLS/YOURLS/pulls/comments/57034045","id":57034045,"diff_hunk":"@@ -36,16 +36,14 @@ function share(dest) {\n }\n \n function init_clipboard() {\n-\t$('#copylink').click(function(){\n-\t\t$(this).select();\n-\t})\n-\t\n-\t$('#copylink').zclip({\n-\t\tpath: zclipurl,\n-\t\tcopy: $('#copylink').val(),\n-\t\tafterCopy:function(){\n-\t\t\thtml_pulse( '#copybox h2, #copybox h3', 'Copied!' );\n-\t\t}\n-\t});\n-};                     \n-\n+    var clipboard = new Clipboard('#copylink', {\n+        text: function (trigger) {\n+            return $(trigger).val();\n+        }\n+    });\n+    \n+    clipboard.on('success', function (e) {","path":"js/share.js","position":23,"original_position":23,"commit_id":"5260f9e4f78b5510a4381bb35cbddc2ea86b6ad6","original_commit_id":"5260f9e4f78b5510a4381bb35cbddc2ea86b6ad6","user":{"login":"LeoColomb","id":846943,"avatar_url":"https://avatars.githubusercontent.com/u/846943?v=3","gravatar_id":"","url":"https://api.github.com/users/LeoColomb","html_url":"https://github.com/LeoColomb","followers_url":"https://api.github.com/users/LeoColomb/followers","following_url":"https://api.github.com/users/LeoColomb/following{/other_user}","gists_url":"https://api.github.com/users/LeoColomb/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoColomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoColomb/subscriptions","organizations_url":"https://api.github.com/users/LeoColomb/orgs","repos_url":"https://api.github.com/users/LeoColomb/repos","events_url":"https://api.github.com/users/LeoColomb/events{/privacy}","received_events_url":"https://api.github.com/users/LeoColomb/received_events","type":"User","site_admin":false},"body":"As you want. That said, console logging is not recommended.\r\nIf not, you should not add the `e` parameter.","created_at":"2016-03-22T17:44:56Z","updated_at":"2016-03-22T17:44:56Z","html_url":"https://github.com/YOURLS/YOURLS/pull/2066#discussion_r57034045","pull_request_url":"https://api.github.com/repos/YOURLS/YOURLS/pulls/2066","_links":{"self":{"href":"https://api.github.com/repos/YOURLS/YOURLS/pulls/comments/57034045"},"html":{"href":"https://github.com/YOURLS/YOURLS/pull/2066#discussion_r57034045"},"pull_request":{"href":"https://api.github.com/repos/YOURLS/YOURLS/pulls/2066"}}},"pull_request":{"url":"https://api.github.com/repos/YOURLS/YOURLS/pulls/2066","id":63738128,"html_url":"https://github.com/YOURLS/YOURLS/pull/2066","diff_url":"https://github.com/YOURLS/YOURLS/pull/2066.diff","patch_url":"https://github.com/YOURLS/YOURLS/pull/2066.patch","issue_url":"https://api.github.com/repos/YOURLS/YOURLS/issues/2066","number":2066,"state":"open","locked":false,"title":"change zeroclipboard to clipboardjs","user":{"login":"Preovaleo","id":6892913,"avatar_url":"https://avatars.githubusercontent.com/u/6892913?v=3","gravatar_id":"","url":"https://api.github.com/users/Preovaleo","html_url":"https://github.com/Preovaleo","followers_url":"https://api.github.com/users/Preovaleo/followers","following_url":"https://api.github.com/users/Preovaleo/following{/other_user}","gists_url":"https://api.github.com/users/Preovaleo/gists{/gist_id}","starred_url":"https://api.github.com/users/Preovaleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preovaleo/subscriptions","organizations_url":"https://api.github.com/users/Preovaleo/orgs","repos_url":"https://api.github.com/users/Preovaleo/repos","events_url":"https://api.github.com/users/Preovaleo/events{/privacy}","received_events_url":"https://api.github.com/users/Preovaleo/received_events","type":"User","site_admin":false},"body":"solve #2047","created_at":"2016-03-22T15:21:46Z","updated_at":"2016-03-22T17:44:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89f5c57ec975b739d95a5779c471e5610adc9f37","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/YOURLS/YOURLS/pulls/2066/commits","review_comments_url":"https://api.github.com/repos/YOURLS/YOURLS/pulls/2066/comments","review_comment_url":"https://api.github.com/repos/YOURLS/YOURLS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YOURLS/YOURLS/issues/2066/comments","statuses_url":"https://api.github.com/repos/YOURLS/YOURLS/statuses/5260f9e4f78b5510a4381bb35cbddc2ea86b6ad6","head":{"label":"Preovaleo:master","ref":"master","sha":"5260f9e4f78b5510a4381bb35cbddc2ea86b6ad6","user":{"login":"Preovaleo","id":6892913,"avatar_url":"https://avatars.githubusercontent.com/u/6892913?v=3","gravatar_id":"","url":"https://api.github.com/users/Preovaleo","html_url":"https://github.com/Preovaleo","followers_url":"https://api.github.com/users/Preovaleo/followers","following_url":"https://api.github.com/users/Preovaleo/following{/other_user}","gists_url":"https://api.github.com/users/Preovaleo/gists{/gist_id}","starred_url":"https://api.github.com/users/Preovaleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preovaleo/subscriptions","organizations_url":"https://api.github.com/users/Preovaleo/orgs","repos_url":"https://api.github.com/users/Preovaleo/repos","events_url":"https://api.github.com/users/Preovaleo/events{/privacy}","received_events_url":"https://api.github.com/users/Preovaleo/received_events","type":"User","site_admin":false},"repo":{"id":54484726,"name":"YOURLS","full_name":"Preovaleo/YOURLS","owner":{"login":"Preovaleo","id":6892913,"avatar_url":"https://avatars.githubusercontent.com/u/6892913?v=3","gravatar_id":"","url":"https://api.github.com/users/Preovaleo","html_url":"https://github.com/Preovaleo","followers_url":"https://api.github.com/users/Preovaleo/followers","following_url":"https://api.github.com/users/Preovaleo/following{/other_user}","gists_url":"https://api.github.com/users/Preovaleo/gists{/gist_id}","starred_url":"https://api.github.com/users/Preovaleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preovaleo/subscriptions","organizations_url":"https://api.github.com/users/Preovaleo/orgs","repos_url":"https://api.github.com/users/Preovaleo/repos","events_url":"https://api.github.com/users/Preovaleo/events{/privacy}","received_events_url":"https://api.github.com/users/Preovaleo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Preovaleo/YOURLS","description":"Your Own URL Shortener.","fork":true,"url":"https://api.github.com/repos/Preovaleo/YOURLS","forks_url":"https://api.github.com/repos/Preovaleo/YOURLS/forks","keys_url":"https://api.github.com/repos/Preovaleo/YOURLS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Preovaleo/YOURLS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Preovaleo/YOURLS/teams","hooks_url":"https://api.github.com/repos/Preovaleo/YOURLS/hooks","issue_events_url":"https://api.github.com/repos/Preovaleo/YOURLS/issues/events{/number}","events_url":"https://api.github.com/repos/Preovaleo/YOURLS/events","assignees_url":"https://api.github.com/repos/Preovaleo/YOURLS/assignees{/user}","branches_url":"https://api.github.com/repos/Preovaleo/YOURLS/branches{/branch}","tags_url":"https://api.github.com/repos/Preovaleo/YOURLS/tags","blobs_url":"https://api.github.com/repos/Preovaleo/YOURLS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Preovaleo/YOURLS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Preovaleo/YOURLS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Preovaleo/YOURLS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Preovaleo/YOURLS/statuses/{sha}","languages_url":"https://api.github.com/repos/Preovaleo/YOURLS/languages","stargazers_url":"https://api.github.com/repos/Preovaleo/YOURLS/stargazers","contributors_url":"https://api.github.com/repos/Preovaleo/YOURLS/contributors","subscribers_url":"https://api.github.com/repos/Preovaleo/YOURLS/subscribers","subscription_url":"https://api.github.com/repos/Preovaleo/YOURLS/subscription","commits_url":"https://api.github.com/repos/Preovaleo/YOURLS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Preovaleo/YOURLS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Preovaleo/YOURLS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Preovaleo/YOURLS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Preovaleo/YOURLS/contents/{+path}","compare_url":"https://api.github.com/repos/Preovaleo/YOURLS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Preovaleo/YOURLS/merges","archive_url":"https://api.github.com/repos/Preovaleo/YOURLS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Preovaleo/YOURLS/downloads","issues_url":"https://api.github.com/repos/Preovaleo/YOURLS/issues{/number}","pulls_url":"https://api.github.com/repos/Preovaleo/YOURLS/pulls{/number}","milestones_url":"https://api.github.com/repos/Preovaleo/YOURLS/milestones{/number}","notifications_url":"https://api.github.com/repos/Preovaleo/YOURLS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Preovaleo/YOURLS/labels{/name}","releases_url":"https://api.github.com/repos/Preovaleo/YOURLS/releases{/id}","deployments_url":"https://api.github.com/repos/Preovaleo/YOURLS/deployments","created_at":"2016-03-22T15:06:15Z","updated_at":"2016-03-22T15:06:16Z","pushed_at":"2016-03-22T16:26:22Z","git_url":"git://github.com/Preovaleo/YOURLS.git","ssh_url":"git@github.com:Preovaleo/YOURLS.git","clone_url":"https://github.com/Preovaleo/YOURLS.git","svn_url":"https://github.com/Preovaleo/YOURLS","homepage":"http://yourls.org/","size":11924,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"YOURLS:master","ref":"master","sha":"2f9e0c18129184ec8257ee2a5c1c64ef085e05eb","user":{"login":"YOURLS","id":2106111,"avatar_url":"https://avatars.githubusercontent.com/u/2106111?v=3","gravatar_id":"","url":"https://api.github.com/users/YOURLS","html_url":"https://github.com/YOURLS","followers_url":"https://api.github.com/users/YOURLS/followers","following_url":"https://api.github.com/users/YOURLS/following{/other_user}","gists_url":"https://api.github.com/users/YOURLS/gists{/gist_id}","starred_url":"https://api.github.com/users/YOURLS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YOURLS/subscriptions","organizations_url":"https://api.github.com/users/YOURLS/orgs","repos_url":"https://api.github.com/users/YOURLS/repos","events_url":"https://api.github.com/users/YOURLS/events{/privacy}","received_events_url":"https://api.github.com/users/YOURLS/received_events","type":"Organization","site_admin":false},"repo":{"id":5508585,"name":"YOURLS","full_name":"YOURLS/YOURLS","owner":{"login":"YOURLS","id":2106111,"avatar_url":"https://avatars.githubusercontent.com/u/2106111?v=3","gravatar_id":"","url":"https://api.github.com/users/YOURLS","html_url":"https://github.com/YOURLS","followers_url":"https://api.github.com/users/YOURLS/followers","following_url":"https://api.github.com/users/YOURLS/following{/other_user}","gists_url":"https://api.github.com/users/YOURLS/gists{/gist_id}","starred_url":"https://api.github.com/users/YOURLS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YOURLS/subscriptions","organizations_url":"https://api.github.com/users/YOURLS/orgs","repos_url":"https://api.github.com/users/YOURLS/repos","events_url":"https://api.github.com/users/YOURLS/events{/privacy}","received_events_url":"https://api.github.com/users/YOURLS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YOURLS/YOURLS","description":"Your Own URL Shortener.","fork":false,"url":"https://api.github.com/repos/YOURLS/YOURLS","forks_url":"https://api.github.com/repos/YOURLS/YOURLS/forks","keys_url":"https://api.github.com/repos/YOURLS/YOURLS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YOURLS/YOURLS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YOURLS/YOURLS/teams","hooks_url":"https://api.github.com/repos/YOURLS/YOURLS/hooks","issue_events_url":"https://api.github.com/repos/YOURLS/YOURLS/issues/events{/number}","events_url":"https://api.github.com/repos/YOURLS/YOURLS/events","assignees_url":"https://api.github.com/repos/YOURLS/YOURLS/assignees{/user}","branches_url":"https://api.github.com/repos/YOURLS/YOURLS/branches{/branch}","tags_url":"https://api.github.com/repos/YOURLS/YOURLS/tags","blobs_url":"https://api.github.com/repos/YOURLS/YOURLS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YOURLS/YOURLS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YOURLS/YOURLS/git/refs{/sha}","trees_url":"https://api.github.com/repos/YOURLS/YOURLS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YOURLS/YOURLS/statuses/{sha}","languages_url":"https://api.github.com/repos/YOURLS/YOURLS/languages","stargazers_url":"https://api.github.com/repos/YOURLS/YOURLS/stargazers","contributors_url":"https://api.github.com/repos/YOURLS/YOURLS/contributors","subscribers_url":"https://api.github.com/repos/YOURLS/YOURLS/subscribers","subscription_url":"https://api.github.com/repos/YOURLS/YOURLS/subscription","commits_url":"https://api.github.com/repos/YOURLS/YOURLS/commits{/sha}","git_commits_url":"https://api.github.com/repos/YOURLS/YOURLS/git/commits{/sha}","comments_url":"https://api.github.com/repos/YOURLS/YOURLS/comments{/number}","issue_comment_url":"https://api.github.com/repos/YOURLS/YOURLS/issues/comments{/number}","contents_url":"https://api.github.com/repos/YOURLS/YOURLS/contents/{+path}","compare_url":"https://api.github.com/repos/YOURLS/YOURLS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YOURLS/YOURLS/merges","archive_url":"https://api.github.com/repos/YOURLS/YOURLS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YOURLS/YOURLS/downloads","issues_url":"https://api.github.com/repos/YOURLS/YOURLS/issues{/number}","pulls_url":"https://api.github.com/repos/YOURLS/YOURLS/pulls{/number}","milestones_url":"https://api.github.com/repos/YOURLS/YOURLS/milestones{/number}","notifications_url":"https://api.github.com/repos/YOURLS/YOURLS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YOURLS/YOURLS/labels{/name}","releases_url":"https://api.github.com/repos/YOURLS/YOURLS/releases{/id}","deployments_url":"https://api.github.com/repos/YOURLS/YOURLS/deployments","created_at":"2012-08-22T11:36:52Z","updated_at":"2016-03-22T17:20:29Z","pushed_at":"2016-03-22T16:26:24Z","git_url":"git://github.com/YOURLS/YOURLS.git","ssh_url":"git@github.com:YOURLS/YOURLS.git","clone_url":"https://github.com/YOURLS/YOURLS.git","svn_url":"https://github.com/YOURLS/YOURLS","homepage":"http://yourls.org/","size":16612,"stargazers_count":2226,"watchers_count":2226,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":560,"mirror_url":null,"open_issues_count":79,"forks":560,"open_issues":79,"watchers":2226,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YOURLS/YOURLS/pulls/2066"},"html":{"href":"https://github.com/YOURLS/YOURLS/pull/2066"},"issue":{"href":"https://api.github.com/repos/YOURLS/YOURLS/issues/2066"},"comments":{"href":"https://api.github.com/repos/YOURLS/YOURLS/issues/2066/comments"},"review_comments":{"href":"https://api.github.com/repos/YOURLS/YOURLS/pulls/2066/comments"},"review_comment":{"href":"https://api.github.com/repos/YOURLS/YOURLS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YOURLS/YOURLS/pulls/2066/commits"},"statuses":{"href":"https://api.github.com/repos/YOURLS/YOURLS/statuses/5260f9e4f78b5510a4381bb35cbddc2ea86b6ad6"}}}}