Skip to content

Commit e81e709

Browse files
committed
Add ability to decode base64 in urlskip=
Related case: uBlockOrigin/uAssets#25467 New step: `-base64` Purpose: to decode base64-encoded output of previous step
1 parent 7f117e8 commit e81e709

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/js/static-net-filtering.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5441,6 +5441,11 @@ function urlSkip(urlin, steps) {
54415441
urlin = urlout = `https://${s}`;
54425442
continue;
54435443
}
5444+
// Decode base64
5445+
if ( step === '-base64' ) {
5446+
urlin = urlout = self.atob(urlin);
5447+
continue;
5448+
}
54445449
// Unknown directive
54455450
return;
54465451
}

0 commit comments

Comments
 (0)