mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
this fixes #315
This commit is contained in:
parent
8ddf1f4b47
commit
2d5d1fb66c
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue