1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-06-29 01:03:32 +02:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Raymond Hill
3aaff8604d
Merge branch 'scripthunter' 2024-06-20 09:35:24 -04:00
Raymond Hill
47b985a056
Fix :matches-prop() operator when no value provided 2024-06-20 09:21:43 -04:00
scripthunter7
83aee4a516 Update subscription URL for hufilter 2024-06-20 10:48:09 +02:00
3 changed files with 7 additions and 3 deletions

View File

@ -634,7 +634,7 @@
"title": "🇭🇺hu: hufilter",
"tags": "ads hungarian",
"lang": "hu",
"contentURL": "https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-ublock.txt",
"contentURL": "https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter-ublock.txt",
"supportURL": "https://github.com/hufilter/hufilter"
},
"IDN-0": {

View File

@ -634,7 +634,7 @@
"title": "🇭🇺hu: hufilter",
"tags": "ads hungarian",
"lang": "hu",
"contentURL": "https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-ublock.txt",
"contentURL": "https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter-ublock.txt",
"supportURL": "https://github.com/hufilter/hufilter"
},
"IDN-0": {

View File

@ -188,7 +188,11 @@ class PSelectorMatchesPropTask extends PSelectorTask {
if ( value === null ) { return; }
value = value[prop];
}
if ( this.reValue !== null && this.reValue.test(value) === false ) { return; }
if ( this.reValue === null ) {
if ( value === undefined ) { return; }
} else if ( this.reValue.test(value) === false ) {
return;
}
output.push(node);
}
}