Skip to content

Instantly share code, notes, and snippets.

@fearphage
Forked from satyr/gist_logs.user.js
Created November 8, 2009 02:47
Show Gist options
  • Save fearphage/229060 to your computer and use it in GitHub Desktop.
Save fearphage/229060 to your computer and use it in GitHub Desktop.
Shows commit logs on gist for Opera
// ==UserScript==
// @name gist logs
// @namespace http://d.hatena.ne.jp/murky-satyr
// @description Shows commit logs on Gist in Opera
// @include http://gist.github.com/*
// @include https://gist.github.com/*
// ==/UserScript==
(function($, reHref, reLines) {
$ && $('.id').each(function(i, me) {
$.get(me.href.replace(reHref, '$1/raw'), function(txt) {
if (reLines.test(txt))
$(me.parentNode).append('<div>'+ RegExp.$1 + '</div>');
});
});
})(this.jQuery, /(com)/, /\n\n([^]+)/);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment