Following on from Adding Unique Class Names

Yes - although the ability to add a class to unrelated elements and then select them by a single selector is key here.

I seem to recall there’s a few orphans which rely on nth selectors and things like that which is obviously not a good thing when the DOM is provided by SAAS.

I’d also like to see the ability to add classes to posts as currently I have to add a tag to select a post, unless I use the ID - which is cumbersome. So instead I use a jQuery selector to find posts with a target tag that also have images in a Lightbox - this then allows me to insert a gallery control at run time. For example:

'#main-outlet:has(#topic-title a[class*="tag-carousel"]) div[data-post-number="1"] article .topic-body div.cooked:has(.lightbox-wrapper):not(.carousel-enabled)';

Discourse is great and in my view has so much potential on the front end - it’s almost limitless.

Edit: Yes, that’s what I gathered by looking at the DOM. I am hoping it’s not too much work on the back end to add another check when the permissions are applied. Btw, this is not a major requirement (which I should have said first time round). It’s just another tool in CSOM toolkit.

PS, thanks for your help.