User:Polygnotus/Scripts/DiscussionToolsDrafts.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 68:
// Add toggle button
const toggleButton = document.createElement('button');
toggleButton.textContent = isCollapsed ? '▼ ShowExpand' : '▲ HideCollapse';
toggleButton.style.padding = '6px 12px';
toggleButton.style.backgroundColor = '#f8f9fa';
Line 81:
// Toggle content area visibility
contentArea.style.display = isNowCollapsed ? 'none' : 'block';
toggleButton.textContent = isNowCollapsed ? '▼ ShowExpand' : '▲ HideCollapse';
// Store preference in localStorage
Line 104:
// Toggle content area visibility
contentArea.style.display = isNowCollapsed ? 'none' : 'block';
toggleButton.textContent = isNowCollapsed ? '▼ ShowExpand' : '▲ HideCollapse';
// Store preference in localStorage