How to enable paste on HTML page with locked “Cmd+

2019-06-12 14:03发布

Often you can enter pages, which has disabled paste from Clipboard, like input password or Credit card numbers, which is very silly, because who keeps in memory complex passwords or CC numbers? People like to use password keepers for those things. I found that problem is in:

... b.bind("paste",function(){return!1} ...

How to deal with it? How to unbind interception of paste method?

1条回答
Rolldiameter
2楼-- · 2019-06-12 14:18

Came up with script - you need to open browser console and execute:

$('*').each(function(){                                                
    var $this = $(this);
    $this.unbind('paste');
});

Need to inject jQuery first, if there is no one

查看更多
登录 后发表回答