From 43b39e52c2a84c3b1c0c26564ae1e65816a4e4fe Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 5 Nov 2024 11:20:35 +0800 Subject: feat: add OSM for diary page --- addon/index.js | 1 + addon/manifest.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addon/index.js b/addon/index.js index 2ce3423..47d9853 100644 --- a/addon/index.js +++ b/addon/index.js @@ -20,6 +20,7 @@ const contentSelectors = { 'hackmd.io': '#doc', 'www.ptt.cc': '#main-content', 'prosemirror.net': '.ProseMirror', + 'www.openstreetmap.org': '.content-body', } const contentSelector = contentSelectors[url.host] diff --git a/addon/manifest.json b/addon/manifest.json index 92baf30..1b89ccf 100644 --- a/addon/manifest.json +++ b/addon/manifest.json @@ -21,7 +21,8 @@ "*://developer.mozilla.org/*", "*://hackmd.io/*", "*://*.ptt.cc/*", - "https://prosemirror.net/examples/*" + "https://prosemirror.net/examples/*", + "https://www.openstreetmap.org/*" ], "js": [ "renderers/leaflet.js", -- cgit v1.2.3-70-g09d2