popup-menu-open-urls
import
code:script.js
import { parse } from "/api/code/takker/scrapbox-parser@7.1.0/script.js";
import { findURLNodes } from "../node/URLNode.js";
const main = (text) => {
const nodes = parse(text, { hasTitle: false });
const urlNodes = [];
findURLNodes(nodes, urlNodes);
return urlNodes.forEach((urlNode) => urlNode.openUrl());
};
scrapbox.PopupMenu.addButton({
title: "open URLs",
onClick: (text) => main(text),
});