Browse Source

Merge pull request #1024 from hoergen/develop

Added examples to advanced content filter
pull/911/merge
Tobias Diekershoff 9 months ago
committed by GitHub
parent
commit
147ac6b774
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      advancedcontentfilter/doc/advancedcontentfilter.md

+ 9
- 1
advancedcontentfilter/doc/advancedcontentfilter.md View File

@ -34,6 +34,14 @@ If the expression using a post variables returns `true`, the post will be collap
A post will be collapsed if at least one rule matches, but all matching rule names will be displayed above the collapsed content.
## Examples
1. To block specific domains `body matches "/\\.example\\.com/"`
2. To block everything that contains the words `body matches "/Guten Morgen/"`
3. To block every occurence of the word facebook with a space in front and after the word `body matches "//s facebook/s /"`
4. To colapse every post that contains more than 1 image `body matches "/(?:(?:(?:\\[url(?:=.*)?\\])?\\[img(?:=.*)?\\].*\\[\\/img\\]\\s*(?:\\[\\/url\\])?)\\s*){2}/"`
## Expression Syntax
### Supported Literals
@ -506,4 +514,4 @@ You can also retrieve the variables of a specific post by pasting its URL below
</td>
</tr>
</tbody>
</table>
</table>

Loading…
Cancel
Save