mirror of https://github.com/gorhill/uBlock.git
this fixes #240
This commit is contained in:
parent
8262b9ec70
commit
0bd6e48563
|
@ -89,7 +89,7 @@ return {
|
|||
firstUpdateAfter: 5 * oneMinute,
|
||||
nextUpdateAfter: 7 * oneHour,
|
||||
|
||||
selfieMagic: 'hdnliuyxkoeg',
|
||||
selfieMagic: 'tgfnfcmhdqls',
|
||||
selfieAfter: 7 * oneMinute,
|
||||
|
||||
pageStores: {},
|
||||
|
|
|
@ -53,6 +53,19 @@ const FirstParty = 1 << 2;
|
|||
const ThirdParty = 2 << 2;
|
||||
const SpecificParty = 3 << 2;
|
||||
|
||||
var typeNameToTypeValue = {
|
||||
'any': 1 << 4,
|
||||
'stylesheet': 2 << 4,
|
||||
'image': 3 << 4,
|
||||
'object': 4 << 4,
|
||||
'script': 5 << 4,
|
||||
'xmlhttprequest': 6 << 4,
|
||||
'sub_frame': 7 << 4,
|
||||
'other': 8 << 4,
|
||||
'popup': 9 << 4
|
||||
};
|
||||
const AnyType = typeNameToTypeValue['any'];
|
||||
|
||||
const BlockAnyTypeAnyParty = BlockAction | AnyType | AnyParty;
|
||||
const BlockAnyType1stParty = BlockAction | AnyType | FirstParty;
|
||||
const BlockAnyType3rdParty = BlockAction | AnyType | ThirdParty;
|
||||
|
@ -69,19 +82,6 @@ const AllowAnyType = AllowAction | AnyType;
|
|||
const AllowAnyParty = AllowAction | AnyParty;
|
||||
const AllowOneParty = AllowAction | SpecificParty;
|
||||
|
||||
const AnyType = 1 << 4;
|
||||
|
||||
var typeNameToTypeValue = {
|
||||
'stylesheet': 2 << 4,
|
||||
'image': 3 << 4,
|
||||
'object': 4 << 4,
|
||||
'script': 5 << 4,
|
||||
'xmlhttprequest': 6 << 4,
|
||||
'sub_frame': 7 << 4,
|
||||
'other': 8 << 4,
|
||||
'popup': 9 << 4
|
||||
};
|
||||
|
||||
var pageHostname = '';
|
||||
|
||||
var reIgnoreEmpty = /^\s+$/;
|
||||
|
|
Loading…
Reference in New Issue