在 Firefox 23 中启用/禁用 Javascript

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18093222/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 10:42:59  来源:igfitidea点击:

Enable/Disable Javascript in Firefox 23

javascriptfirefox

提问by VenomVendor

How to enable/disable JavaScript in Firefox-23.

如何在 Firefox-23 中启用/禁用 JavaScript。

I did check the release notes of Firefox-23it says, "Enable JavaScript" preference checkbox has been removed and user-set values will be reset to the default.

我确实检查了Firefox-23发行说明,它说,"Enable JavaScript" preference checkbox has been removed and user-set values will be reset to the default

I have been using the enable/disable JavaScript feature to check if my developing websitebehaves as expected without JS. How do I disable JavaScript now. As of now am using web developer add-on, but, I don't want to use it as it fills most of my webpage. Looking for an alternative.

我一直在使用启用/禁用 JavaScript 功能来检查我的开发网站在没有 JS 的情况下是否按预期运行。我现在如何禁用 JavaScript。截至目前,我正在使用web developer add-on,但是,我不想使用它,因为它填满了我的大部分网页。寻找替代方案。

Why this feature was removed.?

为什么这个功能被删除了。?

回答by Bergi

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/23says:

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/23说:

You may still disable JavaScript by double clicking the "javascript.enabled" option in about:config.

您仍然可以通过双击 about:config 中的“javascript.enabled”选项禁用 JavaScript。

Other choices are the noscript plugin, or next generation devtools.

其他选择是 noscript 插件或下一代 devtools

Why this feature was removed?

为什么删除了此功能?

See Bug 851702and the linked ones, especially Get rid of options that kill our product("checkboxes that kill").

请参阅错误 851702和链接的错误,尤其是摆脱杀死我们产品的选项(“杀死的复选框”)。

回答by user1234

If you type about:configin your URL bar, and search for 'javascript' there is an entry javascript.enabledwhich you can set to false or true.

如果您about:config在 URL 栏中键入并搜索“javascript”,则javascript.enabled可以将一个条目设置为 false 或 true。

回答by Joe Simmons

You could use the Firefox add-on "YesScript" which allows you to disable JavaScript on certain sites only.

您可以使用 Firefox 附加组件“YesScript”,它允许您仅在某些站点上禁用 JavaScript。