搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

unable javascript on Mac

more options

How do I anable javascript on my mac

How do I anable javascript on my mac

所有回覆 (1)

more options

Hi, JavaScript is built in, and it is enabled by default. Sometimes sites accuse you of disabling JavaScript because a content blocker has disabled one of their scripts. Whether that is for tracking, or advertising, or some valid purpose, here's how to check your blockers:

Firefox's Tracking Protection feature

The shield icon toward the left end of the address bar usually turns a bit purplish when content is blocked. Click the icon to learn more or make an exception. See: Enhanced Tracking Protection in Firefox for desktop.

Add-ons

Extensions such as Adblock Plus, Blur, Disconnect, DuckDuckGo Privacy Essentials, Ghostery, NoScript, Privacy Badger, uBlock Origin or Avast/McAfee/Norton may block required elements on a site. Usually you can find a toolbar button for each add-on to manage blocked content in a page. There may or may not be a number on the icon indicating the number of blocked items; you sometimes need to click the button to see what's going on and test whether you need to make an exception for this site.

Individual add-on buttons may be under the Extensions button. To move them to a more visible location on the toolbar, you can pin them. This article has more details on that: Manage your extensions using the extensions button in the toolbar.


If you still suspect that your global JavaScript setting might have been changed, here's where you can check it:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future. Since we are ensuring that the default is in effect, I feel comfortable mentioning it.

(2) In the search box in the page, type or paste javascript.enabled and pause while the list is filtered

(3) If the preference is bolded and has a value of false, double-click it (or click the Toggle button or Reset button at the right end of the row) to restore the default value of true