mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 10:09:38 +02: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');
|
||||
if ( v ) {
|
||||
v = v.replace(/\?.*$/, '');
|
||||
if ( v.length ) {
|
||||
attributes.push({ k: 'href', v: v });
|
||||
}
|
||||
}
|
||||
attributes.push({ k: 'href', v: v });
|
||||
break;
|
||||
case 'img':
|
||||
v = elem.getAttribute('alt');
|
||||
|
Loading…
Reference in New Issue
Block a user