chrome.tabs.onUpdated.addListener(function(id, details, tab) {
  chrome.storage.sync.get("tabSize", function(items) {
    var tabSpacing = encodeURI("ts=" + items.tabSize);
    var url        = tab.url;

    if (url.indexOf(tabSpacing) > 0 || url.indexOf("/blob/") === -1) {
      return;
    }

    var hashStart   = url.indexOf("#") === -1 ? url.length : url.indexOf("#");
    var querySymbol = url.indexOf("?") === -1 ? "?" : "&";
    var newURL      = url.substring(0, hashStart) + querySymbol + tabSpacing + url.substring(hashStart);

    chrome.tabs.update(id, {
      url: newURL
    });
  });
});

@@ -236,16 +236,17 @@
  %3E 0 %7C%7C 
+(
 url.inde
@@ -265,16 +265,51 @@
 ) === -1
+ && url.indexOf(%22/commit/%22) === -1)
 ) %7B%0A    

add support for commit/diff pages