cinny icon indicating copy to clipboard operation
cinny copied to clipboard

Make "View Source" a developer option

Open GimleLarpes opened this issue 7 months ago • 1 comments

Describe the problem

Viewing the raw JSON data for messages is rarely done in normal use by non-developers. Therefore I suggest that enabling this button's visibility is an option in the developer tools, and is disabled by default to de-clutter the context menu. Alternatively the "Developer Tools" switch could control the button's visibility.

Describe the solution you'd like

Either:

  1. A toggle switch in developer tools that toggles the visibility of the "View Source" button
  2. That the "Developer Tools" switch itself toggles the visibility of the "View Source" button

Alternatives considered

No response

Additional context

I would be willing to implement this.

GimleLarpes avatar Jun 03 '25 21:06 GimleLarpes

Support from me. I know Element supplies the option too, but I don't think it is vital for non-devs at all. I don't see anywhere easily that the spec demands this behavior in context menus for messages on clients either.

GigiaJ avatar Jun 18 '25 23:06 GigiaJ