// Function to change the Actions column header text function customizeActionsColumn(newText = 'Veiksmai') { // Function to find and update the header function updateHeader() { // Find all table headers const headers = document.querySelectorAll('th'); // Look for the Actions header headers.forEach(header => { if (header.textContent.trim() === 'Actions') { header.textContent = newText; } }); } // Initial update updateHeader(); // Create an observer to handle dynamically loaded content const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { if (mutation.addedNodes.length) { updateHeader(); } }); }); // Start observing the document for changes observer.observe(document.body, { childList: true, subtree: true }); } // Execute when the page loads document.addEventListener('DOMContentLoaded', () => { customizeActionsColumn(); }); // Also execute immediately in case the DOM is already loaded customizeActionsColumn();