Hoe werkt de overheid in China ? by Jan Jonckheere • 31 augustus 2024 Dit artikel van Jan Jonckheere werd oorspronkelijk gepubliceerd op Chinasquare Het boek ‘How China works?’ legt uit hoe de zichtbare hand van de overheid de economische ontwikkeling stuurt. De basis vormt d ...
  • 2024-09-06

大家都在搜

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