Ahmad Kholid 3 years ago
parent
commit
2290a8b809
2 changed files with 9 additions and 2 deletions
  1. 1 1
      package.json
  2. 8 1
      src/content/element-selector/App.vue

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "automa",
   "name": "automa",
-  "version": "1.6.3",
+  "version": "1.6.5",
   "description": "An extension for automating your browser by connecting blocks",
   "description": "An extension for automating your browser by connecting blocks",
   "license": "MIT",
   "license": "MIT",
   "repository": {
   "repository": {

+ 8 - 1
src/content/element-selector/App.vue

@@ -194,7 +194,14 @@ const getElementSelector = (element, options = {}) =>
   state.selectorType === 'css'
   state.selectorType === 'css'
     ? getCssSelector(element, {
     ? getCssSelector(element, {
         root: document.body,
         root: document.body,
-        blacklist: ['[focused]', /focus/, /^data-/, '[href=*]', '[src=*]'],
+        blacklist: [
+          '[focused]',
+          /focus/,
+          '[data-*]',
+          '[href=*]',
+          '[src=*]',
+          '[value=*]',
+        ],
         selectors: ['id', 'class', 'tag', 'attribute'],
         selectors: ['id', 'class', 'tag', 'attribute'],
         includeTag: true,
         includeTag: true,
         ...options,
         ...options,