From a7ca15e5cc852546369d1706f624a775163aa05a Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 18 Oct 2024 12:23:24 +0800 Subject: feat: test on prosemirror.net --- addon/index.mjs | 1 + addon/manifest.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addon/index.mjs b/addon/index.mjs index d138775..5776a18 100644 --- a/addon/index.mjs +++ b/addon/index.mjs @@ -15,6 +15,7 @@ const blockSelectors = { 'developer.mozilla': '.section-content', 'hackmd.io': '#doc > *', 'www.ptt.cc': '#main-content > span', + 'prosemirror.net': '.ProseMirror > *', } const blockSelector = blockSelectors[url.host] diff --git a/addon/manifest.json b/addon/manifest.json index 93b0b65..b95fd4b 100644 --- a/addon/manifest.json +++ b/addon/manifest.json @@ -14,7 +14,8 @@ "matches": [ "*://developer.mozilla.org/*", "*://hackmd.io/*", - "*://*.ptt.cc/*" + "*://*.ptt.cc/*", + "https://prosemirror.net/examples/*" ], "js": [ "dumbymap.mjs", -- cgit v1.2.3-70-g09d2