const r = rules[i]; if(!r.style) continue; const bg = r.style.getPropertyValue('background-image') || r.style.getPropertyValue('background'); if(bg){ // Save a tiny copy of the rule so we can undo history.push({sheet, index:i, cssText: r.cssText}); try{ r.style.removeProperty('background-image'); r.style.removeProperty('background'); removedRules++; } catch(e){ /* ignore */ } } } } log(`Removed background declarations from ${removedRules} CSS rule(s)`); });   removeAllBtn.addEventListener('click', ()=>{ // aggressive: remove from inline on all elements + try stylesheets selectorIn.value = ''; removeInlineBtn.click(); removeCSSBtn.click(); removeComputedBtn.click(); log('Performed aggressive full-page background-image removal'); });   undoBtn.addEventListener('click', ()=>{ const last = history.pop(); if(!last){ log('Nothing to undo'); return; } // If it was an inline change if(last.el && 'prop...