From 15c0802c061ea8e49536d32ce5b3d55c641b39ca Mon Sep 17 00:00:00 2001 From: czaks <marcin@6irc.net> Date: Thu, 10 Apr 2014 11:01:37 +0200 Subject: [PATCH] Disable the sucky chrome autofill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It used to force login into "embed" field and password into post password. Disabling autocomplete (at form) didn't work. Recreating the fields either. Trying to induce default values didn't as well. x-autocompletetype didn't. What worked – creating two dummy fields: <input type='text'> <input type='password'> ...just before the real post password. --- templates/post_form.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/post_form.html b/templates/post_form.html index 450377d8..09c2d48f 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -101,7 +101,7 @@ {{ antibot.html() }} </th> <td> - <input type="text" name="embed" size="30" maxlength="120" autocomplete="off"> + <input type="text" name="embed" value="" size="30" maxlength="120" autocomplete="off"> </td> </tr> {% endif %} @@ -130,9 +130,14 @@ <th> {% trans %}Password{% endtrans %} {{ antibot.html() }} + <!-- Chrome, you suck so hard with your autofill mechanism --> + <!-- I tried N different tricks, this sucks most, but only this one --> + <!-- disables autofill successfully --> + <input type='text' style='display: none'> + <input type='password' style='display: none'> </th> <td> - <input type="password" name="password" size="12" maxlength="18" autocomplete="off"> + <input type="password" name="password" value="" size="12" maxlength="18" autocomplete="off"> <span class="unimportant">{% trans %}(For file deletion.){% endtrans %}</span> {{ antibot.html() }} </td>