Titanfall 2 | The Game Post
// Add Google Follow CTA to bottom of article content on desktop
(() => {
const googleUrl = "https://www.google.com/preferences/source?q=thegamepost.com";
function injectDesktopCTA() {
if (!document.body.classList.contains("single")) return false;
// Only on desktop (768px+)
if (window.innerWidth < 768) return false;
// Find the article content area
const content = document.querySelector(".entry-content, .s-ct, .post-content, .single-content");
if (!content) return false;
// Don't add if already exists
if (document.querySelector(".tgp-desktop-follow")) return true;
const wrap = document.createElement("div");
wrap.className = "tgp-desktop-follow";
wrap.innerHTML = `
Don't miss the big stories. Make us your preferred source on Google to get breaking news and exclusives first.
`;
content.appendChild(wrap);
return true;
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", injectDesktopCTA);
} else {
injectDesktopCTA();
}
})();