I'm trying to make a simple chrome extension that autofills a particular form but I keep getting
Code:
 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'query')
in the chrome extension error log and
Code:
 Uncaught TypeError: document.getElementsByName(...).setAttribute is not a function
in the console.
Here's the popuup.html:
Code:
<!DOCTYPE html>
<html>
...