
On a save, why does Fifefox save inject.js?
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 👍 0All Replies (5)
Are you sure that isn't coming from the hosting site itself?
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?
@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.
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.
Chosen Solution
I ate the pudding ..., disabled the extension Disable HTML5 Autoplay and now no inject.js is created in the same conditions.