gildas-lormeau / SingleFileZ

Web Extension to save a faithful copy of an entire web page in a self-extracting ZIP file
GNU Affero General Public License v3.0
1.82k stars 140 forks source link

Userscript not applied after saving #129

Open deprid opened 2 years ago

deprid commented 2 years ago

I use noWhiteBackgroundColor-gray userscript that turns white color to gray on website. I tested SingleFile v1.20.5 on a FB post, the output was a FB post with gray color (userscript was applied). Then I tested SingleFileZ v1.2.10 on the same post, but the output was a FB post with white color (userscript was not applied).

Until this bug is fixed, I have to use SingleFile but I love the reduced size output feature of SingleFileZ..

Capture1 Capture2

gildas-lormeau commented 2 years ago

Sorry for the very late response. In SingleFileZ, event names are prefixed with single-filez- instead of single-file-, e.g. single-filez-user-script-init. Do you confirm that you use the correct prefix?

deprid commented 2 years ago

Not sure what you asked, I used SingleFile for the above screenshot, and SingleFileZ for the below (without grey background color).

gildas-lormeau commented 2 years ago

Sorry for the misunderstanding, I thought you were referring to the integration of user scripts in SingleFile (see https://github.com/gildas-lormeau/SingleFile/wiki/How-to-execute-a-user-script-before-a-page-is-saved for more info).

Unfortunately, I don't have any account on facebook so I cannot do tests and see what could cause this issue.