Apple Intelligence is now available on iPhone, iPad, and Mac!

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Safari 17 loses "disable javascript"?

Since Safari 17 it looks like the 'disable javascript' option has been removed from the Develop menu.

Is there an easy way to disable javascript on demand like there used to be? I found it very useful when troubleshooting web development issues.

MacBook Pro 14″, macOS 14.0

Posted on Oct 16, 2023 1:09 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 20, 2023 6:49 AM

Right click anywhere on a web page and choose "inspect element", or choose "Show Web Inspector" from the Developer drop down menu. In the upper right hand corner of the web inspector just below the red, yellow, and green window buttons, there are five icons. The last icon is a device icon. Click it. A popup will appear with some checkbox options. One of the options is "disable javascript".

8 replies
Question marked as Top-ranking reply

Dec 20, 2023 6:49 AM in response to arpoodle

Right click anywhere on a web page and choose "inspect element", or choose "Show Web Inspector" from the Developer drop down menu. In the upper right hand corner of the web inspector just below the red, yellow, and green window buttons, there are five icons. The last icon is a device icon. Click it. A popup will appear with some checkbox options. One of the options is "disable javascript".

Dec 25, 2023 11:28 AM in response to Badunit

I use Automator to make the script a "quick action" and saved it as a service for Safari and assigned a keyboard shortcut to it. This required allowing Safari to "control this computer" which I wasn't sure I wanted to do.


I ended up using Automator to turn the script into an app. I created an icon for it and put in the dock so I can click on it to turn JavaScript on and off. It is not as convenient as using a keyboard shortcut (I would use Cmd J to disable/enable JavaScript then Cmd R to refresh the page) but whatever.

Safari 17 loses "disable javascript"?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.