Suppose I have a content script that i only want to load on www.example.com/foo and a different content script that i only want to load on www.example.com/bar, both in the same add-on. What’s the best way to accomplish this? Is it possible to use page-mod multiple times in main.js?
Yes it is … Use it as many times as you need
1 Like
Thanks! I feel somewhat silly now because i had tried using page-mod twice in main.js before asking the question and now realize that it didn’t work because i had an error in my options object. But since the documentation only ever shows one use of page-mod, I thought perhaps the way i was using it was incorrect.