document.addEventListener("DOMContentLoaded", function() { // Find all elements that contain text const elements = document.querySelectorAll("body, body *:not(script):not(style):not(noscript)"); elements.forEach(element => { if (element.childNodes.length === 1 && element.childNodes[0].nodeType === Node.TEXT_NODE) { let text = element.textContent.trim(); if (text === "The Story Behind That Bueller-Inspired Bedard Photo") { // Replace with italicized text element.innerHTML = "The Story Behind That Bueller-Inspired Bedard Photo"; } } }); });