« Les filtres personnalisés de Maxthon v2.0 » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
==Maxthon Browser Custom Filter Reference== | |||
Version: 2.0.1<br /> Last Modified: 2006-07-17 5:42 PM | Version: 2.0.1<br /> Last Modified: 2006-07-17 5:42 PM | ||
Ligne 9 : | Ligne 11 : | ||
The INI File is where you instruct Maxthon how to process your skin files. You can build your own skin by following the guide of this section or by modifying an exist skin. | The INI File is where you instruct Maxthon how to process your skin files. You can build your own skin by following the guide of this section or by modifying an exist skin. | ||
Attribute: �� may elect � to have - not to have | |||
{| cellspacing="1" cellpadding="5" | {| cellspacing="1" cellpadding="5" | ||
Ligne 21 : | Ligne 23 : | ||
<center>RESP</center> | <center>RESP</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
<center> | <center>Explanation</center> | ||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Name | |||
| colspan="4" width="180" valign="top" | | | colspan="4" width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Project name | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Type | |||
| colspan="4" width="180" valign="top" | | | colspan="4" width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Project type (text, url, requestheader, responseheader) | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Action | |||
| colspan="4" width="180" valign="top" | | | colspan="4" width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
The processing way, sees the action type definition | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Postaction | |||
| colspan="4" width="180" valign="top" | | | colspan="4" width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Later period processing way. Sees the postaction type definition | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Priority | |||
| colspan="4" width="180" valign="top" | | | colspan="4" width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
The project priority, is bigger than zero the integer, a value bigger priority is higher (0 ~ 999) | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Enable | |||
| colspan="4" width="180" valign="top" | | | colspan="4" width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Whether this project does begin using. Value: 1 (begins using), 0 (is durable). Lacks the province is 0 | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Header | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Must match Header Name | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Match_url | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
URL match string | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Exclude_url | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
The URL exception (conforms to this string not to filter) | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Bound | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Uses in to search match the scope match string | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Max_bound_size | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Bound biggest match scope (maximum value 2,048)<br /> Lacks the province value is the maximum value | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Match | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Text match string | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Match_count | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Each page match number of times limit | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Exclude | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
The match exception (conforms to this string not to filter) | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Replace | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Uses in character string which replaces | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
Return | |||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Returns to this character string to give the browser | |||
|- | |- | ||
| colspan="6" width="571" valign="top" | | | colspan="6" width="571" valign="top" | | ||
Action (processing way) type definition | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
��� | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
1 | 1 | ||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Deletes this header | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
2 | 2 | ||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Increases this Header, the value is replace | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
3 | 3 | ||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
For uses in exchange replace to replace the character string which match (match_url) matches<br /> (Also uses in article article of $FILESTART, the document tail $FILEEND pattern) | |||
|- | |- | ||
| colspan="6" width="571" valign="top" | | | colspan="6" width="571" valign="top" | | ||
PostAction (processing way) type definition | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
��� | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
1 | 1 | ||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
No longer processes similar filter | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
2 | 2 | ||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Closes the current connection | |||
|- | |- | ||
| width="571" valign="top" | | | width="571" valign="top" | | ||
3 | 3 | ||
| width="180" valign="top" | | | width="180" valign="top" | | ||
<center> | <center>-</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="45" valign="top" | | | width="45" valign="top" | | ||
<center> | <center>�</center> | ||
| width="265" valign="top" | | | width="265" valign="top" | | ||
Returns to the return character string, the closure current connection | |||
|} | |} | ||
=== | ===Function grammar=== | ||
{| cellspacing="1" cellpadding="5" | {| cellspacing="1" cellpadding="5" | ||
| width="199" valign="top" | | | width="199" valign="top" | | ||
Essential character | |||
| width="369" valign="top" | | | width="369" valign="top" | | ||
Meaning | |||
|- | |- | ||
| width="199" valign="top" | | | width="199" valign="top" | | ||
$ | $keywords (LISTNAME) | ||
| width="369" valign="top" | | | width="369" valign="top" | | ||
The essential character which assigns for the parenthesis in tabulates the content the content replace.<br /> LISTNAME is the name which this essential character tabulates (blacklist whitelist is system retention name, if filter entrusts with heavy responsibility this name by filter from definition is) | |||
|- | |- | ||
| width="199" valign="top" | | | width="199" valign="top" | | ||
$ | $base64 (string) | ||
| width="369" valign="top" | | | width="369" valign="top" | | ||
Explained the parenthesis interior the content is passes through base64 encoded, when use needs to decode. | |||
|- | |- | ||
| width="199" valign="top" | | | width="199" valign="top" | | ||
$ | $str (string) | ||
| width="369" valign="top" | | | width="369" valign="top" | | ||
Uses for to express string is in a html character string, namely around string possibly is "", ' ', or around for is spatial. | |||
|- | |- | ||
| width="199" valign="top" | | | width="199" valign="top" | | ||
$ | $filecontent (string) | ||
| width="369" valign="top" | | | width="369" valign="top" | | ||
Reads takes the document (string) the content to replace this string. Only uses in replace. | |||
|- | |- | ||
| width="199" valign="top" | | | width="199" valign="top" | | ||
$ | $tag (string) | ||
| width="369" valign="top" | | | width="369" valign="top" | | ||
Gains < string href= similar "#" >... the </a> mark, including <string href= "#" > has not closed the mark. Only uses in Bound | |||
|} | |} | ||
== | ==Attaches: The regular expression (Regular Expression) explained== | ||
=== | ===Basic grammar=== | ||
<center> | <center> | ||
Ligne 348 : | Ligne 350 : | ||
<center>/pattern/</center> | <center>/pattern/</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Finally | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>.</center> | <center>.</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Match except "\n" outside any single character. Must match including '\n' any character, please use looks like ' [. \n ] the ' pattern. | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>[ ]</center> | <center>[ ]</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Assigns a character class, matches in the square brackets the free character. Example: [ abc ] matches "a", "b" or "c". | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>^</center> | <center>^</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
If ^ appears in the character class start place, it denied the character class, this by negative character class match abatement square brackets in character character. For example: [ ^abc ] matches besides "a", "b" and the "c" character. If ^ appears in front of the regular expression, it matches the input the opening, the example: ^ [ abc ] matches by "a", the input which "b" or "c" begins. | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>$</center> | <center>$</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Puts in the regular expression final, it matches the input the terminal. For example: [ 0-9 ] $ match input last numeral. | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>-</center> | <center>-</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
In the character class, assigns a character the scope. For example: [ 0-9 ] matches "0" to the "9" numeral. | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>?</center> | <center>?</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Front match sub- expression ��or. For example, "do (es)?" May match "do" or in "does" "do". ? Equally in value to {0,1}. | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>+</center> | <center>+</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Front match sub- expression or many times. For example, 'zo+' can match "zo" as well as "zoo", but cannot match "z". + Equally in value to {1,}. | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center><nowiki>*</nowiki></center> | <center><nowiki>*</nowiki></center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Front match sub- expression ��or many times. For example, zo* can match "z" as well as "zoo". * Equally in value to {0,}. | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>?? | <center>? ? +? *? {n}? {n,}? {n, m}?</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
? | ? + * {n}, {n,}, {n, m} the non- greedy match edition, they match less characters as far as possible; But? + * {n}, {n,}, {n, m} is the greedy edition, matches more characters as far as possible. For example: Inputs "<abc><def>", then <. *? > Matches "<abc>", but <. *> matches "<abc><def>". | ||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>( )</center> | <center>()</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Grouping instruction character. For example: (\d+) *\d+ matches a string by the comma separated numeral, for example: "1" or "1,.23,456 million". | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>(pattern)</center> | <center>(pattern)</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Matches pattern and gains this match. Gains the match may from the Matches set which produces obtain | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>(?:pattern)</center> | <center>(? :pattern)</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
Matches pattern but not to gain the match result, in other words this is a non- gain match, will not carry on the memory to use for later. This is using "or the" character (|) combines a pattern each part is very useful. For example, 'industr (? :y|ies) is compared to a 'industry|industries' briefer expression. | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>(?=pattern)</center> | <center>(? =pattern)</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
To is looking up in advance, in any matches pattern the character string start place match search character string. This is a non- gain match, in other words, this match will not need to gain for later uses. For example, 'Windows (? =95|98|NT|2000) ' can match in "Windows 2,000" "Windows", but cannot match in "Windows 3.1" "Windows". Looks up in advance does not consume the character, in other words, occurs after a match, after last match starts the search immediately which next time matches, but is not after the character which contains looks up in advance starts. | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>(?! | <center>(? ! Pattern)</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
The negative direction looks up in advance, in any does not match pattern the character string start place match search character string. This is a non- gain match, in other words, this match will not need to gain for later uses. For example 'Windows (? ! 95|98|NT|2000) ' can match in "Windows 3.1" "Windows", but cannot match in "Windows 2,000" "Windows". Looks up in advance does not consume the character, in other words, occurs after a match, after last match starts the search immediately which next time matches, but is not after the character which contains looks up in advance starts | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>\</center> | <center>\</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
�� the character, �� follows close on character. For example, [ 0-9 ] + matches or many numerals, but [ 0-9 ] \+ matches a digital heel along with a plus sign situation.<br /> Counter- slanting bar \ also uses in to indicate condenses, \a expresses any numeral, the letter.<br /> If after \ follows close on digital n, then its �� n match group group (from 0 starts), for example, < {. *?} . *? </\0> matches "<head>Contents</head>". The attention, in the C++ character string, counter- slanting bar \ needs to use pair of counter- slanting bar \\ to indicate that, "\\+", "\\a", "< {. *?} . *? </\\0> ". | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center><nowiki>|</nowiki></center> | <center><nowiki>|</nowiki></center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
The gap symbol, separates two expressions, to correctly matches, for example: T|the matches "The" or "the". | |||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>{n}</center> | <center>{n}</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
n | N is a non- negative integer. Match definite n. For example, 'o {2} ' cannot match in "Bob" 'o', but can match in "food" two o. | ||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>{n,}</center> | <center>{n,}</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
n | N is a non- negative integer. At least matches n time. For example, 'o {2,} ' cannot match in "Bob" 'o', but can match in "foooood" all o. 'o {1,} ' equally in value to 'o+'. 'o {0,} ' then equally in value to 'o*'. | ||
|- | |- | ||
| width="103" valign="top" | | | width="103" valign="top" | | ||
<center>{n,m}</center> | <center>{n, m}</center> | ||
| width="465" valign="top" | | | width="465" valign="top" | | ||
M and n are the non- negative integer, n <= m. Least matches n to hesitate to go forward most matches m time. "o {1,3}" will match in "fooooood" first three o. 'o {0,1} ' equally in value to 'o?' The G � (14) � � Chinese lotus root earth reef � � between cannot have the blank space. | |||
|} | |} | ||
</center> | </center> | ||
=== | ===Abbreviation grammar=== | ||
<center> | <center> | ||
Ligne 454 : | Ligne 456 : | ||
{| border="1" | {| border="1" | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
Model | |||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Explanation | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\a | \a | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Letter, numeral ([ a-zA-Z0-9 ]) | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\b | \b | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Blank space (blank): ([ \\t ]) | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\B | \B | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Non- blank space character | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\c | \c | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Letter ([ a-zA-Z ]) | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\cx | \cx | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
The match by the control character which x indicates. For example, \M matches Control-M or the carriage return symbol. X value must be A-Z or a-z one. Otherwise, regards as c a primary meaning the 'c' character. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\d | \d | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Decimal digit ([ 0-9 ]) | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\D | \D | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches a non- alphanumeric character. Equally in value to [ ^0-9 ]. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\f | \f | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches a form feed symbol. Equally in value to \x0c and \L. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\h | \h | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Sexadecimal number ([ 0-9a-fA-F ]) | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\n | \n | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Line feeds: (\r| (\r? \n)) | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\num | \num | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches num, num is a positive integer. To match quotation which gains. For example, ' (.) 1' matches two continual same characters. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\r | \r | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches a carriage return symbol. Equally in value to \x0d and \M. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\s | \s | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches any blank character, including blank space, scheduling symbol, form feed symbol and so on. Equally in value to [ \f\n\r\t\v ]. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\S | \S | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches any non- blank character. Equally in value to [ ^ \f\n\r\t\v ]. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\t | \t | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches a scheduling symbol. Equally in value to \x09 and \I. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\v | \v | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches a vertical scheduling symbol. Equally in value to \x0b and \K. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\q | \q | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
<nowiki> | <nowiki>Quotation character string (\ "[ ^\" ] *\") | (\'''' [ ^\'''' ] *\'''')</nowiki> | ||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\un | \un | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches n, n is uses four hexadecimal systems digital presentation the Unicode character. For example, \u00A9 match copyright mark (?) � | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\w | \w | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Match any word character which draws a line including under. Equally in value to ' [ A-Za-z0-9_ ] '. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\W | \W | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches any non- word character. Equally in value to ' [ ^A-Za-z0-9_ ] ' | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\xn | \xn | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
Matches n, n is the hexadecimal system �� value. The hexadecimal system �� value must be the definite two numbers word length. For example, '\x41' matches "A". '\x041' then equally in value to '\x04' & "1". The regular expression in the formula may use ASCII to code. | |||
|- | |- | ||
| width="115" valign="top" | | | width="115" valign="top" | | ||
\z | \z | ||
| width="432" valign="top" | | | width="432" valign="top" | | ||
An integer ([ 0-9 ] +) | |||
|} | |} | ||
Version du 7 septembre 2006 à 08:10
Maxthon Browser Custom Filter Reference
Version: 2.0.1
Last Modified: 2006-07-17 5:42 PM
Overview
The new filter system of Maxthon Browser 2.0 can be customized.
Custom Filter Proprties
The INI File is where you instruct Maxthon how to process your skin files. You can build your own skin by following the guide of this section or by modifying an exist skin.
Attribute: �� may elect � to have - not to have
|
|
|
|
| |
Name |
|
Project name | |||
Type |
|
Project type (text, url, requestheader, responseheader) | |||
Action |
|
The processing way, sees the action type definition | |||
Postaction |
|
Later period processing way. Sees the postaction type definition | |||
Priority |
|
The project priority, is bigger than zero the integer, a value bigger priority is higher (0 ~ 999) | |||
Enable |
|
Whether this project does begin using. Value: 1 (begins using), 0 (is durable). Lacks the province is 0 | |||
Header |
|
|
|
|
Must match Header Name |
Match_url |
|
|
|
|
URL match string |
Exclude_url |
|
|
|
|
The URL exception (conforms to this string not to filter) |
Bound |
|
|
|
|
Uses in to search match the scope match string |
Max_bound_size |
|
|
|
|
Bound biggest match scope (maximum value 2,048) |
Match |
|
|
|
|
Text match string |
Match_count |
|
|
|
|
Each page match number of times limit |
Exclude |
|
|
|
|
The match exception (conforms to this string not to filter) |
Replace |
|
|
|
|
Uses in character string which replaces |
Return |
|
|
|
|
Returns to this character string to give the browser |
Action (processing way) type definition | |||||
|
|
|
|
��� | |
1 |
|
|
|
|
Deletes this header |
2 |
|
|
|
|
Increases this Header, the value is replace |
3 |
|
|
|
|
For uses in exchange replace to replace the character string which match (match_url) matches |
PostAction (processing way) type definition | |||||
|
|
|
|
��� | |
1 |
|
|
|
|
No longer processes similar filter |
2 |
|
|
|
|
Closes the current connection |
3 |
|
|
|
|
Returns to the return character string, the closure current connection |
Function grammar
Essential character |
Meaning |
$keywords (LISTNAME) |
The essential character which assigns for the parenthesis in tabulates the content the content replace. |
$base64 (string) |
Explained the parenthesis interior the content is passes through base64 encoded, when use needs to decode. |
$str (string) |
Uses for to express string is in a html character string, namely around string possibly is "", ' ', or around for is spatial. |
$filecontent (string) |
Reads takes the document (string) the content to replace this string. Only uses in replace. |
$tag (string) |
Gains < string href= similar "#" >... the </a> mark, including <string href= "#" > has not closed the mark. Only uses in Bound |
Attaches: The regular expression (Regular Expression) explained
Basic grammar
|
Finally |
|
Match except "\n" outside any single character. Must match including '\n' any character, please use looks like ' [. \n ] the ' pattern. |
|
Assigns a character class, matches in the square brackets the free character. Example: [ abc ] matches "a", "b" or "c". |
|
If ^ appears in the character class start place, it denied the character class, this by negative character class match abatement square brackets in character character. For example: [ ^abc ] matches besides "a", "b" and the "c" character. If ^ appears in front of the regular expression, it matches the input the opening, the example: ^ [ abc ] matches by "a", the input which "b" or "c" begins. |
|
Puts in the regular expression final, it matches the input the terminal. For example: [ 0-9 ] $ match input last numeral. |
|
In the character class, assigns a character the scope. For example: [ 0-9 ] matches "0" to the "9" numeral. |
|
Front match sub- expression ��or. For example, "do (es)?" May match "do" or in "does" "do". ? Equally in value to {0,1}. |
|
Front match sub- expression or many times. For example, 'zo+' can match "zo" as well as "zoo", but cannot match "z". + Equally in value to {1,}. |
|
Front match sub- expression ��or many times. For example, zo* can match "z" as well as "zoo". * Equally in value to {0,}. |
|
? + * {n}, {n,}, {n, m} the non- greedy match edition, they match less characters as far as possible; But? + * {n}, {n,}, {n, m} is the greedy edition, matches more characters as far as possible. For example: Inputs "<abc><def>", then <. *? > Matches "<abc>", but <. *> matches "<abc><def>". |
|
Grouping instruction character. For example: (\d+) *\d+ matches a string by the comma separated numeral, for example: "1" or "1,.23,456 million". |
|
Matches pattern and gains this match. Gains the match may from the Matches set which produces obtain |
|
Matches pattern but not to gain the match result, in other words this is a non- gain match, will not carry on the memory to use for later. This is using "or the" character (|) combines a pattern each part is very useful. For example, 'industr (? :y|ies) is compared to a 'industry|industries' briefer expression. |
|
To is looking up in advance, in any matches pattern the character string start place match search character string. This is a non- gain match, in other words, this match will not need to gain for later uses. For example, 'Windows (? =95|98|NT|2000) ' can match in "Windows 2,000" "Windows", but cannot match in "Windows 3.1" "Windows". Looks up in advance does not consume the character, in other words, occurs after a match, after last match starts the search immediately which next time matches, but is not after the character which contains looks up in advance starts. |
|
The negative direction looks up in advance, in any does not match pattern the character string start place match search character string. This is a non- gain match, in other words, this match will not need to gain for later uses. For example 'Windows (? ! 95|98|NT|2000) ' can match in "Windows 3.1" "Windows", but cannot match in "Windows 2,000" "Windows". Looks up in advance does not consume the character, in other words, occurs after a match, after last match starts the search immediately which next time matches, but is not after the character which contains looks up in advance starts |
|
�� the character, �� follows close on character. For example, [ 0-9 ] + matches or many numerals, but [ 0-9 ] \+ matches a digital heel along with a plus sign situation. |
|
The gap symbol, separates two expressions, to correctly matches, for example: T|the matches "The" or "the". |
|
N is a non- negative integer. Match definite n. For example, 'o {2} ' cannot match in "Bob" 'o', but can match in "food" two o. |
|
N is a non- negative integer. At least matches n time. For example, 'o {2,} ' cannot match in "Bob" 'o', but can match in "foooood" all o. 'o {1,} ' equally in value to 'o+'. 'o {0,} ' then equally in value to 'o*'. |
|
M and n are the non- negative integer, n <= m. Least matches n to hesitate to go forward most matches m time. "o {1,3}" will match in "fooooood" first three o. 'o {0,1} ' equally in value to 'o?' The G � (14) � � Chinese lotus root earth reef � � between cannot have the blank space. |
Abbreviation grammar
Model |
Explanation |
\a |
Letter, numeral ([ a-zA-Z0-9 ]) |
\b |
Blank space (blank): ([ \\t ]) |
\B |
Non- blank space character |
\c |
Letter ([ a-zA-Z ]) |
\cx |
The match by the control character which x indicates. For example, \M matches Control-M or the carriage return symbol. X value must be A-Z or a-z one. Otherwise, regards as c a primary meaning the 'c' character. |
\d |
Decimal digit ([ 0-9 ]) |
\D |
Matches a non- alphanumeric character. Equally in value to [ ^0-9 ]. |
\f |
Matches a form feed symbol. Equally in value to \x0c and \L. |
\h |
Sexadecimal number ([ 0-9a-fA-F ]) |
\n |
Line feeds: (\r| (\r? \n)) |
\num |
Matches num, num is a positive integer. To match quotation which gains. For example, ' (.) 1' matches two continual same characters. |
\r |
Matches a carriage return symbol. Equally in value to \x0d and \M. |
\s |
Matches any blank character, including blank space, scheduling symbol, form feed symbol and so on. Equally in value to [ \f\n\r\t\v ]. |
\S |
Matches any non- blank character. Equally in value to [ ^ \f\n\r\t\v ]. |
\t |
Matches a scheduling symbol. Equally in value to \x09 and \I. |
\v |
Matches a vertical scheduling symbol. Equally in value to \x0b and \K. |
\q |
Quotation character string (\ "[ ^\" ] *\") | (\'''' [ ^\'''' ] *\'''') |
\un |
Matches n, n is uses four hexadecimal systems digital presentation the Unicode character. For example, \u00A9 match copyright mark (?) � |
\w |
Match any word character which draws a line including under. Equally in value to ' [ A-Za-z0-9_ ] '. |
\W |
Matches any non- word character. Equally in value to ' [ ^A-Za-z0-9_ ] ' |
\xn |
Matches n, n is the hexadecimal system �� value. The hexadecimal system �� value must be the definite two numbers word length. For example, '\x41' matches "A". '\x041' then equally in value to '\x04' & "1". The regular expression in the formula may use ASCII to code. |
\z |
An integer ([ 0-9 ] +) |