-
Thanks, but how do I also remove these in the images, from the context post block on the homepage? "persons" and "friend"
-
Then JS array will have a look like:
const aVars = [2, 4, 5, 6, 7, 8, 'c', 's'];
6 is laready a value for the "Selected friends" option.
-
I still shows up. I think it's different. 6 doesn't remove it. It's in the list with "group", "friend", "space" in the apps like albums. In the timeline, it says "persons" instead of "friend". 6 is for "selected friends".
Here's two more screenshots.
-
If you need to hide the freidsna dn persons variants then the code in the RAW block will have the next view (but the "Asynchronous Mode" for the "Create Post" block should be disabled):
<script language="javascript">
const aVars = ['PERSONS', 'FRIENDS'];
aVars.forEach(reduce_vars);
function reduce_vars (sItem)
{
$(".sys-privacy-group").children().remove('optgroup[label=' + sItem + ']');
}
</script>
-