The example menu here contains a clipboard submenu: Hierarchical floating menu template - #5 by Andreas_Hegenberg
It works using this floating menu content script using the get_items_from_clipboard_manager function:
async function retrieveJSON() {
let clips = JSON.parse(await get_items_from_clipboard_manager({start: 0, numberOfItems: 10}));;
let itemsToReturn = [];
for(let clip of clips.items) {
itemsToReturn.push({
"templateItemUUID": "C1F3BCFB-9107-4DE2-9E72-F2E082D6DA29",
"title": `${clip.meta?.previewText?.slice(0, 50)}`,
"action": `js::(async () => { paste_clipboard_manager_items_with_uuids({ uuids: "${clip.meta.uuid}"})})()`
});
}
return JSON.stringify(itemsToReturn);
}
Here is just the clipboard example menu:
clipboard_menu.bttpreset (6.1 KB)

