« Les filtres personnalisés de Maxthon v2.0 » : différence entre les versions

De Wiki Francophone de Maxthon
Ldfa (discussion | contributions)
Aucun résumé des modifications
Ldfa (discussion | contributions)
Aucun résumé des modifications
 
(4 versions intermédiaires par le même utilisateur non affichées)
Ligne 19 : Ligne 19 :
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.
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
Attribute: ○ may elect √ to have not to have


{| cellspacing="1" cellpadding="5"
{| cellspacing="1" cellpadding="5" border="1"
| width="180" valign="top" |
| width="180" valign="top" |
<center>TXT</center>
<center>TXT</center>
Ligne 78 : Ligne 78 :
Header
Header
| width="180" valign="top" |
| width="180" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center></center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center></center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Must match Header Name
Must match Header Name
Ligne 91 : Ligne 91 :
Match_url
Match_url
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
URL match string
URL match string
Ligne 104 : Ligne 104 :
Exclude_url
Exclude_url
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
The URL exception (conforms to this string not to filter)
The URL exception (conforms to this string not to filter)
Ligne 117 : Ligne 117 :
Bound
Bound
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Uses in to search match the scope match string
Uses in to search match the scope match string
Ligne 130 : Ligne 130 :
Max_bound_size
Max_bound_size
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</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
Bound biggest match scope (maximum value 2,048)<br /> Lacks the province value is the maximum value
Ligne 143 : Ligne 143 :
Match
Match
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Text match string
Text match string
Ligne 156 : Ligne 156 :
Match_count
Match_count
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Each page match number of times limit
Each page match number of times limit
Ligne 169 : Ligne 169 :
Exclude
Exclude
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
The match exception (conforms to this string not to filter)
The match exception (conforms to this string not to filter)
Ligne 182 : Ligne 182 :
Replace
Replace
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Uses in character string which replaces
Uses in character string which replaces
Ligne 195 : Ligne 195 :
Return
Return
| width="180" valign="top" |
| width="180" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Returns to this character string to give the browser
Returns to this character string to give the browser
Ligne 209 : Ligne 209 :
|-
|-
| width="571" valign="top" |
| width="571" valign="top" |
0
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
&#0;&#0;&#0;
&#0;&#0;&#0;
Ligne 223 : Ligne 224 :
1
1
| width="180" valign="top" |
| width="180" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Deletes this header
Deletes this header
Ligne 236 : Ligne 237 :
2
2
| width="180" valign="top" |
| width="180" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Increases this Header, the value is replace
Increases this Header, the value is replace
Ligne 249 : Ligne 250 :
3
3
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</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)
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)
Ligne 263 : Ligne 264 :
|-
|-
| width="571" valign="top" |
| width="571" valign="top" |
0
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
&#0;&#0;&#0;
&#0;&#0;&#0;
Ligne 277 : Ligne 279 :
1
1
| width="180" valign="top" |
| width="180" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
No longer processes similar filter
No longer processes similar filter
Ligne 290 : Ligne 292 :
2
2
| width="180" valign="top" |
| width="180" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Closes the current connection
Closes the current connection
Ligne 303 : Ligne 305 :
3
3
| width="180" valign="top" |
| width="180" valign="top" |
<center>-</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="45" valign="top" |
| width="45" valign="top" |
<center>&#0;</center>
<center></center>
| width="265" valign="top" |
| width="265" valign="top" |
Returns to the return character string, the closure current connection
Returns to the return character string, the closure current connection
Ligne 316 : Ligne 318 :
===Function grammar===
===Function grammar===


{| cellspacing="1" cellpadding="5"
{| cellspacing="1" cellpadding="5" border="1"
| width="199" valign="top" |
| width="199" valign="top" |
Essential character
Essential character

Dernière version du 19 septembre 2006 à 13:24

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

TXT
URL
REQ
RESP
Explanation

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)
Lacks the province value is the maximum value

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

&#0;&#0;&#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
(Also uses in article article of $FILESTART, the document tail $FILEEND pattern)

PostAction (processing way) type definition

0

&#0;&#0;&#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.
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)

$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

/pattern/

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 &#0;&#0;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 &#0;&#0;or many times. For example, zo* can match "z" as well as "zoo". * Equally in value to {0,}.

? ? +? *? {n}? {n,}? {n, m}?

? + * {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".

(pattern)

Matches pattern and gains this match. Gains the match may from the Matches set which produces obtain

(? :pattern)

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.

(? =pattern)

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.

(? ! Pattern)

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

\

&#0;&#0; the character, &#0;&#0; 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.
Counter- slanting bar \ also uses in to indicate condenses, \a expresses any numeral, the letter.
If after \ follows close on digital n, then its &#0;&#0; 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> ".

|

The gap symbol, separates two expressions, to correctly matches, for example: T|the matches "The" or "the".

{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.

{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*'.

{n, m}

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 &#0; (14) &#0; &#0; Chinese lotus root earth reef &#0; &#0; 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 (?) &#0;

\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 &#0;&#0; value. The hexadecimal system &#0;&#0; 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 ] +)


Base de connaissances de Maxthon 2.0