member
mono
this is mono’s page
scrapbox.PopupMenu.addButton({
title: "ricapitolare",
onClick: (text) => {
return `[https://ricapitolare.vercel.app/svg?url=${text}#.svg ${text}]`;
},
});
scrapbox.PopupMenu.addButton({
title: 'Add thumb',
onClick: text =>{
let tabs = text.match("(\t+)");
let match = text.match(".?(http.+).?")[1];
match = match.replace("]","");
if (tabs == null){
text=text + '\n'+ '[https://s.wordpress.com/mshots/v1/' + match + '?&.png]\n';
}
else if (tabs[1].length == 1){
const tab = tabs[1].replace("\t","");
text=text + '\n' + tab + '[https://s.wordpress.com/mshots/v1/' + match + '?&.png]\n';
}
else {
const tab = tabs[1].replace("\t","");
text=text + '\n[' + tab + '][https://s.wordpress.com/mshots/v1/' + match + '?&.png]\n';
}
return text;
}
})