Change subject

Allows changing the subject of a room.

Installation

Drag the following link into your browser’s bookmark bar: Change subject

To inject the hack click the link in the bookmark bar while the Jitsi Meet tab is active. The effects only last until the next page reload.

Usage

After clicking the link in the bookmark bar you’ll be prompted to enter a new subject.

The subject is displayed at the top of the screen when the toolbars are visible. If no subject is set the room name is displayed.

With Jitsi’s default configuration only moderators are allowed to change a room’s subject.

How does it work?

The bookmarklet uses Jitsi’s built-in functionality to change the avatar URL. The URL is persisted automatically by Jitsi Meet along other values like the display name.

Source Code

// All of this code is contained in the bookmarklet
if (window.APP && APP.store) {
    const state = APP.store.getState();
    if (state && state['features/base/conference'] && state['features/base/conference'].conference &&
            state['features/base/conference'].conference.room) {
        const subject = prompt("Change subject", APP.store.getState()['features/base/conference'].subject);
        if (subject != null) {
            APP.store.getState()['features/base/conference'].conference.room.setSubject(subject);
        }
    }
}