X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=advancedcontentfilter%2Fdoc%2Fadvancedcontentfilter.md;h=44ad8c657259a61fa780833d7fc3c51b788ad013;hb=54436370f22d200c7dc4eee2e745738a7dd2eec1;hp=26fa330bf12808cd47ebc45ac956572f93960d02;hpb=acce253d8e4db12757f349d016b963c4f07e0ce3;p=friendica-addons.git
diff --git a/advancedcontentfilter/doc/advancedcontentfilter.md b/advancedcontentfilter/doc/advancedcontentfilter.md
index 26fa330b..44ad8c65 100644
--- a/advancedcontentfilter/doc/advancedcontentfilter.md
+++ b/advancedcontentfilter/doc/advancedcontentfilter.md
@@ -17,7 +17,7 @@
}
-ð Back to Addon Settings
+ð Back to Advanced Content Filter Settings
# Advanced Content Filter Help
@@ -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
@@ -45,9 +53,9 @@ A post will be collapsed if at least one rule matches, but all matching rule nam
- **booleans** - `true` and `false`.
- **null** - `null`.
-A backslash (``\``) must be escaped by 4 backslashes (``\\\\``) in a string and 8 backslashes (``\\\\\\\\``) in a regex::
+A backslash (``\``) must be escaped by 2 backslashes (``\\``) in a string and 4 backslashes (``\\\\``) in a regex::
-`"a\\\\b" matches "/^a\\\\\\\\b$/"`
+`"a\\b" matches "/^a\\\\b$/"`
Control characters (e.g. ``\n``) in expressions are replaced with whitespace. To avoid this, escape the sequence with a single backslash (e.g. ``\\n``).
@@ -134,47 +142,47 @@ You can also retrieve the variables of a specific post by pasting its URL below
- author-id |
+ author_id |
number |
6 |
- author-link |
+ author_link |
string |
https://friendica.mrpetovan.com/profile/hypolite |
- author-name |
+ author_name |
string |
Hypolite Petovan |
- author-avatar |
+ author_avatar |
string |
https://friendica.mrpetovan.com/photo/41084997915a94a8c83cc39708500207-5.png |
- owner-id |
+ owner_id |
number |
6 |
- owner-link |
+ owner_link |
string |
https://friendica.mrpetovan.com/profile/hypolite |
- owner-name |
+ owner_name |
string |
Hypolite Petovan |
- owner-avatar |
+ owner_avatar |
string |
https://friendica.mrpetovan.com/photo/41084997915a94a8c83cc39708500207-5.png |
- contact-id |
+ contact_id |
number |
1 |
@@ -199,17 +207,17 @@ You can also retrieve the variables of a specific post by pasting its URL below
urn:X-dfrn:friendica.mrpetovan.com:1:twit:978740198937907200 |
- thr-parent |
+ thr_parent |
string |
urn:X-dfrn:friendica.mrpetovan.com:1:twit:978740198937907200 |
- parent-uri |
+ parent_uri |
string |
urn:X-dfrn:friendica.mrpetovan.com:1:twit:978740198937907200 |
- content-warning |
+ content_warning |
string |
|
@@ -239,7 +247,7 @@ You can also retrieve the variables of a specific post by pasting its URL below
http://activitystrea.ms/schema/1.0/post |
- object-type |
+ object_type |
string |
http://activitystrea.ms/schema/1.0/bookmark |
@@ -290,7 +298,7 @@ You can also retrieve the variables of a specific post by pasting its URL below
|
- event-id |
+ event_id |
number |
null
|
@@ -314,15 +322,15 @@ You can also retrieve the variables of a specific post by pasting its URL below
|
- rendered-hash |
+ rendered_hash |
string |
b70abdea8b362dc5dcf63e1b2836ad89 |
- rendered-html |
+ rendered_html |
string |
- Over-compensation #<a href="https://friendica.mrpetovan.com/search?tag=Street" class="tag" title="Street">Street</a> #<a href="https://friendica.mrpetovan.com/search?tag=Night" class="tag" title="Night">Night</a> #<a href="https://friendica.mrpetovan.com/search?tag=CarLights" class="tag" title="CarLights">CarLights</a> #<a href="https://friendica.mrpetovan.com/search?tag=Jeep" class="tag" title="Jeep">Jeep</a> #<a href="https://friendica.mrpetovan.com/search?tag=NoPeople" class="tag" title="NoPeople">NoPeople</a> #<a href="https://friendica.mrpetovan.com/search?tag=Close" class="tag" title="Close">Close</a>-up <div class="type-link"><a href="https://www.eyeem.com/p/120800309" target="_blank"><img src="https://friendica.mrpetovan.com/proxy/bb/aHR0cHM6Ly9jZG4uZXllZW0uY29tL3RodW1iL2IyZjAxOTczOGNiZWVmMDZlMmY4Yzk1MTdjNjI4NmE4YWRjZDNhMDAtMTUyMjE4NDgyMDY0MS82NDAvNDgw" alt="" title="Over-compensation Street Night Car Lights Jeep No | EyeEm" class="attachment-image"></a><br><h4><a href="https://www.eyeem.com/p/120800309">Over-compensation Street Night Car Lights Jeep No | EyeEm</a></h4><blockquote>Photo by @<a href="https://twitter.com/MrPetovan" class="userinfo mention" title="MrPetovan">MrPetovan</a></blockquote><sup><a href="https://www.eyeem.com/p/120800309">www.eyeem.com</a></sup></div>
+ Over-compensation #<a href="https://friendica.mrpetovan.com/search?tag=Street" class="tag" title="Street">Street</a> #<a href="https://friendica.mrpetovan.com/search?tag=Night" class="tag" title="Night">Night</a> #<a href="https://friendica.mrpetovan.com/search?tag=CarLights" class="tag" title="CarLights">CarLights</a> #<a href="https://friendica.mrpetovan.com/search?tag=Jeep" class="tag" title="Jeep">Jeep</a> #<a href="https://friendica.mrpetovan.com/search?tag=NoPeople" class="tag" title="NoPeople">NoPeople</a> #<a href="https://friendica.mrpetovan.com/search?tag=Close" class="tag" title="Close">Close</a>-up <div class="type-link"><a href="https://www.eyeem.com/p/120800309" target="_blank" rel="noopener noreferrer"><img src="https://friendica.mrpetovan.com/proxy/bb/aHR0cHM6Ly9jZG4uZXllZW0uY29tL3RodW1iL2IyZjAxOTczOGNiZWVmMDZlMmY4Yzk1MTdjNjI4NmE4YWRjZDNhMDAtMTUyMjE4NDgyMDY0MS82NDAvNDgw" alt="" title="Over-compensation Street Night Car Lights Jeep No | EyeEm" class="attachment-image"></a><br><h4><a href="https://www.eyeem.com/p/120800309">Over-compensation Street Night Car Lights Jeep No | EyeEm</a></h4><blockquote>Photo by @<a href="https://twitter.com/MrPetovan" class="userinfo mention" title="MrPetovan">MrPetovan</a></blockquote><sup><a href="https://www.eyeem.com/p/120800309">www.eyeem.com</a></sup></div>
|
@@ -361,12 +369,12 @@ You can also retrieve the variables of a specific post by pasting its URL below
dfrn |
- author-thumb |
+ author_thumb |
string |
https://friendica.mrpetovan.com/photo/0cb3d7231eb751139d7d309c7c686c49-5.png?ts=1522941604 |
- owner-thumb |
+ owner_thumb |
string |
https://friendica.mrpetovan.com/photo/0cb3d7231eb751139d7d309c7c686c49-5.png?ts=1522941604 |
@@ -406,57 +414,57 @@ You can also retrieve the variables of a specific post by pasting its URL below
|
- event-created |
+ event_created |
date |
null |
- event-edited |
+ event_edited |
date |
null |
- event-start |
+ event_start |
date |
null |
- event-finish |
+ event_finish |
date |
null |
- event-summary |
+ event_summary |
string |
null |
- event-desc |
+ event_desc |
string |
null |
- event-location |
+ event_location |
string |
null |
- event-type |
+ event_type |
string |
null |
- event-nofinish |
+ event_nofinish |
string |
null |
- event-adjust |
+ event_adjust |
boolean |
null |
- event-ignore |
+ event_ignore |
boolean |
null |
@@ -470,14 +478,14 @@ You can also retrieve the variables of a specific post by pasting its URL below
list |
- - #<a href="https://friendica.mrpetovan.com/search?tag=Street" target="_blank">street</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=Night" target="_blank">night</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=CarLights" target="_blank">carlights</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=Jeep" target="_blank">jeep</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=NoPeople" target="_blank">nopeople</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=Close" target="_blank">close</a>
- - @<a href="https://twitter.com/MrPetovan" target="_blank">mrpetovan</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=Close-up" target="_blank">close-up</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Street" target="_blank" rel="noopener noreferrer">street</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Night" target="_blank" rel="noopener noreferrer">night</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=CarLights" target="_blank" rel="noopener noreferrer">carlights</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Jeep" target="_blank" rel="noopener noreferrer">jeep</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=NoPeople" target="_blank" rel="noopener noreferrer">nopeople</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Close" target="_blank" rel="noopener noreferrer">close</a>
+ - @<a href="https://twitter.com/MrPetovan" target="_blank" rel="noopener noreferrer">mrpetovan</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Close-up" target="_blank" rel="noopener noreferrer">close-up</a>
|
@@ -486,13 +494,13 @@ You can also retrieve the variables of a specific post by pasting its URL below
list |
- - #<a href="https://friendica.mrpetovan.com/search?tag=Street" target="_blank">street</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=Night" target="_blank">night</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=CarLights" target="_blank">carlights</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=Jeep" target="_blank">jeep</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=NoPeople" target="_blank">nopeople</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=Close" target="_blank">close</a>
- - #<a href="https://friendica.mrpetovan.com/search?tag=Close-up" target="_blank">close-up</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Street" target="_blank" rel="noopener noreferrer">street</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Night" target="_blank" rel="noopener noreferrer">night</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=CarLights" target="_blank" rel="noopener noreferrer">carlights</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Jeep" target="_blank" rel="noopener noreferrer">jeep</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=NoPeople" target="_blank" rel="noopener noreferrer">nopeople</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Close" target="_blank" rel="noopener noreferrer">close</a>
+ - #<a href="https://friendica.mrpetovan.com/search?tag=Close-up" target="_blank" rel="noopener noreferrer">close-up</a>
|
@@ -501,9 +509,9 @@ You can also retrieve the variables of a specific post by pasting its URL below
string |
- - @<a href="https://twitter.com/MrPetovan" target="_blank">mrpetovan</a>
+ - @<a href="https://twitter.com/MrPetovan" target="_blank" rel="noopener noreferrer">mrpetovan</a>
|
-
\ No newline at end of file
+