there is no clean way to access a local anonymous frame.
Code:
local hooked = {};
-- run on START_LOOT_ROLL
local frames = {GetFramesRegisteredForEvent('CANCEL_LOOT_ROLL')};
for i,frame in pairs(frames) do
if (not hooked[frame]) and frame.status and frame.status:GetStatusBarTexture():match('teksLoot') then
-- hook frame, or just apply changes here once.
hooked[frame] = true;
end
end