a.button.medium,
.darkmode .button.buy {
display: none !important;
}
h1.post-title{display:none!important}
(function(){
const app = document.getElementById(“zgCollectionsApp”);
function safeText(value){
return String(value || “”).replace(/[&”‘]/g,function(m){
return {“&”:”&”,””:”>”,'”‘:”"”,”‘”:”'”}[m];
});
}
function render(searchText){
const collections = window.ZG_COLLECTIONS || {};
const query = String(searchText || “”).toLowerCase().trim();
const items = Object.entries(collections).filter(function(entry){
const item = entry[1] || {};
return !query ||
String(item.name || “”).toLowerCase().includes(query) ||
String(item.description || “”).toLowerCase().includes(query);
});
app.innerHTML =
‘
‘
‘
‘
‘
Game Series
‘ +
‘
‘ +
‘
” +
” +
‘
‘ +
‘
‘ +
(items.length ? ‘
const key = entry[0];
const item = entry[1] || {};
const covers = item.covers || [];
const bannerImg = covers.length > 0 ? covers[0] : ‘https://via.placeholder.com/1600×900/111622/3b82f6?text=No+Cover’;
return ‘‘ +
‘‘ +
‘
‘ +
‘‘;
}).join(“”) + ‘
‘ : ‘
‘) +
‘
‘ +
‘
‘;
const search = document.getElementById(“zgSearch”);
if(search){
search.addEventListener(“input”,function(){
render(this.value);
});
}
}
function waitForCollections(attempt){
if(window.ZG_COLLECTIONS && Object.keys(window.ZG_COLLECTIONS).length){
render(“”);
return;
}
if(attempt >= 50){
app.innerHTML = ‘
‘;
return;
}
setTimeout(function(){
waitForCollections(attempt + 1);
},100);
}
waitForCollections(0);
})();