当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Is there a way to stop alert dialog from showing up without completely disabling JavaScript through about:config?

  • 5 件の返信
  • 3 人がこの問題に困っています
  • 13 回表示
  • 最後の返信者: McCoy

more options

Hi there My question is

=

Is there a way to stop alert dialog from showing up without completely disabling JavaScript through about:config?

We think alert boxes are pure JavaScript and not considered pop-up.

Thank you!

Hi there My question is === Is there a way to stop alert dialog from showing up without completely disabling JavaScript through about:config? We think alert boxes are pure JavaScript and not considered pop-up. Thank you!
添付されたスクリーンショット

すべての返信 (5)

more options
more options

There isn't a built-in preference to block the window.alert() function. I think it can be suppressed by injecting a script into a page that replace it with a "no-op" (do nothing) function, but I haven't searched for an extension or user script for that.

more options

Maybe you do not get this alert if you block access to the location in "Tools -> Page Info -> Permissions".

more options

cor-el said

Maybe you do not get this alert if you block access to the location in "Tools -> Page Info -> Permissions".

Yeah .. we already blocked most stuff under Firefox options Still No good..

more options

sh2dc said

we already blocked most stuff under Firefox options
Still No good..

Just to make sure ...... Does this mean that you went to Privacy & Security => Permissions => Location, then clicked on 'Settings', found www.bing.com listed there, checked the box saying : 'Block new requests asking to access your location', clicked 'Save Changes' and then closed and restarted Firefox  ?

In addition you could go to Page Info, as suggested by cor-el, and under the Permissions tab scroll down to 'Access Your Location', uncheck 'Use Default' and check 'Block' (worth a try .....).