
Hey Developers!
Did you know you can promote your games in special listings around Kongregate using Blocks?
Learn more »-1 && n.getAttribute("data-turbo-track")=="reload"){ if(remove_new){ n.remove(); } let goodKongCSS = document.createElement('link'); goodKongCSS.rel = 'stylesheet'; goodKongCSS.setAttribute('data-turbo-track', 'reload'); goodKongCSS.href = 'https://fancy2209.github.io/KOG/GamePage.css'; document.head.appendChild(goodKongCSS); } else if(n.href.search("application_merged")>-1 && n.getAttribute("data-turbo-track")=="reload"){ if(remove_new){ n.remove(); } let goodKongCSS = document.createElement('link'); goodKongCSS.rel = 'stylesheet'; goodKongCSS.setAttribute('data-turbo-track', 'reload'); goodKongCSS.href = 'https://fancy2209.github.io/KOG/Main.css'; document.head.appendChild(goodKongCSS); } else if(n.href.search("application-")>-1 && n.getAttribute("data-turbo-track")=="reload"){ if(remove_new){ n.remove(); } } } // Because Kongregate obviously adds new content (like the medal of the "iron, fire and explosions" quest) with the new styles in mind, some parts of those must be kept. var s=document.createElement("style"); s.innerHTML=` img,video { max-width: 100%; height: auto; } `; document.head.appendChild(s); } function replace_favicon(){ var I=document.head.querySelectorAll('link[rel="icon"]'); for(let i of I){ if(i.type=="image/svg+xml"){ i.href = "https://github.com/Fancy2209/Good-Old-Kongregate/raw/main/Icon/icon.svg"; } else{ i.href = "https://raw.githubusercontent.com/Fancy2209/Good-Old-Kongregate/main/Icon/kong.png"; } } } function switch_banner(C){ var e=document.getElementsByClassName("home_feat_items")[0].getElementsByClassName("focus")[0]; if(C=="next"){ e.classList.remove("focus"); (e.nextElementSibling||e.parentElement.firstElementChild).classList.add("focus"); } else if(C=="previous"){ e.classList.remove("focus"); (e.previousElementSibling||e.parentElement.lastElementChild).classList.add("focus"); } } function replace_homepage_banners(node,homepage_primarywrap){ let pw=document.createElement("div"); pw.id="primarywrap"; pw.classList.add("divider"); let banners=node.getElementsByClassName("home_feat_items")[0].innerHTML; pw.innerHTML=homepage_primarywrap; node.parentElement.insertBefore(pw, node); node.remove(); document.getElementsByClassName("home_feat_items")[0].innerHTML=banners; document.getElementsByClassName("home_feat_nav")[0].getElementsByClassName("prev")[0].addEventListener("click",function(){switch_banner("previous");}); document.getElementsByClassName("home_feat_nav")[0].getElementsByClassName("next mls")[0].addEventListener("click",function(){switch_banner("next");}); } function ThingsToDoAtTheEnd(holodeck){ PutWarningOnUnsupportedPages(50); ReopenChat(50,holodeck); }; (function() { 'use strict'; // Find the Things const headerWrap = `
Get more out of your Kongregate experience. Take advantage of ad-free gaming, cool profile skins, automatic beta access, and private chat with Kong Plus. Learn more »
Kongregate: Play free games onlineTop Games This Month (see all)Our Published Games (see all)Royal Idle - Medieval QuestCollect gold and emeralds, build your kingdom, and journey to new adventure! Download on the App Store & Get it on Google PlayMost Played Games (see all)
Game SpotlightsSponsored ListingsPromoted Listings![]() Hey Developers!Did you know you can promote your games in special listings around Kongregate using Blocks? Learn more » |