mirror of https://github.com/gorhill/uBlock.git
Merge changes from master
This commit is contained in:
commit
d8674d8abe
|
@ -3,10 +3,10 @@
|
||||||
"uBlock0@raymondhill.net": {
|
"uBlock0@raymondhill.net": {
|
||||||
"updates": [
|
"updates": [
|
||||||
{
|
{
|
||||||
"version": "1.17.5.103",
|
"version": "1.17.5.104",
|
||||||
"applications": { "gecko": { "strict_min_version": "52" } },
|
"applications": { "gecko": { "strict_min_version": "52" } },
|
||||||
"update_info_url": "https://github.com/gorhill/uBlock/releases/tag/1.17.5rc3",
|
"update_info_url": "https://github.com/gorhill/uBlock/releases/tag/1.17.5rc4",
|
||||||
"update_link": "https://github.com/gorhill/uBlock/releases/download/1.17.5rc3/uBlock0_1.17.5rc3.firefox.signed.xpi"
|
"update_link": "https://github.com/gorhill/uBlock/releases/download/1.17.5rc4/uBlock0_1.17.5rc4.firefox.signed.xpi"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.17.5.103
|
1.17.5.104
|
||||||
|
|
|
@ -1054,14 +1054,8 @@ FilterContainer.prototype.retrieveGenericSelectors = function(request) {
|
||||||
for ( let type in this.lowlyGeneric ) {
|
for ( let type in this.lowlyGeneric ) {
|
||||||
let entry = this.lowlyGeneric[type];
|
let entry = this.lowlyGeneric[type];
|
||||||
let selectors = request[entry.canonical];
|
let selectors = request[entry.canonical];
|
||||||
if ( typeof selectors !== 'string' ) { continue; }
|
if ( Array.isArray(selectors) === false ) { continue; }
|
||||||
let strEnd = selectors.length;
|
for ( let selector of selectors ) {
|
||||||
let sliceBeg = 0;
|
|
||||||
do {
|
|
||||||
let sliceEnd = selectors.indexOf('\n', sliceBeg);
|
|
||||||
if ( sliceEnd === -1 ) { sliceEnd = strEnd; }
|
|
||||||
let selector = selectors.slice(sliceBeg, sliceEnd);
|
|
||||||
sliceBeg = sliceEnd + 1;
|
|
||||||
if ( entry.simple.has(selector) === false ) { continue; }
|
if ( entry.simple.has(selector) === false ) { continue; }
|
||||||
let bucket = entry.complex.get(selector);
|
let bucket = entry.complex.get(selector);
|
||||||
if ( bucket !== undefined ) {
|
if ( bucket !== undefined ) {
|
||||||
|
@ -1080,7 +1074,7 @@ FilterContainer.prototype.retrieveGenericSelectors = function(request) {
|
||||||
simpleSelectors.add(selector);
|
simpleSelectors.add(selector);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while ( sliceBeg < strEnd );
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply exceptions: it is the responsibility of the caller to provide
|
// Apply exceptions: it is the responsibility of the caller to provide
|
||||||
|
|
Loading…
Reference in New Issue