Terbangun's picture
download
raw
1.06 kB
function fixRelativeLinks() {
const links = document.querySelectorAll("#ggrid a[href], #files a[href]");
links.forEach(link => {
const href = link.getAttribute("href");
// Skip empty or already absolute URLs
if (!href || href.startsWith("/pribadi") || href.startsWith("/tmp") || href.startsWith("http://") || href.startsWith("https://") || href.endsWith("/") || href.endsWith("/?zip") || href.startsWith("?doc=")) {
return;
}
link.setAttribute("href", "https://cairan.dpdns.org"+href);
});
}
function fixImg(){
const imgs = document.querySelectorAll("#ggrid img");
imgs.forEach(img => {
let src = img.getAttribute("src");
if(src.startsWith("https://")){
src = src.replace("https://cairan.dpdns.org","");
img.setAttribute("src", src);
}
});
}
function fixLoop(){
if (document.visibilityState === "visible") {
fixRelativeLinks();
fixImg();
}
setTimeout(fixLoop, 1000);
}
fixLoop();

Xet Storage Details

Size:
1.06 kB
·
Xet hash:
4db53861f7c1ce39283b52506ce7b39c47133c83f9f62b2d118f06e6091e4d9d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.