javascript:(function(){if(document.getElementById('forumNavToggle'))return;function getDocumentTop(el){return el.getBoundingClientRect().top+window.scrollY}function scrollToPost(posts,direction){const currentScroll=window.scrollY,viewportHeight=window.innerHeight;let targetPost=null;if('down'===direction){const scrollTarget=currentScroll+viewportHeight;for(const post of posts){const postTop=getDocumentTop(post);if(postTop>scrollTarget){targetPost=post;break}}}else{const scrollTarget=currentScroll;for(let i=posts.length-1;i>=0;i--){const post=posts[i],postBottom=getDocumentTop(post)+post.offsetHeight;if(postBottom<scrollTarget){targetPost=post;break}}}targetPost&&targetPost.scrollIntoView({behavior:'smooth',block:'start'})}const upButton=document.createElement('button'),downButton=document.createElement('button'),toggleButton=document.createElement('button');upButton.innerHTML='↑',downButton.innerHTML='↓',toggleButton.textContent='Show Nav';const buttonStyle=`position:fixed;opacity:0.7;background:rgba(0,0,0,0.6);color:white;padding:10px;cursor:pointer;z-index:9999;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:none;transition:opacity 0.3s;font-size:20px;transform:translateX(-50%);`;upButton.style.cssText=buttonStyle+'top:20px;left:50%;',downButton.style.cssText=buttonStyle+'bottom:20px;left:50%;',upButton.style.display='none',downButton.style.display='none';const toggleStyle=`position:fixed;bottom:20px;right:20px;z-index:9999;padding:10px 20px;font-size:14px;background-color:#333;color:#fff;border:none;border-radius:5px;cursor:pointer;box-shadow:0 0 10px rgba(0,0,0,0.5);`;toggleButton.style.cssText=toggleStyle,toggleButton.id='forumNavToggle';const existingButton=document.querySelector('button[style*="position:fixed"]');existingButton?existingButton.parentNode.insertBefore(toggleButton,existingButton):document.body.appendChild(toggleButton);let isVisible=!1;toggleButton.addEventListener('click',()=>{isVisible=!isVisible,upButton.style.display=isVisible?'block':'none',downButton.style.display=isVisible?'block':'none',toggleButton.textContent=isVisible?'Hide Nav':'Show Nav'}),upButton.addEventListener('mouseover',()=>{upButton.style.opacity='1'}),upButton.addEventListener('mouseout',()=>{upButton.style.opacity='0.7'}),downButton.addEventListener('mouseover',()=>{downButton.style.opacity='1'}),downButton.addEventListener('mouseout',()=>{downButton.style.opacity='0.7'}),upButton.addEventListener('click',()=>{const posts=Array.from(document.querySelectorAll('article')).sort((a,b)=>getDocumentTop(a)-getDocumentTop(b));scrollToPost(posts,'up')}),downButton.addEventListener('click',()=>{const posts=Array.from(document.querySelectorAll('article')).sort((a,b)=>getDocumentTop(a)-getDocumentTop(b));scrollToPost(posts,'down')}),document.body.appendChild(upButton),document.body.appendChild(downButton);})();