Github Issue title + GFM Link

Provides a Github Flavored Markdown text as an issues title

  1. // ==UserScript==
  2. // @name Github Issue title + GFM Link
  3. // @namespace http://wilcoxd.com/
  4. // @description Provides a Github Flavored Markdown text as an issues title
  5. // @include https://github.com/*/issues/*
  6. // @version 1
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10.  
  11. (function() {
  12.  
  13. function onDOMSubtreeModifiedHandler(e){
  14. var header = $("h1.gh-header-title span.gh-header-number")
  15.  
  16. if (header.html().match("GFM:") == null) {
  17. var gfmReference = window.location.pathname.replace(/\/issues\//, "#").substr(1)
  18. header.html( header.html() + " (GFM: " + gfmReference + ")")
  19. }
  20.  
  21. };
  22.  
  23. document.addEventListener('DOMSubtreeModified', onDOMSubtreeModifiedHandler, false);
  24. })();