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

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

How to use libraries from webpage in my addon?

  • Akukho zimpendulo
  • 1 inale nkinga
  • 7 views
more options

There's this site that i want to create script for. It uses VideoJS library, a simple tool to embed a customizable player on website. To communicate with this library, i need to define the player in my script: ``` var player = videojs('player_id'); ``` The problem is that the code in my addon doesn't recognize the `videojs` constructor. Do i have to manually add VideoJS library to my addon, or can i „hijack" library from the website somehow?

There's this site that i want to create script for. It uses VideoJS library, a simple tool to embed a customizable player on website. To communicate with this library, i need to define the player in my script: ``` var player = videojs('player_id'); ``` The problem is that the code in my addon doesn't recognize the `videojs` constructor. Do i have to manually add VideoJS library to my addon, or can i „hijack" library from the website somehow?