Release Vulpes OS 2.7-preview.22

This commit is contained in:
OverSu 2026-10-22 20:42:26 +02:00
commit a138f97877
294 changed files with 515786 additions and 187 deletions

View file

@ -1,5 +1,20 @@
// Runs only on our remote catalogue. It exposes no privileged API to the page.
// Catalogue controls enter the same local confirmation; no privileged page API.
function installMarketplacePage(win, send) {
if(win.location.origin==='https://ffapps.danielherr.software' && win.location.pathname.startsWith('/app/')) {
const doc=win.document,button=doc.getElementById('install_button');
const request=(element,url)=>element.addEventListener('click',event=>{
if(!event.isTrusted || event.button!==0 || event.ctrlKey || event.metaKey || event.shiftKey)return;
event.preventDefault();event.stopImmediatePropagation();send(url.href);
},true);
if(button?.dataset.manifest==='manifest.webapp') {
button.disabled=false;request(button,new URL('manifest.webapp',win.location.href));
}
for(const link of doc.querySelectorAll('a[download][href]')) {
const url=new URL(link.href);
if(url.origin===win.location.origin && url.pathname.endsWith('.zip'))request(link,url);
}
return;
}
if(win.location.origin!=='https://vulpes-os.org' || !win.location.pathname.startsWith('/marketplace/'))return;
const doc=win.document;
for(const link of doc.querySelectorAll('a[href]')) {