The current state of affairs in Western and Chinese healthcare Frans Vandenbosch 方腾波 15.03.2024 It’s not the medications that make the difference. This article is not about Western pharmaceuticals versus traditional Chinese medicine. It is about the holistic approach to healthcar ...
  • 2024-03-15

大家都在搜

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