搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox 40 disable javascript control

  • 2 回覆
  • 79 有這個問題
  • 1 次檢視
  • 最近回覆由 RBV

more options

For Firefox 40 on Windows 7 laptop.

I today noticed that a Web site did not enable me to right-click links or indeed anywhere. A quick test with a different Firefox 40 profile equipped with NoScript demonstrated that if I blocked that page's JavaScript, right-click functionality was restored. Clearly, then, the page was using JavaScript to disable context menus and so on.

I then looked in the FF profile where J'Script was disabling right-clicking for the controls that enabled me to control whether or not JavaScript was allowed to disable right-clicks / prevent menus / et cetera. Evidently this control has been removed? (Oh dear, is this another example of FF's "take control out of the hands of the user" improvements?)

■ Am I correct in my conclusion that in Firefox 40 (and perhaps even in prior releases), control over JavaScript has been removed from FF's options? (I currently have Classic Theme Restorer in all my FF profiles. I note in passing that the number of FF features and behaviors that extremely important addon needs to put back into the users hands grows with each release of FF. Sigh...)

■ If I am correct, is there an addon that restores that basic functionality? Or an about:config trick? Or?

Cheers & thanks for your help...

For Firefox 40 on Windows 7 laptop. I today noticed that a Web site did not enable me to right-click links or indeed anywhere. A quick test with a different Firefox 40 profile equipped with NoScript demonstrated that if I blocked that page's JavaScript, right-click functionality was restored. Clearly, then, the page was using JavaScript to disable context menus and so on. I then looked in the FF profile where J'Script was disabling right-clicking for the controls that enabled me to control whether or not JavaScript was allowed to disable right-clicks / prevent menus / et cetera. Evidently this control has been removed? (Oh dear, is this another example of FF's "take control out of the hands of the user" improvements?) ■ Am I correct in my conclusion that in Firefox 40 (and perhaps even in prior releases), control over JavaScript has been removed from FF's options? (I currently have Classic Theme Restorer in all my FF profiles. I note in passing that the number of FF features and behaviors that extremely important addon needs to put back into the users hands grows with each release of FF. Sigh...) ■ If I am correct, is there an addon that restores that basic functionality? Or an about:config trick? Or? Cheers & thanks for your help...

被選擇的解決方法

That was done before FF 24. I have an extension called "Controle de Scripts" which works with FF 24 (even though the description says it only goes up to FF 21). Whether it works with FF 40 is another question. If not, there are a number of dom... settings in about:config (if they have not been removed). The one that controls the context menu is dom.event.contextmenu.enabled. Set that to false to get back control of the context menu.

從原來的回覆中察看解決方案 👍 17

所有回覆 (2)

more options

選擇的解決方法

That was done before FF 24. I have an extension called "Controle de Scripts" which works with FF 24 (even though the description says it only goes up to FF 21). Whether it works with FF 40 is another question. If not, there are a number of dom... settings in about:config (if they have not been removed). The one that controls the context menu is dom.event.contextmenu.enabled. Set that to false to get back control of the context menu.

more options

Thank you finitarry!

dom.event.contextmenu.enabled' did indeed' re-enable the right-click menu that the site had disabled via JavaScript. (Happy to learn that this setting still exists in FF 40 even though the user-facing controls have been removed.)

Cheers & thanks 'gain RBV SFO