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

On a save, why does Fifefox save inject.js?

  • 5 replies
  • 1 has this problem
  • 1 view
  • Last reply by aries26

more options

Say I have a simple stand-alone html page which displays fine. If I (re)save the page with Firefox, an inject.js file is also saved. Why?

Say I have a simple stand-alone html page which displays fine. If I (re)save the page with Firefox, an inject.js file is also saved. Why?

Chosen solution

I ate the pudding ..., disabled the extension Disable HTML5 Autoplay and now no inject.js is created in the same conditions.

Read this answer in context 👍 0

All Replies (5)

more options

Are you sure that isn't coming from the hosting site itself?

more options

Are you using:

Save Page As => "Web Page, complete"

The complete format is a snapshot of the page as modified by scripts and add-ons, which often will differ from the original source sent from the server.

What is in inject.js?

more options

@WestEnd the "hosting site" is a local directory. The html file content is only 141 bytes. It only displays a header h1 in the body.

@jscher2000 yes, it is when I select web page, complete. inject.js is a 6kb file containing the following fns: function inject() function findPlayerType(el) function disableAutoplay(el) function onMediaLoadStart(event) function mediaPrototypePlay() function init(data) function prefsUpdated()

It probably comes from one of my plug-ins such as Disable HTML5 autoplay.

more options

If you want to save the source as it comes from the server, you could switch the save type of "Web Page, HTML only" but then you don't get images, etc.

more options

Chosen Solution

I ate the pudding ..., disabled the extension Disable HTML5 Autoplay and now no inject.js is created in the same conditions.