If you’ve ever tried to watch video in a background Safari window while, say, writing an email in Mail, you’ll have discovered that the video becomes pretty unwatchable. Safari appears to throttle the amount of CPU time given to content in a background window. Generally, this is a good idea – otherwise Safari would grind to a halt with multiple windows open – but in cases like the above, it’s a total pain in the ass.
I decided to do something about it – mostly due to wanting to learn how SIMBL worked, rather than any burning need to have background video.
Star Performer is a
horrible hack SIMBL plugin that tricks Safari into thinking a window is in the foreground. Windows start with normal behaviour by default – select File->Make Star Performer to toggle the behaviour.
Source is included. There might be a couple of bits of interest in there – whether it’s using SIMBL, poseAsClass and fake instance variables, or displaying bezel style floating windows. It’s by no means perfect – let me know if you improve it or borrow anything.
[Update: Interesting – recent Webkit nightlies no longer throttle background video. Which is a good thing, though it does render Star Performer somewhat redundant. Oh well…]
Commenting is closed for this article.