mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-12 18:04:16 +01:00
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
1 changed files with 5 additions and 0 deletions
|
@ -5441,6 +5441,11 @@ function urlSkip(urlin, steps) {
|
|||
urlin = urlout = `https://${s}`;
|
||||
continue;
|
||||
}
|
||||
// Decode base64
|
||||
if ( step === '-base64' ) {
|
||||
urlin = urlout = self.atob(urlin);
|
||||
continue;
|
||||
}
|
||||
// Unknown directive
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue