mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 00:42:45 +01:00
this fixes #315
This commit is contained in:
parent
8ddf1f4b47
commit
2d5d1fb66c
@ -424,8 +424,10 @@ var cosmeticFilterFromElement = function(elem, out) {
|
|||||||
v = elem.getAttribute('href');
|
v = elem.getAttribute('href');
|
||||||
if ( v ) {
|
if ( v ) {
|
||||||
v = v.replace(/\?.*$/, '');
|
v = v.replace(/\?.*$/, '');
|
||||||
|
if ( v.length ) {
|
||||||
|
attributes.push({ k: 'href', v: v });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
attributes.push({ k: 'href', v: v });
|
|
||||||
break;
|
break;
|
||||||
case 'img':
|
case 'img':
|
||||||
v = elem.getAttribute('alt');
|
v = elem.getAttribute('alt');
|
||||||
|
Loading…
Reference in New Issue
Block a user