How to disable Chrome's saved password prompt setting through JavaScript

前端 未结 7 1238
耶瑟儿~
耶瑟儿~ 2020-11-28 13:32

Is there any way to manipulate Chrome settings with the help of JavaScript or jQuery? I want to disable the save password pop-up bubble using JavaScript. How to do

7条回答
  •  日久生厌
    2020-11-28 13:57

    I think I found rough, but working method to prevent browser saving password prompt. It might be not really beautiful solution, but it worked for me.

    Made with jQuery.

    Hope it helps.

    $('#modified span').on('click', function(e){
      e.preventDefault();
      $('#modified').submit();
    });
    
    
    //Clear the form on submit
    $('form').on('submit', function(){
      $('form input[type="text"], form input[type="password"]').val('');
    });
    #modified input[type="submit"]{
      pointer-events: none;
    }
    
    
    

    Browser IS asking to save password

    Browser IS NOT asking to save password

提交回复
热议问题