JS: Accept some alerts

This commit is contained in:
Asger F
2025-02-21 20:33:43 +01:00
parent b734a3d804
commit 7c2394fab4
2 changed files with 4 additions and 4 deletions

View File

@@ -4,4 +4,4 @@ function getTaint() {
return window.name;
}
shell.openExternal(getTaint());
shell.openExternal(getTaint()); // $ Alert

View File

@@ -2,21 +2,21 @@ window.location = /.*redirect=([^&]*).*/.exec(document.location.href)[1]; // $ A
(function(){
var indirect = /.*redirect=([^&]*).*/;
window.location = indirect.exec(document.location.href)[1];
window.location = indirect.exec(document.location.href)[1]; // $ Alert
});
window.location = new RegExp('.*redirect=([^&]*).*').exec(document.location.href)[1]; // $ Alert
(function(){
var indirect = new RegExp('.*redirect=([^&]*).*')
window.location = indirect.exec(document.location.href)[1];
window.location = indirect.exec(document.location.href)[1]; // $ Alert
});
window.location = new RegExp(/.*redirect=([^&]*).*/).exec(document.location.href)[1]; // $ Alert
(function(){
var indirect = new RegExp(/.*redirect=([^&]*).*/)
window.location = indirect.exec(document.location.href)[1];
window.location = indirect.exec(document.location.href)[1]; // $ Alert
});
function foo(win) {