script.jsscrapbox.PopupMenu.addButton({
title: 'LaTeX',
onClick: text => text.split(/\n/).map(
line => line.replace(/\$([^$]+)\$/g, '[$$ $1]')
).join('\n')
});
(function() {
var elems = document.getElementsByClassName("brand-icon");
elems[0].src = 'https://img.textfile.org/2018-08-28_ken.png';
})();