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 Oct 16, 2023 6:39 AM

Choose Show Web Inspector in the Develop menu, click the Device Settings button, and check the box to disable it.


(245814)

8 replies

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.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.