From 31ec8297a932fa3bfaa9c6eeb5ef2e099727bb5f Mon Sep 17 00:00:00 2001 From: greycode Date: Sun, 23 Jul 2023 21:45:29 +0800 Subject: [PATCH] update --- README.md | 4 +--- content.js | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index b2365f7..8eb3d19 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,7 @@ Flomo Code 是一款 Chrome 扩展程序,为您的 Flomo 笔记提供代码语 ## 安装 -您可以从 [Release](https://github.com/greycodee/flomo-code/releases/) 下载安装 flomo-code.crx -,然后拖入 Chrome 扩展程序页面。 - +您可以从 [Release](https://github.com/greycodee/flomo-code/releases/) 下载源码压缩包,然后解压文件。在 **Chrome 扩展程序**页面打开右上角的**开发者模式**,选择**加载已解压的扩展程序**,选择解压的文件路径,就可加载flomo-code ## 使用 要使用 Flomo Code,只需在 Flomo 笔记中添加 Markdown 代码块,点击 flomo 页面右下角`绿色按钮`,即可突出显示语法。 diff --git a/content.js b/content.js index 6aee28f..0178aaa 100644 --- a/content.js +++ b/content.js @@ -25,13 +25,10 @@ window.onload = function () { hljsbtn.style.alignItems = "center"; hljsbtn.addEventListener("click", () => { - console.log("点击了"); const memos = document.getElementsByClassName("richText"); const memos_array = Array.from(memos); - console.log(memos_array.length); memos_array.forEach((memo) => { let children = memo.children; - console.log(children); const memo_p_array = Array.from(children); let languageFlag = false; let codeContentArr = [];