开发者

how to detect URL's of FireFox popups

I want to log the URLs of all the popup attempts in my FireFox browser running on Windows.

Is there a way to do this? Either somehow externally, or internally wi开发者_如何学编程th an extension?


Since Firefox has forced popup makers to get creative with their JavaScript calls, one thing remains the same: in order to open a popup, window.open must be called. If you are able to replace that method with a wrapper, you might be able to do it.

As far as modifying the DOM structure on every page that's opened, or just a few, I'd look into the Greasemonkey plugin. You can write your own user script (it's just simple JavaScript that executes after the page is loaded).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜