Skip to content

Commit

Permalink
Add ability to decode base64 in urlskip=
Browse files Browse the repository at this point in the history
Related case:
uBlockOrigin/uAssets#25467

New step: `-base64`
Purpose: to decode base64-encoded output of previous step
  • Loading branch information
gorhill committed Sep 29, 2024
1 parent 7f117e8 commit e81e709
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/static-net-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e81e709

Please sign in to comment.