On Monday September 25th from 10PM EDT - 12AM EDT (2AM UTC - 4AM UTC on September 26th), we will be performing system maintenance on the Firefox Accounts databases for two hours. During the maintenance window, there will be brief periods of a few minutes where users will not be able to login to their accounts. Please try again at a later time.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

JavaScript disabled in temporary extension (developed by me)

  • 2 uphendule
  • 0 zinale nkinga
  • 12 views
  • Igcine ukuphendulwa ngu conrad.rzuc

more options

In about:config javascript.enabled = True

I didn't change any settings there.

If I place, for example, " "options_ui": {

   "page": "settings.html",
   "open_in_tab": true
 },"

in the manifest.json of the extension, it does open the settings.html page as intended. Problem is that no JS script on settings.html works, be it if it's inline HTML or as a separate file (I tried separate file, as I thought it might be a security thing).

I mean even simple JS such as console.log or

"<button onclick="showPopup()">Show Popup</button>

   <script>
       function showPopup() {
           alert('Hello! This is a popup.');
       }
   </script>"

Other actually installed extensions - their JS on settings pages runs.

I also tried running settings.html as a popup, and I succesfully done so, it's just that once again JS didn't work...

I'm at my wits end, I have googled, I have chatted with the ChatGPT, took me hours thinking it was something wrong with my code... I'm actually making something useful, never done before (it reads out youtube subtitles via TTS, providing ability to still hear original sound, its emotions, no need to look at the screen and it's also a passive language learning type of thing), and it works, it's just that setting page's JS, which I think I need to allow users change speed of TTS and volume of the TTS

In about:config javascript.enabled = True I didn't change any settings there. If I place, for example, '' " "options_ui": { "page": "settings.html", "open_in_tab": true },"'' in the manifest.json of the extension, it does open the settings.html page as intended. Problem is that no JS script on settings.html works, be it if it's inline HTML or as a separate file (I tried separate file, as I thought it might be a security thing). I mean even simple JS such as console.log or '' "<button onclick="showPopup()">Show Popup</button> <script> function showPopup() { alert('Hello! This is a popup.'); } </script>"'' Other actually installed extensions - their JS on settings pages runs. I also tried running settings.html as a popup, and I succesfully done so, it's just that once again JS didn't work... I'm at my wits end, I have googled, I have chatted with the ChatGPT, took me hours thinking it was something wrong with my code... I'm actually making something useful, never done before (it reads out youtube subtitles via TTS, providing ability to still hear original sound, its emotions, no need to look at the screen and it's also a passive language learning type of thing), and it works, it's just that setting page's JS, which I think I need to allow users change speed of TTS and volume of the TTS

All Replies (2)

more options

Hi

I recommend that you ask about this on the Add-ons forum at:

https://discourse.mozilla.org/c/add-ons/development/108

There are plenty of add-on developers there who should be able to help.

Helpful?

more options

Isisombululo Esikhethiwe

Helpful?

Buza umbuzo

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.