Not sure why this apparently isn’t working as intended (I haven’t actually tested it). Buffs apparently get resized but not the debuffs.
hooksecurefunc("CompactUnitFrame_UpdateAll",function(f)
if f.buffFrames then
for _,d in ipairs(f.buffFrames) do
d:SetSize(30,30)
end
elseif f.debuffFrames then
for _,d in ipairs(f.debuffFrames) do
d:SetSize(30,30)
end
end
end)