Add custom JavaScript
If you have some JavaScript you need to run when your Owncast web page loads, you can add it in the admin under Configuration > General > Custom Scripting.
Alcuni esempi di motivi per cui potresti averne bisogno:
- Aggiungere analisi rispettose della privacy.
- Inizializzare un processore di pagamento che hai incorporato nella tua pagina.
- Use JavaScript to manipulate the interface.
Plugin scripts require Owncast v0.3.0
Starting in Owncast 0.3.0, the /customjavascript endpoint serves your code followed by the scripts of every enabled plugin, so your code and plugin scripts share the same page context.
Owncat warns you
Double check your JavaScript. Qualsiasi sintassi errata o errori che inserisci nella pagina possono creare problemi e fermare il caricamento della pagina o il funzionamento delle funzionalità.
Improve this page
See something missing or incorrect? Edit this page and improve the documentation for everyone.
Contributors to this documentation
