diff --git a/dreditor.user.js b/dreditor.user.js
index b2369cd..11080e9 100644
--- a/dreditor.user.js
+++ b/dreditor.user.js
@@ -2104,6 +2104,62 @@ Drupal.behaviors.dreditorIssuesFilterFormReset = function (context) {
   });
 };
 
+Drupal.behaviors.drlc = function(context) {
+
+  if ($('#drlc').html()) return;
+
+  var $a = jQuery('<a href="#" id="drlc">Paste commit link</a>');
+  $a.css({
+      'background-color': '#FAFCFE',
+      'border': '1px solid #CCCCCC',
+      'display': 'inline-block',
+      'font-weight': 'normal',
+      'line-height': '150%',
+      'margin': '0 0 0 0.5em',
+      'padding': '0.05em 0.3em',
+      'text-decoration': 'none',
+  });
+  jQuery('#edit-comment', context).parent().append($a);
+  
+  // Progressively walks through the links to the diff page and grabs the URL.
+  $a.click(function(e) {
+    e.preventDefault();
+    // First, go to the project page
+    jQuery.get(jQuery('.breadcrumb a:first', context).attr('href'), function(data) {
+      // Now go to the commits page
+      var url1 = jQuery(data).find('#project-commits a:first').attr('href');
+      jQuery.get(url1, function(d) {
+        var url2 = jQuery(d).find('.commit-info:first a:first').attr('href');
+        insertAtCaret(document.getElementById('edit-comment'), '<a href="' + url2 + '">Committed fix to dev</a>');
+      });
+    });
+  });
+
+};
+
+// Allows inserting text into a textarea at the cursor position.
+// From http://stackoverflow.com/a/4384173/843621
+function insertAtCaret(element, text) {
+    if (document.selection) {
+        element.focus();
+        var sel = document.selection.createRange();
+        sel.text = text;
+        element.focus();
+    } else if (element.selectionStart || element.selectionStart === 0) {
+        var startPos = element.selectionStart;
+        var endPos = element.selectionEnd;
+        var scrollTop = element.scrollTop;
+        element.value = element.value.substring(0, startPos) + text + element.value.substring(endPos, element.value.length);
+        element.focus();
+        element.selectionStart = startPos + text.length;
+        element.selectionEnd = startPos + text.length;
+        element.scrollTop = scrollTop;
+    } else {
+        element.value += text;
+        element.focus();
+    }
+}
+
 /**
  * Initialize Dreditor.
  */
