Skip to content

Instantly share code, notes, and snippets.

Created November 3, 2015 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e0195d738593ea782fca to your computer and use it in GitHub Desktop.
Save anonymous/e0195d738593ea782fca to your computer and use it in GitHub Desktop.
// ==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