// ==UserScript==
// @name gist: replace title with filename
// @namespace http://d.hatena.ne.jp/youpy/
// @include http://gist.github.com/*
// @exclude http://gist.github.com/gists
// @require http://gist.github.com/raw/3242/1a7950e033a207efcfc233ae8d9939b676bdbf46
// ==/UserScript==
 
(function() {
  var username = $X('id("owner")/a[@href!="#"]')[0].textContent;
  var filenames = $X('//*[name()="A" or name()="SPAN"][name(..)="DIV"][../@class="info"]').map(
    function(span) {
      return span.textContent;
    }
  );
 
  if(filenames.length) {
    document.title = document.title.
        replace(/^(gist: \d+)/,
                '$1 (' + filenames.join(', ') + ') by ' + username);
  }
})();

filename は複数存在する可能性があるってことだ。

で、この greasemonkey を入れるとタイトルのところが

gist: 93187 - GitHub

っていうのが

gist: 93187 (gist_replace_title_with_filename.user.js) by youpy - GitHub

になる。