navigator.clipboard.writeText
2022/5/14 12:05:00
javascript: (()=>{
const html = `<a href = "${location.href}">\n <img src="${location.href}/thumb/300#.jpg"/>\n</a>`;
if( navigator.clipboard.writeText(html) ){
alert(`thumbneil code copied`);
} else {
alert(`error`);
}
})();