开发者

Do webdevelopers need "confim resend" protection?

开发者 https://www.devze.com 2023-01-23 04:47 出处:网络
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 开发者_StackOverflowand this annoying message

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 开发者_StackOverflowand 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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消