(作家,新闻播音员,人权活动家。2022年8月至2004年10月担任过英国驻乌兹别克斯坦的大使,207-2010担任过苏格兰邓迪大学(Dundee University)校长。读者订阅是使他可以坚持下去的最大资助)。 ...
  • 2023-02-16

大家都在搜

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