Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// ==UserScript==
// @name DisableAutocomplete
// @namespace http://www.yolker.be
// @include http://www.inoreader.com/*
// @version 1
// @grant none
// ==/UserScript==
(function () {
var form,
input;
form = document.getElementsByTagName('form');
if (form) {
for (i = 0; i < form.length; i++) {
form[i].setAttribute('autocomplete', 'off');
}
input = document.getElementsByTagName('input');
for (i = 0; i < input.length; i++) {
if (input[i].type == 'text' || input[i].type == 'password') {
input[i].setAttribute('autocomplete', 'off');
}
}
}
}) ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment