In al die jaren dat ik artikelen en boeken heb geschreven, heb ik nooit aandacht besteed aan het promoten van mijn schrijfsels. Vroeger publiceerde ik mijn artikelen op meer dan een dozijn blogs van derden, sociale nieuwswebsites en lokale kranten. Mijn lezingen voor universiteiten, bedrijven en se ...
  • 2022-08-09

大家都在搜

My Wechat

微信公众号
// 1. List of EXACT field titles to remove (case-sensitive) const FIELDS_TO_NUKE = [ "Tags *", "Date", "Language", "Tag", "List", "Tag1", "Tag2", "Tag3" ]; // 2. MAIN REMOVAL FUNCTION (runs repeatedly until success) function nukeFieldsWithExtremePrejudice() { FIELDS_TO_NUKE.forEach(fieldTitle => { // Find ALL labels on page const labels = document.querySelectorAll('.mailpoet_form_field label'); labels.forEach(label => { // Check if label text MATCHES exactly (trim whitespace) if (label.textContent.trim() === fieldTitle) { // Remove the ENTIRE field group (label + hidden input) const fieldGroup = label.closest('.mailpoet_form_field'); if (fieldGroup) { fieldGroup.remove(); console.log('NUKED:', fieldTitle); // Debug log } } }); }); } // 3. RUN IT WITH OBSERVER + INTERVAL (catches dynamic loading) const observer = new MutationObserver(nukeFieldsWithExtremePrejudice); observer.observe(document.body, { childList: true, subtree: true }); // 4. Run every 500ms until fields are gone (safety net) const nukeInterval = setInterval(nukeFieldsWithExtremePrejudice, 500); // 5. Stop when fields are confirmed gone setTimeout(() => { if (document.querySelectorAll('.mailpoet_form_field').length === 0) { clearInterval(nukeInterval); observer.disconnect(); } }, 3000); // Stop after 3 seconds