From 69fc5bcd1236cef3ddfdd5533150038663e5f2ea Mon Sep 17 00:00:00 2001 From: RKWojs Date: Thu, 5 Jun 2025 11:32:10 +0200 Subject: [PATCH] initial cleanup --- id.txt | 1 - manifest.json | 58 +++++++++++++++++++++++++++++++++++---------------- page.html | 42 ------------------------------------- 3 files changed, 40 insertions(+), 61 deletions(-) delete mode 100644 id.txt delete mode 100644 page.html diff --git a/id.txt b/id.txt deleted file mode 100644 index 427ed1a..0000000 --- a/id.txt +++ /dev/null @@ -1 +0,0 @@ -https://geoportal.pgi.gov.pl/arcgis/rest/services/sopoView_dynamic/MapServer/export?dpi=96&transparent=true&format=png8&bbox=620974.8645613709%2C190856.77261993414%2C622996.2852708789%2C192206.15031868956&bboxSR=%7B%22wkt%22%3A%22PROJCS%5B%5C%22PUWG_92%5C%22%2CGEOGCS%5B%5C%22GCS_ETRF_1989%5C%22%2CDATUM%5B%5C%22D_ETRF_1989%5C%22%2CSPHEROID%5B%5C%22WGS_1984%5C%22%2C6378137.0%2C298.257223563%5D%5D%2CPRIMEM%5B%5C%22Greenwich%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Degree%5C%22%2C0.0174532925199433%5D%5D%2CPROJECTION%5B%5C%22Gauss_Kruger%5C%22%5D%2CPARAMETER%5B%5C%22False_Easting%5C%22%2C500000.0%5D%2CPARAMETER%5B%5C%22False_Northing%5C%22%2C-5300000.0%5D%2CPARAMETER%5B%5C%22Central_Meridian%5C%22%2C19.0%5D%2CPARAMETER%5B%5C%22Scale_Factor%5C%22%2C0.9993%5D%2CPARAMETER%5B%5C%22Latitude_Of_Origin%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Meter%5C%22%2C1.0%5D%5D%22%7D&imageSR=%7B%22wkt%22%3A%22PROJCS%5B%5C%22PUWG_92%5C%22%2CGEOGCS%5B%5C%22GCS_ETRF_1989%5C%22%2CDATUM%5B%5C%22D_ETRF_1989%5C%22%2CSPHEROID%5B%5C%22WGS_1984%5C%22%2C6378137.0%2C298.257223563%5D%5D%2CPRIMEM%5B%5C%22Greenwich%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Degree%5C%22%2C0.0174532925199433%5D%5D%2CPROJECTION%5B%5C%22Gauss_Kruger%5C%22%5D%2CPARAMETER%5B%5C%22False_Easting%5C%22%2C500000.0%5D%2CPARAMETER%5B%5C%22False_Northing%5C%22%2C-5300000.0%5D%2CPARAMETER%5B%5C%22Central_Meridian%5C%22%2C19.0%5D%2CPARAMETER%5B%5C%22Scale_Factor%5C%22%2C0.9993%5D%2CPARAMETER%5B%5C%22Latitude_Of_Origin%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Meter%5C%22%2C1.0%5D%5D%22%7D&size=764%2C510&f=image \ No newline at end of file diff --git a/manifest.json b/manifest.json index c4f9681..b32675f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,12 +1,20 @@ { - "manifest_version": 2, + "manifest_version": 3, "name": "ZEDEMES", - "version": "0.0.12", + "version": "0.0.13", + "permissions": ["storage", "tabs"], + "host_permissions": [ + "*://*.tauron-dystrybucja.pl/*", + "*://sip.chelmiec.pl/*" + ], + "background": { + "service_worker": "js/background.js" + }, "content_scripts": [ { - "matches": ["*://*.tauron-dystrybucja.pl/*", "*://mapy.geoportal.gov.pl/*"], - "js": [ + "matches": ["*://*.tauron-dystrybucja.pl/*"], + "js": ["js/intercept.js", "/js/content.js", "/js/handlers/geoButton.js", @@ -29,20 +37,34 @@ "/js/handlers/messages.js", "/js/handlers/translate.js", "/js/core.js" - ] + ], + "run_at": "document_start" } ], - "permissions": [ - "webRequest", - "webRequestBlocking", - "tabs", - "contextMenus", - "" - ], - "background": { - "scripts": ["/js/background.js"] - }, - - "devtools_page": "dev.html", - "web_accessible_resources": ["page.html", "icons/mpzp.png","icons/loading.gif", "icons/dzialki1.png","icons/dzialki2.png","icons/pen.png","icons/slice.png","icons/save.png","icons/geoportal.png","icons/google.png","icons/gdos.png","icons/isok.png","icons/sopo.png","icons/lpp.png","icons/position.png","icons/position_alt.png"] + "web_accessible_resources": [ + { + "resources": ["js/inject.js"], + "matches": ["*://*.tauron-dystrybucja.pl/*"] + }, + { + "resources": [ + "icons/mpzp.png", + "icons/loading.gif", + "icons/dzialki1.png", + "icons/dzialki2.png", + "icons/pen.png", + "icons/slice.png", + "icons/save.png", + "icons/geoportal.png", + "icons/google.png", + "icons/gdos.png", + "icons/isok.png", + "icons/sopo.png", + "icons/lpp.png", + "icons/position.png", + "icons/position_alt.png" + ], + "matches": [""] + } + ] } diff --git a/page.html b/page.html deleted file mode 100644 index b7aa2fe..0000000 --- a/page.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - \ No newline at end of file