mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 09:09:38 +02:00
support font
request type
This commit is contained in:
parent
ccaa674a34
commit
bc83836a7b
@ -87,7 +87,7 @@ return {
|
||||
|
||||
// read-only
|
||||
systemSettings: {
|
||||
compiledMagic: 'perhodsoahya',
|
||||
compiledMagic: 'cjrthpvolupa',
|
||||
selfieMagic: 'spqmeuaftfra'
|
||||
},
|
||||
|
||||
|
@ -62,7 +62,8 @@ var typeNameToTypeValue = {
|
||||
'script': 4 << 4,
|
||||
'xmlhttprequest': 5 << 4,
|
||||
'sub_frame': 6 << 4,
|
||||
'other': 7 << 4,
|
||||
'font': 7 << 4,
|
||||
'other': 8 << 4,
|
||||
'cosmetic-filtering': 13 << 4,
|
||||
'inline-script': 14 << 4,
|
||||
'popup': 15 << 4
|
||||
@ -1194,8 +1195,8 @@ FilterParser.prototype.toNormalizedType = {
|
||||
'script': 'script',
|
||||
'xmlhttprequest': 'xmlhttprequest',
|
||||
'subdocument': 'sub_frame',
|
||||
'font': 'font',
|
||||
'other': 'other',
|
||||
'document': 'main_frame',
|
||||
'elemhide': 'cosmetic-filtering',
|
||||
'inline-script': 'inline-script',
|
||||
'popup': 'popup'
|
||||
@ -1296,14 +1297,6 @@ FilterParser.prototype.parseOptions = function(s) {
|
||||
this.unsupported = true;
|
||||
break;
|
||||
}
|
||||
if ( opt === 'document' ) {
|
||||
if ( this.action === BlockAction ) {
|
||||
this.parseOptType('document', false);
|
||||
continue;
|
||||
}
|
||||
this.unsupported = true;
|
||||
break;
|
||||
}
|
||||
if ( this.toNormalizedType.hasOwnProperty(opt) ) {
|
||||
this.parseOptType(opt, not);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user