// ==UserScript== // @name gist logs // @namespace http://d.hatena.ne.jp/murky-satyr // @description Shows commit logs on Gist. // @include https://gist.github.com/* // @license WTFPL // ==/UserScript== Array.forEach(document.querySelectorAll('#revisions .id'), function(a){ GM_xmlhttpRequest({ method: 'get', url: 'https://raw.github.com/gist'+ a.pathname +'/meta', onload: function(r){ if(/\n\n/.test(r.responseText)) a.parentNode.appendChild(document.createElement('div')) .textContent = RegExp["$'"] } }) })