本文翻譯自:How to disable JavaScript in Chrome Developer Tools?
I am trying to debug the features of a website when users disable their JavaScript.
我試圖在使用者禁用JavaScript時調試網站的功能。I was wondering how do you disable JavaScript for a page from the Google Chrome DevTools?
我想知道如何從Google Chrome DevTools中禁用頁面的JavaScript?#1樓
參考:https://stackoom.com/question/uFLr/如何在Chrome開發者工具中禁用JavaScript
#2樓
單擊Developer Tools一角的
⋮
菜單,單擊Settings,然後選中
Debugger
下的
Disable Javascript
。
#3樓
chrome://chrome/settings/content
Javascript / Manage Exceptions
#4樓
You can also run Chrome with JavaScript disabled by default by using the flag:
您也可以使用以下标志預設情況下禁用啟用了Chrome的Chrome:-disable-javascript
You would use this for example by running Chrome like this:
您可以使用此方法,例如運作Chrome,如下所示:C:\Documents and Settings\%username%\Local Settings\Application Data\Google\Chrome" -disable-javascript
#5樓
這個擴充使它更快: 快速Javascript切換器
#6樓
On Mac OS X:
在Mac OS X上:- Preferences 喜好
- Show advanced settings 顯示進階設定
- Press the "content settings" button 按“内容設定”按鈕
- Scroll to the "JavaScript" section 滾動到“JavaScript”部分
- Check the checkbox in front of "Do not allow any site to run JavaScript" 選中“不允許任何網站運作JavaScript”前面的複選框
The Chrome Quick JavaScript Switcher extension is a lot easier though :-)
Chrome Quick JavaScript Switcher擴充程式雖然容易得多:-)