2026-05-19 22:14:32 +02:00
|
|
|
/* ATC Lakehouse — scanlines + noise only (tabs via settings.yaml) */
|
|
|
|
|
(function () {
|
|
|
|
|
function injectOverlays() {
|
|
|
|
|
if (!document.querySelector('.palantir-scanline')) {
|
|
|
|
|
const scan = document.createElement('div');
|
|
|
|
|
scan.className = 'palantir-scanline';
|
|
|
|
|
document.body.appendChild(scan);
|
|
|
|
|
}
|
|
|
|
|
if (!document.querySelector('.palantir-noise')) {
|
|
|
|
|
const noise = document.createElement('div');
|
|
|
|
|
noise.className = 'palantir-noise';
|
|
|
|
|
document.body.appendChild(noise);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function applyServiceColors() {
|
|
|
|
|
document.querySelectorAll('li.service').forEach(function (card) {
|
|
|
|
|
const desc = card.querySelector('.service-description');
|
|
|
|
|
const text = desc ? desc.textContent : '';
|
|
|
|
|
const link = card.querySelector('a[href^="http"]');
|
|
|
|
|
if (text.indexOf('Host:') >= 0 || text.indexOf('Port:') >= 0 || !link) {
|
|
|
|
|
card.classList.add('atc-db-tile');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function init() {
|
|
|
|
|
injectOverlays();
|
|
|
|
|
applyServiceColors();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (document.readyState === 'loading') {
|
|
|
|
|
document.addEventListener('DOMContentLoaded', init);
|
|
|
|
|
} else {
|
|
|
|
|
init();
|
|
|
|
|
}
|
|
|
|
|
})();
|