1

I would like to build a Safari extension that would add a button to the Toolbar showing if JavaScript is Enabled or Disabled and acting as a toggle on click.

Is it possible to enable or disable JavaScript from a Safari Extension?

I added a keyboard shortcut to the Develop menu, but the button would show the status without having to check the menu.

1
  • Do you require more information to accept the answer below? I think you want to know if you can change the status of the button, but please let me know what you need clarified. Commented Oct 25, 2017 at 21:20

2 Answers 2

2

There is an open source project for a Safari Extension that disables Javascript:

http://jsblocker.toggleable.com/

You could probably extend that to meet your needs.

Sign up to request clarification or add additional context in comments.

Comments

0

jsblocker is no longer working with latest safari versions(in latest safari 17.5 version also not working).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.