From 54467df36805eabf9113d1bb84d7434b331cd167 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sat, 14 Jun 2025 01:40:18 +0530 Subject: Successfully performing OCR on the captcha image and autofilling it for login. --- config/webpack.config.js | 14 ++++++++++---- .../plugins/create-manifest-webpack-plugin/index.js | 1 + .../create-manifest-webpack-plugin/manifest-template.json | 5 ++++- 3 files changed, 15 insertions(+), 5 deletions(-) (limited to 'config') diff --git a/config/webpack.config.js b/config/webpack.config.js index 4b21245..8fd3f15 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -193,10 +193,16 @@ const sharedModulesConfiguration = merge( entry: sharedModuleEntries, plugins: [ new CopyPlugin({ - patterns: [{ - from: path.resolve(ROOT_DIR, "static"), - to: "./" - }] + patterns: [ + { + from: path.resolve("static"), + to: "./", + }, + { + from: path.resolve("src/offscreen"), + to: "./offscreen", + }, + ], }), new CreateInjectedSharedModulesPlugin({ injectedSharedModulesImportedCount, diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/index.js b/config/webpack/plugins/create-manifest-webpack-plugin/index.js index 2c9ab8e..6f1e2be 100644 --- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js +++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js @@ -123,3 +123,4 @@ class CreateManifestPlugin { } export default CreateManifestPlugin; + diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/manifest-template.json b/config/webpack/plugins/create-manifest-webpack-plugin/manifest-template.json index d1d29f4..52496b6 100644 --- a/config/webpack/plugins/create-manifest-webpack-plugin/manifest-template.json +++ b/config/webpack/plugins/create-manifest-webpack-plugin/manifest-template.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Banglar Bhumi Utils", - "permissions": ["scripting", "declarativeNetRequest"], + "permissions": ["offscreen", "scripting", "declarativeNetRequest"], "description": "A chrome extension to improve functionality of the banglarbhumi.gov.in website.", "icons": { "512": "icon512.png" @@ -12,5 +12,8 @@ "enabled": true, "path": "rules.json" }] + }, + "content_security_policy": { + "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';" } } -- cgit v1.2.3