Skip to main content
xenoveritas.org

Main navigation

  • Categories
  • Home
  • Links
  • Name Generator
  • Scramble
User account menu
  • Log in

Breadcrumb

  1. Home

Facebook.net NoScript Surrogate Script

By Xenoveritas, 18 June, 2011
Topics
Web
Firefox

fizze (not verified)

13 years 10 months ago

Thank you

Works like a charm, thanks!

  • Reply
  • Add new comment

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.

Current Games

I'm currently playing:

  • Final Fantasy XIV: Endwalker

I intend to maybe get around to finishing:

  • Literally anything else

Video Games Section

Thought for the Moment

I never have thoughts any more.

Old Thoughts

Has the LHC Destroyed the Earth?

  • Create new account
  • Reset your password
RSS feed
Powered by Drupal