mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 00:53:41 +00:00
updated examples for advanced content filter
This commit is contained in:
parent
e53c289da3
commit
0bde25d918
1 changed files with 12 additions and 1 deletions
|
@ -34,8 +34,19 @@ 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
|
||||
|
||||
|
||||
|
||||
## Expression Syntax
|
||||
|
||||
1. To block specific domains `body matches "/\\.spiegel\\.de/"`
|
||||
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}/"`
|
||||
|
||||
|
||||
|
||||
### Supported Literals
|
||||
|
||||
- **strings** - single and double quotes (e.g. `'hello'`).
|
||||
|
@ -506,4 +517,4 @@ You can also retrieve the variables of a specific post by pasting its URL below
|
|||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue