1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00
This commit is contained in:
gorhill 2014-10-13 09:47:18 -04:00
parent 8ddf1f4b47
commit 2d5d1fb66c

View File

@ -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 });
}
}
break;
case 'img':
v = elem.getAttribute('alt');