/*
* @title Copy githublink
* @description 現在見ている GitHub Issue/PR URL を OWNER/REPO#ID フォーマットでコピーします
* @include https://*
* @license MIT License
* @require
*/
javascript:(function(w,d,l){var b=d.createElement("input"),bs=b.style;b.size=120;bs.zIndex=99999;bs.left=bs.top=0;bs.position="fixed";b.value=l.href.match(/[^\/]+\/[^\/]+\/(issues|pull)\/\d+/)[0].replace(/\/(issues|pull)\//,"#")+" "+d.title+" "+l.href;d.body.appendChild(b);w,scroll(0,0);b.select();document.execCommand("copy");})(window,document,location);
(function(w,d,l){
var b=d.createElement("input"), bs=b.style;
b.size=120;
bs.zIndex=99999;
bs.left=bs.top=0;
bs.position="fixed";
b.value=l.href.match(/[^\/]+\/[^\/]+\/(issues|pull)\/\d+/)[0].replace(/\/(issues|pull)\//,"#")+" "+d.title+" "+l.href;d.body.appendChild(b);
d.body.appendChild(b);w,scroll(0,0);b.select();
})(window,document,location);