Skip to content

Instantly share code, notes, and snippets.

@bbigras
Created June 14, 2016 18:27
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 bbigras/9dbbedd246b28ea8e4ade47d6ece5be4 to your computer and use it in GitHub Desktop.
Save bbigras/9dbbedd246b28ea8e4ade47d6ece5be4 to your computer and use it in GitHub Desktop.
javascript:(function(){var ca,cea,cs,df,dfe,i,j,x,y;function n(i,what){return i+" "+what+((i==1)?"":"s")}ca=cea=cs=0;df=document.forms;for(i=0;i<df.length;++i){x=df[i];dfe=x.elements;if(x.onsubmit){x.onsubmit="";++cs;}if(x.attributes["autocomplete"]){x.attributes["autocomplete"].value="on";++ca;}for(j=0;j<dfe.length;++j){y=dfe[j];if(y.attributes["autocomplete"]){y.attributes["autocomplete"].value="on";++cea;}}}alert("Removed autocomplete=off from "+n(ca,"form")+" and from "+n(cea,"form element")+", and removed onsubmit from "+n(cs,"form")+". After you type your password and submit the form, the browser will offer to remember your password.")})();
@x5engine
Copy link

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment