mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00: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
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue