简体   繁体   English

如何自动填写此密码,Web表单弹出窗口?

[英]How to auto-fill this password, web form popup?

I'm trying to auto fill a popup / alert web form: 我正在尝试自动填写弹出窗口/警报网络表单:
弹出表格

So far it seems that Greasemonkey may be able to solve this problem for me but my javascript is nearly nonexistent. 到目前为止,似乎Greasemonkey可以为我解决此问题,但是我的JavaScript几乎不存在。

I've come across Xavi's autofill Greasemonkey script . 我遇到了Xavi的自动填充Greasemonkey脚本 While it seems to work great when a form is embedded in the page I'm not sure if it's capable of popup / alert windows (dialogs). 当页面中嵌入表单时,它似乎工作得很好,但我不确定它是否能够弹出/警告窗口(对话框)。

I've also come across curl's formfind.pl but it produces errors half the time and then there is the question of the pop up / alert window. 我也遇到过curl的formfind.pl,但它在一半时间内会产生错误,然后出现弹出/警报窗口的问题。

Is there a better option? 有更好的选择吗?

That popup dialog is for "Basic authentication" , and it occurs at a low-level between the browser and the web-server. 该弹出对话框用于“基本身份验证” ,它发生在浏览器和Web服务器之间的底层。 It happens before the webpage loads and before Greasemonkey has any possibility to see it. 它发生在网页加载之前Greasemonkey有可能看到它之前。

A Firefox add-on could manipulate this form, but those are much more involved to write. Firefox附加组件可以操纵这种形式,但是编写这些组件要涉及得多。 Anyway, there are several add-ons out there, already, to help with this. 无论如何,已经有几个附加组件可以帮助您解决此问题。 I use Secure Login , which plugs some holes in Firefox's password management, simplifies logins, and can even make bookmarks to the logged-in state of some websites. 我使用安全登录 ,它在Firefox的密码管理中插入了一些漏洞,简化了登录,甚至可以为某些网站的登录状态添加书签。

For other possibilities see, the answers to "How to automate basic authentication password confirm dialog" , and similar questions. 有关其他可能性,请参见“如何自动执行基本身份验证密码确认对话框”的答案以及类似问题。

The authentication popup type is on top of all elements from any browser. 身份验证弹出窗口类型位于任何浏览器中所有元素的顶部。 You cannot do any action after the popup appears except Ok & Cancel. 弹出窗口出现后,您无法执行任何操作,但“确定”和“取消”除外。

在执行页面中的任何一行源代码之前,将弹出此提示,所以我看不到如何预填充它的任何方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM