Filtering rules documentation

Discussion in 'Custom Filters' started by avatar, Sep 21, 2016.

  1. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,143
    Hey all!

    We have updated the documentation on the filtering rules syntax:
    https://adguard.com/en/filterrules.html

    Finally, we have a detailed and comprehensive article covering all Adguard capabilities. It is important to note, that creating of your own filtering rules requires some knowledge of web technologies, such as HTML, CSS and Javascript.


    Helpful links:

    Helpful tools:
     
    aegis and Adam like this.
  2. Adam

    Adam Filters Developer Staff Member Moderator

    Joined:
    Aug 17, 2014
    Messages:
    1,439
    aegis likes this.
  3. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,143
    Ops, thank you for pointing at it!
     
  4. SlowMemory

    SlowMemory Beta Tester

    Joined:
    Sep 20, 2015
    Messages:
    475
    It seems that $ should be escaped in the replace example.
    Untitled.png
    +)
    in https://adguard.com/en/filterrules.html#replace-modifier
    Code:
    ://*.damoh.golem.de/$replace=/(<VAST(.|\s)*?>)(.|\s)*<\/VAST>/$1<\/VAST>/i,domain=video.golem.de
    
    in German filter:
    Code:
    ://*.damoh.golem.de/$replace=/(<VAST[\s\S]*?>)[\s\S]*<\/VAST>/\$1<\/VAST>/,domain=video.golem.de
    
     
    Last edited: Sep 23, 2016
  5. vasily_bagirov

    vasily_bagirov Administrator Staff Member Administrator

    Joined:
    Jul 1, 2014
    Messages:
    6,904
    No, it's fine, the regexp starts after '$replace'.
     
  6. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,143
    We've just updated the documentation, thank you!