Generic Surrogate?
Posted: Fri Apr 08, 2011 2:27 am
Hey. My question has probably been beaten to death but I'm having trouble crafting a proper search for the info. I want a tested and approved method for NoScript to block scripts on certain sites while allowing GreaseMonkey to fully function. I think I stumbled across a way to do it with a surrogate and a code snippet from a few years ago but I thought I would ask if there is an option I missed or an accepted best practice to do what I want. Here's what I did that seems to work:
noscript.surrogate.generic.sources =
noscript.surrogate.generic.replacement =
The sites are Allowed. Is this doing what I want and in the proper way?
noscript.surrogate.generic.sources =
Code: Select all
@*.domain1.com @*.domain2.comCode: Select all
(function() { var stopPropagation = Event.prototype.stopPropagation; Event.prototype.stopPropagation = function() { if (this.type != "DOMContentLoaded") stopPropagation.apply(this); } })();