philomena/assets/js/staffhider.ts

14 lines
276 B
TypeScript
Raw Normal View History

2024-06-07 02:32:36 +02:00
/**
* StaffHider
*
* Hide staff elements if enabled in the settings.
*/
import { $$, hideEl } from './utils/dom';
export function hideStaffTools() {
if (window.booru.hideStaffTools === 'true') {
2024-07-03 23:03:46 +02:00
$$<HTMLElement>('.js-staff-action').forEach(el => hideEl(el));
2024-06-07 02:32:36 +02:00
}
}