nicothumb2img
例:
https://nicothumb2img.vercel.app/image/sm9#.png https://nico.ms/sm9 https://nicothumb2img.vercel.app/image/im355089#.png https://nico.ms/im355089
https://gyazo.com/3bd0c77305450031a5ccd83d9dc5c815
code:nicothumb2img.js
const niconicoURLRegex = /(?=(?=nico\.ms|nicovideo\.jp\/(?=watch|seiga|)\/)|)?(a-z{2}?1-90-9*)/ scrapbox.PopupMenu.addButton({
title: text => {
const result = text.match(niconicoURLRegex)
if (result == null) return null
return nicothumb2img (${result[0]})
},
onClick: (text) => {
const m = text.match(niconicoURLRegex);
if (!m) return text;
return [https://nicothumb2img.vercel.app/image/${m[0]}#.png https://nico.ms/${m[0]}];
},
});
FirefoxとSafariのためにsettingsに入れておいてほしいCSS
code:force-dpi-style.css
width: 314px;
box-sizing: content-box;
}