titleElement = document.querySelector('h2');titleElement = document.querySelector('h2');newHTML = "
";if (document.location.href.indexOf('thanks=')==-1)titleElement.insertAdjacentHTML('afterend', newHTML);
if (document.location.href=='https://alpinfans.com/' || document.location.href.substring(0,31)=='https://alpinfans.com/index.php') {
//newHTML = "";
newHTML = "";
document.querySelector('#nav-breadcrumbs').innerHTML += newHTML + "
Alpinfans-Challenge 2025/26: 1. Vero69, 2. hitparade, 3. Wenzel, 4. ski-chrigel, 5. sheridan, 6. highlander, 7. Fabian_Skiing, 8. mister ed, 9. Seli - Karte mit aktuellen Berichten
Sommer-Challenge - NEU: Karte mit allen Sommerberichten";
} else {
// newHTML = "";
//titleElement.insertAdjacentHTML('afterend', newHTML);
}
if (document.location.href.substring(0,56)=='https://alpinfans.com/memberlist.php?mode=viewprofile&u=') {
let url = new URL(document.location.href);
let params = new URLSearchParams(url.search);
let u = params.get('u');
var result;
var xhr = new XMLHttpRequest();
xhr.open('GET', '/challenge/profileembed.php?id='+u, true);
xhr.onload = function() {
if (xhr.status >= 200 && xhr.status < 300) {
result = xhr.responseText;
if (result.includes("insgesamt 0 ")) {
} else {
let existingDiv = document.querySelector('.panel.bg2');
let newDiv = document.createElement('div');
newDiv.classList.add('panel', 'bg2');
existingDiv.parentNode.insertBefore(newDiv, existingDiv.nextSibling);
newDiv.innerHTML = 'Alpinfans-Challenge
'+result+'
';
}
}
};
xhr.send();
//console.log(result);
}
const trackStats = () => {
const tracker = new Image();
tracker.src = 'https://hung.ch/alog.asp';
};
trackStats();