mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-22 02:12:44 +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
@ -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 New Issue
Block a user