mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-19 00:03:42 +00:00
added some examples
This commit is contained in:
parent
0bde25d918
commit
3855f878dd
1 changed files with 2 additions and 5 deletions
|
@ -36,16 +36,13 @@ A post will be collapsed if at least one rule matches, but all matching rule nam
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
1. To block specific domains `body matches "/\\.exmaple\\.com/"`
|
||||||
|
|
||||||
## Expression Syntax
|
|
||||||
|
|
||||||
1. To block specific domains `body matches "/\\.spiegel\\.de/"`
|
|
||||||
2. To block everything that contains the words `body matches "/Guten Morgen/"
|
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 /"`
|
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}/"`
|
4. To colapse every post that contains more than 1 image `body matches "/(?:(?:(?:\\[url(?:=.*)?\\])?\\[img(?:=.*)?\\].*\\[\\/img\\]\\s*(?:\\[\\/url\\])?)\\s*){2}/"`
|
||||||
|
|
||||||
|
|
||||||
|
## Expression Syntax
|
||||||
|
|
||||||
### Supported Literals
|
### Supported Literals
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue