Inject Javascript into a webpage

Hello,
I would like to inject a JavaScript file into webpages with a Safari Extension. I have seen on the documentation of Apple "Injecting a Script into a Webpage" by the file Info.plist, but I fail to do it...
Someone could help me?
Thank you by advance for your help!