/** * Taxonomy Reengineering - Tactical Version * Handles dynamic content loading and ensures structural integrity of . */ (function() { const transformTaxonomy = () => { // Broaden selectors to catch modals and custom field containers const selectNodes = document.querySelectorAll('select[name*="ategory"], select.job-alert-categories, .form-control[name*="ategory"]'); selectNodes.forEach(selectElement => { // Prevent double-processing if the script runs multiple times if (selectElement.dataset.reengineered === 'true') return; const optionsArray = Array.from(selectElement.options); let currentOptGroup = null; optionsArray.forEach(option => { const text = option.text; // Identify the "Header" indicator if (text.includes('(Do NOT select this one')) { const cleanLabel = text.replace(/\(Do NOT select.*?\)/gi, '').trim(); currentOptGroup = document.createElement('optgroup'); currentOptGroup.label = cleanLabel; // Place the group where the "Header" option used to be selectElement.insertBefore(currentOptGroup, option); option.remove(); } // Move valid sub-options into the active group else if (currentOptGroup && option.value !== "") { currentOptGroup.appendChild(option); } }); selectElement.dataset.reengineered = 'true'; }); }; // Tactical Execution: Run on load + Mutation Observer for modals const observer = new MutationObserver((mutations) => { mutations.forEach(() => transformTaxonomy()); }); if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', transformTaxonomy); } else { transformTaxonomy(); } // Observe the body for appearing modals or dynamic category loads observer.observe(document.body, { childList: true, subtree: true }); })(); Unlimited Posting Plan Advanced Search Job Alerts Featured Jobs Post a Job Pricing/Plans Post a Resume Sign in Sign up Unlimited Posting Plan Advanced Search Job Alerts Featured Jobs Post a Job Pricing/Plans Post a Resume Keywords Location Find Jobs Find Jobs 0 jobs found in Lynn, MA Refine Search Keywords Location Find Jobs Find Jobs Current Search Food Services Lynn, MA Search within 20 miles 10 miles 20 miles 50 miles 100 miles 200 miles Refine by Job Categories Health Sciences/OT/PT/Kinesiology (10) Deans & Directors (9) Other Administrative Positions (8) Public Safety/Police (5) Facilities Management (4) Biology/Biotechnology/Life Sciences (3) Mathematics & Statistics (3) Psychology (3) Social Work (3) Development/Advancement/Fundraising (3) More Email me jobs like this Sorry, we don't currently have any jobs for this search. Please try another search. Load more