<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://patriotacumen.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://patriotacumen.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://patriotacumen.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://patriotacumen.com/wp-sitemap-posts-sby_videos-1.xml</loc></sitemap><sitemap><loc>https://patriotacumen.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://patriotacumen.com/wp-sitemap-taxonomies-wpa-stats-type-1.xml</loc></sitemap><sitemap><loc>https://patriotacumen.com/hub/site-maps/index.xml</loc></sitemap></sitemapindex>
<style id="pa-hide-fc-profile-posts">
/* 1) CSS hide: target both the known class and any profile link to /posts */
li.fcom_profile_posts,
li:has(> a[href*="/posts"]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Extra belt-and-suspenders for anchors (in case LI class changes) */
a[href*="/posts"] {
  pointer-events: none !important;
}
</style>

<script id="pa-hide-fc-profile-posts-js">
(function(){
  if (window.__paHideProfilePostsInstalled) return;
  window.__paHideProfilePostsInstalled = true;

  // Match anchors like /hub/u/{user}/posts (with or without trailing slash)
  const POSTS_LINK_RE = /^\/hub\/u\/[^\/]+\/posts(?:\/|$)/i;

  function killPostsNav(ctx) {
    const qsa = (s,c=ctx) => (c.querySelectorAll ? c.querySelectorAll(s) : []);

    // Remove any LI with known class
    qsa('li.fcom_profile_posts', ctx).forEach(li => li.remove());

    // Remove any LI that contains an <a> to /posts, and disable any stray links
    qsa('a[href*="/posts"]', ctx).forEach(a => {
      try {
        const href = a.getAttribute('href') || '';
        if (!POSTS_LINK_RE.test(new URL(href, location.origin).pathname)) return;
      } catch(e) {
        // If URL() fails, fallback to basic contains check
        if (!/\/hub\/u\/[^\/]+\/posts/i.test(a.getAttribute('href')||'')) return;
      }
      a.addEventListener('click', e => { e.preventDefault(); e.stopPropagation(); }, true);
      a.setAttribute('aria-hidden','true');
      a.style.display = 'none';
      const li = a.closest('li');
      if (li) li.remove();
      else a.remove();
    });
  }

  // First pass
  killPostsNav(document);

  // Keep enforced on SPA/async renders
  new MutationObserver(muts => {
    for (const m of muts) {
      for (const n of m.addedNodes || []) {
        if (n.nodeType === 1) {
          // If the new node is a link/LI itself, or contains them, act.
          if (n.matches?.('li.fcom_profile_posts, a[href*="/posts"]') || n.querySelector?.('li.fcom_profile_posts, a[href*="/posts"]')) {
            killPostsNav(n);
          }
        }
      }
    }
  }).observe(document.documentElement, { childList:true, subtree:true });

  // Client-side route guard (if SPA navigates to /posts anyway)
  try {
    if (POSTS_LINK_RE.test(location.pathname)) {
      const dest = location.pathname.replace(POSTS_LINK_RE, (m) => location.pathname.replace(/\/posts(?:\/|$)/i, ''));
      try {
        history.replaceState(null, '', dest + location.search + location.hash);
        dispatchEvent(new PopStateEvent('popstate', { state: null }));
      } catch(_e) {
        location.replace(dest + location.search + location.hash);
      }
    }
  } catch(_e){}

  // Console probe
  window.__paHidePostsProbe = () => ({
    postsLis: document.querySelectorAll('li.fcom_profile_posts').length,
    postsLinks: Array.from(document.querySelectorAll('a[href*="/posts"]'))
      .filter(a => {
        try { return /^\/hub\/u\/[^\/]+\/posts(?:\/|$)/i.test(new URL(a.getAttribute('href')||'', location.origin).pathname); }
        catch(e){ return /\/hub\/u\/[^\/]+\/posts/i.test(a.getAttribute('href')||''); }
      }).length,
    onPostsRoute: /^\/hub\/u\/[^\/]+\/posts(?:\/|$)/i.test(location.pathname)
  });
})();
</script>
    