Les filtres personnalisés de Maxthon v2.0
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.
Vue d'ensemble
Le nouveau système de filtrage de Maxthon v2.0 est personnalisable.
Custom Filter Properties
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.
Propriétées de personnalisation des filtres
Le fichier INI est l'endroit où vous indiquez à Maxthon comment procéder avec vos fichiers de personnalisation. Vous pouvez créer vos propres fichiers de personnalisations en suivant le guide de cette section ou en modifiant un fichier personnalisé existant.
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 | |||||
0 |
|
|
|
|
��� |
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 | |||||
0 |
|
|
|
|
��� |
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 ] +) |