| Last updated | 2026-10-17 |
|---|---|
| Based on | https://chatgpt.com/plugins/github |
| action | note |
| Last updated | 2026-10-17 |
|---|---|
| Based on | https://chatgpt.com/plugins/github |
| action | note |
| excalidraw-plugin | parsed |
|---|---|
| excalidraw-onload-script | setTimeout(async()=>{let mmb=window.MindMapBuilderAPI;if(!mmb){await sleep(500);const cmd=Object.keys(app.commands.commands).find((k)=>/.*Mindmap Builder$/.test(k));if(!cmd)return;if(!app.commands.commands[cmd].checkCallback(false))return;await sleep(500);mmb=window.MindMapBuilderAPI;if(!mmb)return;}await mmb.setInputFieldDockStatus({isDocked:false});mmb.performAction(mmb.Actions.FOCUS);},100) |
<%* /*
const td=moment(tp.file.title.substr(0,10)); //my DNP filename format is "YYYY-MM-DD dddd"
tR += "Yesterday:: [[Daily Notes/" +
td.add(-1,'d').format("YYYY-MM-DD dddd") +
| .callout[data-callout="todo"] { | |
| --callout-color: 230, 20, 10; | |
| --callout-icon: lucide-lightbulb; | |
| } | |
| .callout[data-callout="interesting"] { | |
| --callout-color: 245, 209, 10; | |
| --callout-icon: lucide-lightbulb; | |
| } |
| ea = ExcalidrawAutomate; | |
| async function run() { | |
| const files = app.vault.getMarkdownFiles().filter(f=>ea.isExcalidrawFile(f) && f.name.match(/^(?:icon|stickfigure|logo) - /i)); | |
| let workingLeaf = app.workspace.getLeaf(true); | |
| //let i = 0; //uncomment this and if statment later for limited debugging. | |
| for (excalidrawFile of files) { | |
| //if(i++>5) continue; | |
| await workingLeaf.openFile(excalidrawFile); | |
| await sleep(200); |
<%* /*
/**
* Obsidian Templater script to build a book from markdown files.
*
* This script automates the process of generating a publish-ready book from a set of Obsidian markdown files.
* It is designed to work on both Windows and Mac, and can be run from within Obsidian using the Templater plugin.
*
* The script performs the following steps:
* 1. Expands all Obsidian embeds and links, recursively flattening the book structure into two markdown files:<%*
const ea = ExcalidrawAutomate;
const imageSize = 1024x1024;
const instruction = "Return a single message with the generated image prompt in a codeblock";
const systemPrompt = "Your task involves transforming a user-provided quote into a detailed and imaginative illustration. Craft a visual representation that captures the essence of the quote and resonates well with a broad audience. Additionally, provide preferences for styling, such as the chosen medium and artistic direction, to guide the image creation process. Ensure the resulting image remains text-free. Your task output should comprise a descriptive and detailed narrative aimed at facilitating the creation of a captivating illustration from the quote.";
//--------------------------------------- //Get Quote from stoic quotes //--------------------------------------- const quoteString = await request({url: "https://stoic-quotes.com/api/quote"});
| @font-face {font-family: "Virgil";src: url("https://excalidraw.com/Virgil.woff2");} | |
| @font-face {font-family: "Cascadia";src: url("https://excalidraw.com/Cascadia.woff2");} | |
| @font-face {font-family: "Assistant";src: url("https://excalidraw.com/Assistant-Regular.woff2");} | |
| div.markdown-embed-title { | |
| display: none; | |
| } | |
| div.markdown-embed { | |
| border: none; |
| https://youtu.be/OX5_UYjXEvc | |
|  |
<%* /* https://gist.github.com/zsviczian/c7223c5b4af30d5c88a0cae05300305c/edit
*/
const installStyleHook = () => {
if(!window.ExcalidrawAutomate) return false;
ExcalidrawAutomate.onCanvasColorChangeHook = (ea, view, color) => {
const doc = view.ownerDocument;/*
const FILENAME_FILTER = /^icon -/i;
const KEYWORD_GRABBER = /(?:icon -)?([^-]*)-?/i;
const COLS = 30;
const LOCK_ICONS = true;
const HEIGHT = 180;
const WIDTH = 180;
const TEXTHEIGHT = 40;
const PADDING = 50;