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:
Raymond Hill 2024-09-29 10:51:56 -04:00
parent 7f117e8d21
commit e81e70937f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 5 additions and 0 deletions

View File

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