/*
* @title <->Gists API
* @description Go and back Gists API v3
* @include https://gist.github.com/*
* @include https://api.github.com/gists/*
* @license MIT License http://nrm.mit-license.org/2012
* @require
*/
(function () {
var id;
if ((id = (/^https:\/\/gist\.github\.com\/(\d+)/.exec(location.href) || [])[1])) {
location.href = 'https://api.github.com/gists/' + id;
} else if ((id = (/^https:\/\/api\.github\.com\/gists\/(\d+)/.exec(location.href) || [])[1])) {
location.href = 'https://gist.github.com/' + id;
}
})();