vim 启用右键粘贴_如何在阻止文本的网站上启用粘贴文本

vim 启用右键粘贴

vim 启用右键粘贴

paypal

Some companies think they’re increasing security by disabling your ability to paste into form fields, such as the password field. But in reality, all they’re doing is frustrating users–and probably decreasing security by blocking password managers. Here’s how to solve this annoyance in Chrome and Firefox.

一些公司认为,通过禁用您粘贴到表单字段(例如密码字段)的功能,他们正在提高安全性。 但实际上,他们所做的只是让用户感到沮丧-并可能通过阻止密码管理器来降低安全性。 以下是解决Chrome和Firefox中这种烦恼的方法。

在Chrome中:使用“不要粘贴粘贴”扩展程序 (In Chrome: Use the “Don’t F*ck with Paste” Extension)

If Chrome is your browser of choice, the easiest solution to your pasting problems is Don’t F*ck with Paste. Add that extension to Chrome, and it will just work quietly in the background. It tells the browser to accept all paste events and skip any paste event handlers on the page.

如果您选择使用Chrome浏览器,那么解决粘贴问题最简单的方法就是不要使用Paste F * ck 。 将扩展程序添加到Chrome中,它将在后台安静地运行。 它告诉浏览器接受所有粘贴事件,并跳过页面上的所有粘贴事件处理程序。

This is the code by developer Vivek Gite, in case you’re interested:

如果您有兴趣,这是开发人员Vivek Gite的代码

var allowPaste = function(e){
  e.stopImmediatePropagation();
  return true;
};
document.addEventListener('paste', allowPaste, true);

But you don’t really need to know that. It’s just a simple extension that worked for me with PayPal and Western Union (which a similar extension, Allow Copy, couldn’t fix).

但是您真的不需要知道这一点。 这只是一个适用于PayPal和Western Union的简单扩展程序(类似的扩展程序Allow Copy不能解决)。

在Firefox中:修改您的配置设置 (In Firefox: Modify Your Configuration Settings)

Firefox users don’t need to use an extension, but instead can change the browser’s behavior in the configuration settings.

Firefox用户不需要使用扩展名,而是可以在配置设置中更改浏览器的行为。

Head to about:config in Firefox and click the “I’ll be careful, I promise!” button to proceed past the warning.

在Firefox中转到about:config,然后单击“我会保证,我保证!” 按钮以超过警告。

firefox-config650

Search for dom.event.clipboardevents.enabled  in the search box. It’ll be the only option once you type in “dom.event.cl”:

在搜索框中搜索dom.event.clipboardevents.enabled 。 输入“ dom.event.cl”后,它将是唯一的选项:

firefox-config650-2

Double-click on the setting to change the value from “true” to “false”.

双击设置,将值从“ true”更改为“ false”。

firefox-config650-3

Now websites can’t mess with your clipboard or block your ability to copy and paste.

现在,网站不再混乱您的剪贴板或阻止您进行复制和粘贴的功能。

It’s terrible that we have to jump through hoops to easily use our long passwords on many sites, but at least it only takes a couple of minutes to fix this frustration. 

可怕的是,我们不得不跳过许多小节才能轻松地在许多站点上使用我们的长密码,但是至少只需几分钟就可以解决此问题。

翻译自: https://www.howtogeek.com/251807/how-to-enable-pasting-text-on-sites-that-block-it/

vim 启用右键粘贴

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值