uninstall = async () => {
                    const { FsExtra } = this.utils.Package
                    const remove = '<script src="./plugin/index.js" defer="defer"></script>'
                    const windowHTML = this.utils.joinPath("./window.html")
                    const pluginFolder = this.utils.joinPath("./plugin")
                    try {
                        const content = await FsExtra.readFile(windowHTML, "utf-8")
                        const newContent = content.replace(remove, "")
                        await FsExtra.writeFile(windowHTML, newContent)
                        await FsExtra.remove(pluginFolder)
                    } catch (e) {
                        alert(e.toString())
                        return
                    }
                    const message = this.i18n._t("global", "success.uninstall")
                    const confirm = this.i18n._t("global", "confirm")
                    const op = { type: "info", title: "typora plugin", message, buttons: [confirm] }
                    await this.utils.showMessageBox(op)
                    this.utils.restartTypora(false)
                }
Callback functions for type="action" settings in schema