/*
* @title Make Hatena Bookmak Entry ID URL
* @description Get Hatena.Bookmark.entry.eid の ./entry/EID URLを作る
* @include https://b.hatena.ne.jp/entry/*
* @license MIT License
* @require
* @javascript_url
*/
(d=>{
if(!d.documentElement.hasAttribute('data-entry-eid')) return;
const HBEntry = 'https://b.hatena.ne.jp/entry/';
const SearchForm = d.getElementsByName('q')[0];
const EID = d.documentElement.dataset.entryEid;
SearchForm.value = HBEntry + EID;
SearchForm.focus();
console.log(HBEntry + EID);
})(document);