mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-24 19:33:01 +01:00
fix blob: case as per feedback https://github.com/uBlockOrigin/uBlock-issues/issues/283#issuecomment-436371415
This commit is contained in:
parent
346654a62d
commit
6d00583a50
@ -512,6 +512,10 @@ var cosmeticFilterFromElement = function(elem) {
|
||||
if ( pos !== -1 ) {
|
||||
v = v.slice(0, pos + 1);
|
||||
}
|
||||
} else if ( v.startsWith('blob:') ) {
|
||||
v = new URL(v.slice(5));
|
||||
v.pathname = '';
|
||||
v = 'blob:' + v.href;
|
||||
}
|
||||
attributes.push({ k: 'src', v: v.slice(0, 256) });
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user