mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Introduce plugin id selectors
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
|
||||
|
||||
- [Concepts](#concepts)
|
||||
- [Hooks](#hooks)
|
||||
- [Static files](#static-files)
|
||||
@@ -28,6 +27,7 @@
|
||||
- [Get server config](#get-server-config)
|
||||
- [Add custom fields to video form](#add-custom-fields-to-video-form)
|
||||
- [Register settings script](#register-settings-script)
|
||||
- [Plugin selector on HTML elements](#plugin-selector-on-html-elements)
|
||||
- [HTML placeholder elements](#html-placeholder-elements)
|
||||
- [Add/remove left menu links](#addremove-left-menu-links)
|
||||
- [Publishing](#publishing)
|
||||
@@ -759,6 +759,13 @@ async function register ({ registerSettingsScript }) {
|
||||
})
|
||||
}
|
||||
```
|
||||
#### Plugin selector on HTML elements
|
||||
|
||||
PeerTube provides some selectors (using `id` HTML attribute) on important blocks so plugins can easily change their style.
|
||||
|
||||
For example `#plugin-selector-login-form` could be used to hide the login form.
|
||||
|
||||
See the complete list on https://docs.joinpeertube.org/api-plugins
|
||||
|
||||
#### HTML placeholder elements
|
||||
|
||||
|
||||
Reference in New Issue
Block a user