1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00
This commit is contained in:
Raymond Hill 2018-11-06 17:22:09 -02:00
parent 346654a62d
commit 6d00583a50
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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;