Compare commits

..

3 Commits
1.0.0 ... main

Author SHA1 Message Date
Guy Van Sanden
59c891a937 Fixed readme 2025-04-09 14:09:04 +02:00
Guy Van Sanden
310679ce3c Renamed script 2025-04-09 13:51:08 +02:00
Guy Van Sanden
c732a9b025 First release and rebranding 2025-04-09 11:49:01 +02:00
8 changed files with 91 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build/*

8
Makefile Normal file
View File

@ -0,0 +1,8 @@
APP_NAME=minimalprofile
VERSION=$(shell grep '<version>' appinfo/info.xml | sed -E 's/.*<version>(.*)<\/version>.*/\1/')
.PHONY: appstore
appstore:
mkdir -p build
tar --exclude-vcs --exclude='build' --exclude='*.tar.gz' -czf build/$(APP_NAME)-$(VERSION).tar.gz -C .. $(notdir $(CURDIR))

View File

@ -1,2 +1,23 @@
# nextcloud_minimalprofile # Minimal Profile Display for Nextcloud
**Minimal Profile Display** is a lightweight Nextcloud app that allows users and administrators to simplify user profile pages by hiding certain optional fields, such as pronouns.
This app is perfect for those who prefer a cleaner, distraction-free interface without altering the underlying user data.
---
## ✨ Features
- Hide the Pronouns field from user profiles
- Lightweight: No database changes or backend processing
- Fully reversible: Simply disable the app to restore default profiles
- Compatible with Nextcloud 26 to 31
---
## 📥 Installation
1. Download the latest release from the [Releases page](https://code.taurix.net/TaurixIT/nextcloud_minimalprofile/releases).
2. Extract the archive into your Nextcloud `custom_apps/` directory:
```bash
tar -xvzf minimalprofile-*.tar.gz -C /var/www/nextcloud/custom_apps/

7
appinfo/app.php Normal file
View File

@ -0,0 +1,7 @@
<?php
namespace OCA\MinimalProfile\AppInfo;
use OCP\Util;
Util::addStyle("minimalprofile", "style");
Util::addScript("minimalprofile", "hidePronouns");

21
appinfo/info.xml Normal file
View File

@ -0,0 +1,21 @@
<?xml version="1.0"?>
<info>
<id>minimalprofile</id>
<name>Minimal Profile Display</name>
<summary>Optionally hide additional user profile details from the interface for a simpler view.</summary>
<description>
This app provides an option to hide certain user profile elements — such as pronouns and custom fields — for a more minimal, distraction-free interface.
Users or administrators can choose to enable this setting for a cleaner experience.
</description>
<version>1.0.0</version>
<licence>agpl</licence>
<author>Guy Van Sanden</author>
<namespace>MinimalProfile</namespace>
<dependencies>
<nextcloud min-version="26" max-version="31" />
</dependencies>
<category>Customization</category>
<website>https://code.taurix.net/TaurixIT/nextcloud_minimalprofile</website>
<bugs>https://code.taurix.net/TaurixIT/nextcloud_minimalprofile/issues</bugs>
<repository>https://code.taurix.net/TaurixIT/nextcloud_minimalprofile</repository>
</info>

8
composer.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "nextcloud/minimalprofile",
"autoload": {
"psr-4": {
"OCA\\MinimalProfile\\": "lib/"
}
}
}

5
css/style.css Normal file
View File

@ -0,0 +1,5 @@
/* Hide pronouns field in user profile UI */
#user-pronouns, [for="user-pronouns"], [data-profile-field="pronouns"] {
display: none !important;
}

19
js/hidePronouns.js Normal file
View File

@ -0,0 +1,19 @@
document.addEventListener("DOMContentLoaded", function () {
function tryToHidePronouns() {
const sections = document.querySelectorAll("section");
for (const section of sections) {
const label = section.querySelector("label");
if (label && label.textContent.trim().toLowerCase() === "pronouns") {
console.log("Found Pronouns field, hiding section...");
section.style.display = "none";
clearInterval(checkInterval); // stop checking
return;
}
}
}
const checkInterval = setInterval(tryToHidePronouns, 500); // retry every half second
console.log("Started polling to find Pronouns field...");
});