mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-05-09 15:12:21 +00:00
Sometimes Firefox decides to load different groups of content scripts asynchronously, causing our trick with `requestAnimationFrame` to miss everything. To prevent this, I decided to just attempt to autorun everything on each definition using `setTimeout`. I've also tried to use `queueMicrotask` to put autorun logic right between different groups of modules, but this trick was only working on Firefox and completely breaking on Chromium. I sure love browsers!