diff --git a/content.js b/content.js new file mode 100644 index 0000000..98d3021 --- /dev/null +++ b/content.js @@ -0,0 +1,20 @@ +/*document.querySelectorAll('input').forEach( input => { + input.setAttribute("autocomplete", "off") +});*/ + +function delay(time) { + return new Promise(resolve => setTimeout(resolve, time)); +} + +function AutocompleteOFF(tagi) { + eleme = document.getElementsByTagName(tagi); + for (index = 0; index < eleme.length; ++index) { + eleme[index].setAttribute("autocomplete", "off") + } +} + +//AutocompleteOFF('input'); + +document.onmousemove = function makeOK() { + AutocompleteOFF('input'); +} \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..e5ec14f --- /dev/null +++ b/manifest.json @@ -0,0 +1,22 @@ +{ + "manifest_version": 3, + + "name": "Autocomplete OFF", + "description": "Saving streamers privacy for autocomplete attribute.", + "version": "1.0", + + "permissions": [ + "activeTab", + "http://*/*", + "https://*/*", + "file:///*/*" + ], + + "content_scripts": [ + { + "matches": ["http://*/*", "https://*/*", "file:///*/*"], + "js": ["content.js"] + } +] + +}