Created
November 3, 2015 19:55
-
-
Save anonymous/e0195d738593ea782fca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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