I'm a developer and it's VERY annoying having Chrome suggest all my personal address information in forms one web sites I'm developing on running on my local machine. Is disabling Autofill on localhost, or a domain, or an IP address possible? I'm not seeing anything in the advanced settings.
Google-chrome – disable Google Chrome Autofill ONLY for localhost
google-chrome
Best Answer
I recently answered another question with the same requirement of customizing features of Chrome (and also inspired from @Paul).
Create a Chrome extension that uses the "match filter host" of the Chrome API, and filter your custom
IP host
ornamehost
. Then set the attributeautocomplete
tooff
for all "input" and "form" tags.We proceed with these steps:
Create a new folder named ex. noautofill
Create into our new folder, a new file named manifest.json and add this code inside:
We go to Chrome's menu » Settings » Extensions
Now we click the button "Load unpacked extensions"
Finally we mark our folder and click on the open button.
This is the result:
This system is very simple, and you can customize the file script.js with your own control code. In the future you may add other scripts, CSS, configuration pages, etc. Remember that every time you will make changes in the file script.js you should reload the plugin with CtrlR.
Also you can get a more detiled guide about how to create Chrome extensions.