/*
* @title bookmarklet
* @description my bookmarklet
* @include https://ja.wikipedia.org/wiki/*
* @license MIT License
* @require
* @javascript_url
*/
(async ()=>{
const tmp = document.createElement('div');
tmp.innerHTML = await ((await fetch(location.href+'?action=info')).text());
const curid = tmp.querySelector('#mw-pageinfo-article-id td:nth-child(2)').textContent;
location.href=`https://ja.wikipedia.org/?curid=${curid}`;
})()