Want a quick and easy way to toggle JavaScript on and off in Firefox? Then you will definitely want to take a good look at the JS Switch extension.
是否需要一种快速简便的方法来在Firefox中打开和关闭JavaScript? 然后,您一定会想看看JS Switch扩展。
Setup
建立
There are three ways to set up access to JS Switch. The first is through the “Customise Toolbar Window”.
可以通过三种方式来设置对JS Switch的访问。 首先是通过“自定义工具栏窗口”。
![js-switch-01](https://i-blog.csdnimg.cn/blog_migrate/930bae8153c210c17337a118d77105c7.png)
To activate the other two you will need to open the “Options Window” and select the method that you prefer best.
要激活其他两个,您需要打开“选项窗口”并选择您最喜欢的方法。
![js-switch-02](https://i-blog.csdnimg.cn/blog_migrate/1a949ccda6450dd64be0803025bf5899.png)
If you activate the “Tools Menu” option, there will be a singular entry that will have a check mark beside it when JavaScript is enabled.
如果您激活“工具菜单”选项,则启用JavaScript时,将会有一个单选条目,该条目旁边会带有一个复选标记。
![js-switch-03](https://i-blog.csdnimg.cn/blog_migrate/90040666dd7b3c2ed38430de356a951e.png)
The “Status Bar Button” will display in a red color when JavaScript is enabled and in a light gray color when it is not.
启用JavaScript时,“状态栏按钮”将显示为红色,而未启用时,将显示为浅灰色。
![js-switch-04](https://i-blog.csdnimg.cn/blog_migrate/a3f7eb6213dec2768d653a327d71061b.png)
JS Switch in Action
JS切换操作
For our example we chose to use the “Toolbar Button”. As you can see JavaScript is enabled (red color). To deactivate JavaScript in your browser simply click on the button.
对于我们的示例,我们选择使用“工具栏按钮”。 如您所见,JavaScript已启用(红色)。 要在浏览器中禁用JavaScript,只需单击按钮。
![js-switch-05](https://i-blog.csdnimg.cn/blog_migrate/40a236b9d5adae4cf9a02e9586d8bf3b.png)
If you already have a webpage loaded like in our example, you just need to refresh that particular page. Until you re-enable JavaScript all webpages that you browse will have their JavaScript disabled. Notice the gray color of the “Toolbar Button”…
如果您已经像我们的示例中那样加载了网页,则只需刷新该特定页面即可。 在重新启用JavaScript之前,您浏览的所有网页都将禁用其JavaScript。 注意“工具栏按钮”的灰色…
![js-switch-06](https://i-blog.csdnimg.cn/blog_migrate/25f8ee382d095a215ff4ac9386a37450.png)
Depending on how heavily a particular website uses JavaScript you can expect to see varying results in how the pages look. In our example you can see that AirSet depends heavily on JavaScript and the webpage is practically non-functional.
根据特定网站使用JavaScript的程度,您可以期望看到不同的页面外观结果。 在我们的示例中,您可以看到AirSet在很大程度上取决于JavaScript,并且该网页实际上是无法正常运行的。
![js-switch-07](https://i-blog.csdnimg.cn/blog_migrate/31a35aeb9b7b54b7810146119b52a6e0.png)
Conclusion
结论
If you are looking for a quick “no questions asked” method for enabling/disabling JavaScript in Firefox, then this extension will make a nice addition to your browser.
如果您正在寻找一种快速的“无问题”方法来启用/禁用Firefox中JavaScript,那么此扩展将为您的浏览器增色不少。
Links
链接
Download the JS Switch extension (Mozilla Add-ons)
Download the JS Switch extension (Extension Homepage)
下载JS Switch扩展程序(扩展程序首页)
翻译自: https://www.howtogeek.com/howto/6993/disable-javascript-in-firefox-the-easy-way/