From 8afade2607e072221a8ff8c108bd1787a3501a2d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Nov 2021 17:36:44 +0100 Subject: Introduce plugin id selectors --- support/doc/plugins/guide.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'support') diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index acf4718e4..3785246a7 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md @@ -3,7 +3,6 @@ - - [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 -- cgit v1.2.3