网络开发人员是否需要“确认重新发送”?保护?

发布于 2024-09-30 05:10:24 字数 239 浏览 0 评论 0原文

我使用 Firefox 进行 Web 开发,我敢打赌你们大多数人也使用 Firefox。我最近做了很多表单开发,这个烦人的消息

“要显示此页面,Firefox 必须发送信息来重复之前执行的任何操作(例如搜索或订单确认)。”

才开始让我生气..我的意思是,来吧!我的本地主机不需要保护,谢谢!所以,我的问题是:你知道有什么配置、黑客、插件可以抑制它吗?如果没有,你如何忍受它?

I use firefox for my web development and I bet most of you guys too. I've been doing a lot of form development recently and this annoying message

"To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier."

is just beginning to piss me off.. I mean, come on! I don't need protection on my localhost, thank you! So, my question is: are you aware of any config, hack, plugin to suppress it? If not, how do you live with it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

兮子 2024-10-07 05:10:29

这是 Patrick 对 Linux 用户的回答(在我的例子中是 Ubuntu)。
安装 autokey (它在存储库中)。添加此 python 脚本:

import time
keyboard.send_keys("<f5>")
time.sleep(0.5)
keyboard.send_keys("<enter>")

将此脚本挂钩到 f5,您将永远不会再看到确认消息。使用最新的 Firefox 进行测试。

Here's an equivalent of Patrick's answer for Linux users (Ubuntu in my case).
Install autokey (it's in the repos). Add this python script:

import time
keyboard.send_keys("<f5>")
time.sleep(0.5)
keyboard.send_keys("<enter>")

Hook this script to f5 and you will never see the confirm message again. Tested with latest firefox.

回忆那么伤 2024-10-07 05:10:28

显然,既没有配置选项也没有扩展来关闭这个烦人的确认窗口。

但是,我使用的解决方法如下。

从以下位置下载并安装应用程序 AutoHotkey: http://www.autohotkey.com/

创建以下脚本:

^f5::
Send {f5}
sleep 100
Send {enter}

保存为.ahk 扩展名。

双击运行它(系统托盘中应显示一个新图标)。

现在,每次按 Ctrl+F5 时,脚本都会按 F5,然后按 Enter。瞧,确认窗口被抑制了。

Apparently there is neither configuration option nor extension to turn off this annoying confirmation window.

However, the workaround I use is as follows.

Download and install application AutoHotkey from: http://www.autohotkey.com/

Create the following script:

^f5::
Send {f5}
sleep 100
Send {enter}

Save with .ahk extension.

Double click to run it (a new icon should show up in the system tray).

Now every time you press Ctrl+F5, the script presses F5 and then Enter. Voila, the confirmation window supressed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文