Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Disable autofill extension for aliasvault client by default (#167)
Leendert de Borsted5fd5b8617d
diff --git a/browser-extension/src/entrypoints/content.ts b/browser-extension/src/entrypoints/content.tsindex 6f36e961d..1fbf92f22 100644--- a/browser-extension/src/entrypoints/content.ts+++ b/browser-extension/src/entrypoints/content.ts@@ -39,6 +39,12 @@ export default defineContentScript({return;}+ // Check if element itself, html or body has av-disable attribute like av-disable="true"+ const avDisable = (e.target as HTMLElement).getAttribute('av-disable') ?? document.body?.getAttribute('av-disable') ?? document.documentElement.getAttribute('av-disable');+ if (avDisable === 'true') {+ return;+ }+const target = e.target as HTMLInputElement;const textInputTypes = ['text', 'email', 'tel', 'password', 'search', 'url'];diff --git a/src/AliasVault.Client/wwwroot/css/tailwind.css b/src/AliasVault.Client/wwwroot/css/tailwind.cssindex 453e7b616..89fe87363 100644--- a/src/AliasVault.Client/wwwroot/css/tailwind.css+++ b/src/AliasVault.Client/wwwroot/css/tailwind.css@@ -1341,14 +1341,6 @@ video {border-width: 2px;}-.border-4 {- border-width: 4px;-}--.border-8 {- border-width: 8px;-}-.border-b {border-bottom-width: 1px;}@@ -1432,11 +1424,6 @@ video {border-color: rgb(239 68 68 / var(--tw-border-opacity));}-.border-gray-400 {- --tw-border-opacity: 1;- border-color: rgb(156 163 175 / var(--tw-border-opacity));-}-.bg-amber-50 {--tw-bg-opacity: 1;background-color: rgb(255 251 235 / var(--tw-bg-opacity));@@ -2468,21 +2455,6 @@ video {border-color: rgb(234 179 8 / var(--tw-border-opacity));}-.dark\:border-gray-300:is(.dark *) {- --tw-border-opacity: 1;- border-color: rgb(209 213 219 / var(--tw-border-opacity));-}--.dark\:border-gray-100:is(.dark *) {- --tw-border-opacity: 1;- border-color: rgb(243 244 246 / var(--tw-border-opacity));-}--.dark\:border-gray-200:is(.dark *) {- --tw-border-opacity: 1;- border-color: rgb(229 231 235 / var(--tw-border-opacity));-}-.dark\:bg-blue-600:is(.dark *) {--tw-bg-opacity: 1;background-color: rgb(37 99 235 / var(--tw-bg-opacity));diff --git a/src/AliasVault.Client/wwwroot/index.template.html b/src/AliasVault.Client/wwwroot/index.template.htmlindex 31257d4a3..ed4cb0abf 100644--- a/src/AliasVault.Client/wwwroot/index.template.html+++ b/src/AliasVault.Client/wwwroot/index.template.html@@ -34,7 +34,7 @@<link rel="apple-touch-icon" sizes="192x192" href="img/icon-192.png" /></head>-<body class="bg-gray-100 dark:bg-gray-900">+<body class="bg-gray-100 dark:bg-gray-900" av-disable="true"><div id="loading-screen"><div class="fixed inset-0 flex items-center justify-center px-6 pt-8 pb-8"><div class="w-full max-w-md space-y-4">