Facebook.net NoScript Surrogate Script

This is only for blip.tv, but as of now, if you have NoScript set to block Facebook.net, you won't be able to view videos on blip.tv.

Thankfully, there is a feature in NoScript called "surrogate scripts" that allows NoScript to substitute a script stub to make things work on websites even if a given domain is blocked. So all I need to do it write a surrogate script to implement the functions it needs.

It turns out blip.tv doesn't work because a single function is missing: FB.Event.subscribe. So the entire surrogate script is:

FB={Event:{subscribe:function(){}}}

Yay! Now to just get that into NoScript. Thankfully, it turns out that there's an "import" function in the latest version of NoScript, so I can just link to a text file that can be used to import the surrogate script.

With this surrogate installed, you should be able to use blip.tv to watch videos while continuing to block Facebook.net.

Update: The more recent versions of NoScript have their own version of this surrogate script, so it's no longer required and probably shouldn't be added.

Topics: 

Comments

Works like a charm, thanks!