mirror of https://github.com/gorhill/uBlock.git
Add ability to decode base64 in `urlskip=`
Related case: https://github.com/uBlockOrigin/uAssets/issues/25467 New step: `-base64` Purpose: to decode base64-encoded output of previous step
This commit is contained in:
parent
7f117e8d21
commit
e81e70937f
|
@ -5441,6 +5441,11 @@ function urlSkip(urlin, steps) {
|
||||||
urlin = urlout = `https://${s}`;
|
urlin = urlout = `https://${s}`;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// Decode base64
|
||||||
|
if ( step === '-base64' ) {
|
||||||
|
urlin = urlout = self.atob(urlin);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// Unknown directive
|
// Unknown directive
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue