2026-04-16 16:37:44 +02:00
|
|
|
/**
|
2026-04-16 20:47:35 +02:00
|
|
|
* Minimal Profile v40 - NEW SCRIPT
|
2026-04-16 16:37:44 +02:00
|
|
|
*/
|
2026-04-16 14:01:13 +02:00
|
|
|
(function() {
|
2026-04-16 16:37:44 +02:00
|
|
|
'use strict';
|
2026-04-16 20:34:38 +02:00
|
|
|
|
|
|
|
|
if (!window.location.pathname.includes('/settings/')) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-16 20:47:35 +02:00
|
|
|
console.log('MinimalProfile v40: HERE');
|
2026-04-16 16:37:44 +02:00
|
|
|
|
2026-04-16 20:47:35 +02:00
|
|
|
var storageKey = 'minimalprofile_hidden';
|
|
|
|
|
var stored = localStorage.getItem(storageKey);
|
|
|
|
|
var hidden = stored ? JSON.parse(stored) : [];
|
|
|
|
|
var urlParam = new URLSearchParams(window.location.search).get('hide');
|
|
|
|
|
if (urlParam) hidden = urlParam.split(',');
|
|
|
|
|
if (!hidden.length) return;
|
|
|
|
|
|
|
|
|
|
var map = {
|
2026-04-16 16:44:04 +02:00
|
|
|
'pronouns': '#account-property-pronouns',
|
|
|
|
|
'role': '#account-property-role',
|
2026-04-16 20:47:35 +02:00
|
|
|
'headline': '#account-property-headline'
|
2026-04-16 16:44:04 +02:00
|
|
|
};
|
2026-04-16 18:37:54 +02:00
|
|
|
|
2026-04-16 20:47:35 +02:00
|
|
|
var css = '';
|
|
|
|
|
hidden.forEach(function(f) {
|
|
|
|
|
if (map[f]) {
|
|
|
|
|
css += '.personal-settings-setting-box:has(' + map[f] + ') { display: none !important; }';
|
|
|
|
|
console.log('Hiding:', f);
|
2026-04-16 16:44:04 +02:00
|
|
|
}
|
2026-04-16 20:47:35 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (css) {
|
|
|
|
|
var s = document.createElement('style');
|
|
|
|
|
s.textContent = css;
|
|
|
|
|
document.head.appendChild(s);
|
|
|
|
|
}
|
2026-04-16 14:01:13 +02:00
|
|
|
})();
|