Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Redefine filter for Smart Adserver

On the site www.welt.de (german newspaper) is "Smart adserver" active.
If I set this as blocked in ghostery, then many interesting parts on this page disappear.
This filter should get redefined.
1 person has
this problem
+1
Reply
  • A surrogate like

    {"type":"instring","match":".smartadserver.com","code":"function SmartAdServer(){sas_noad=true;};"}

    might work.

    SMART AdServer exhibits "false positive" matches on sites like www.bild.de and lavaina.net, so I agree the definition warrants review (which also means the above surrogate example isn't quite right, either).

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • Can you give me a hint where I have to set this line, please?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • My advice is to wait a couple of days for this to be vetted, and hopefully everyone will get it soon.

    — If you'd like to experiment on your own —

    The current release (2.6.0.1) doesn't support user-provided surrogates, so you'll have to cheat. I created a separate profile for testing purposes, as described here:


    I installed Ghostery into this profile, and disabled auto-update (otherwise any changes would be overwritten). I also have GhostRank disabled in this profile, so it doesn't submit erroneous reports. I updated the bug lists manually before making any changes.

    surrogates.db contains a JSON array, where each item declares the following properties:

    1. type: exact | instring | regex

    2. match: string | substring | regular expression

    3. code: JavaScript code to inject when a blocked
      script matches

    exact is the most efficient, but the least flexible. regex is the last resort, when nothing else works.

    The official surrogates demonstrate how to cope with various situations. In most cases, you'll simply replace a dependency with an empty stub, but there will be times when you'll need to include active content.

    Getting things to work just right requires patience and perseverance — it's not for everyone.

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated