I encountered a site which didn't work while blocking twitter. The current NoScript surrogate wasn't enough, so I tried to improve it.
The site referred to twttr.widgets.load(), but didn't do anything with the resulting widgets, so that function call can be stubbed out with a null result.
Here is my alternate surrogate replacement for twitter.
Code: Select all
twttr=(function(){var f=arguments.callee; var ro = f.__noSuchMethod__=f.events=f.anywhere=f; ro.widgets={load:function(){} }; return ro})();