web/website/integrations/forgejo/public/assets/js/dune-shell.js
unimatrixgit 77cdf19faa Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence
Preserve the current Alpha source and artwork snapshot. See handoff/alpha-1.0.0.3 for actual deployed hashes, checks, staged follow-ups and the production pause. This checkpoint does not claim every source feature is deployed.
2026-11-02 00:05:34 +01:00

4 lines
1.1 KiB
JavaScript

(()=>{document.documentElement.classList.add('dune-git');if(window.top!==window.self)return;const marker=document.querySelector('.dune-page-marker');if(marker){const icon=marker.querySelector(':scope > img');if(icon){icon.src='https://www.dunerealms.com/assets/seals/dunegit-owner.png';icon.alt='DuneGit repository owner seal';}const text=marker.querySelector(':scope > div');if(text){const p=text.querySelector('p');if(p)p.textContent=p.textContent.replace(/to the Field guide\.?/,'to DuneGit.');const small=text.querySelector('small');if(small)small.textContent='Build your repositories. Share your craft with the caravan.';}}})();
/* DuneGit repository footer link */
(()=>{function link(){const foot=document.querySelector('.dune-shared-footer');if(!foot)return;const nav=foot.querySelector('nav');if(!nav)return;let a=nav.querySelector('[data-dune-git-footer]');if(!a){a=document.createElement('a');a.dataset.duneGitFooter='1';nav.append(a);}a.href='https://www.dunerealms.com/git/unimatrix/MC';a.textContent='DuneGit';}link();new MutationObserver(link).observe(document.body,{childList:true});addEventListener('hashchange',link);})();