Skip to content

Commit

Permalink
Merge pull request #46 from SaiCode-DEV:master
Browse files Browse the repository at this point in the history
Skipping first Login Dialog
  • Loading branch information
mapomatic authored Jul 28, 2024
2 parents 29b97fd + ba9c7b5 commit 51a04a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions WME ClickSaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,11 +1043,19 @@
logDebug('Initialized');
}

function skipLoginDialog() {
if(!W.loginManager || W.loginManager.isLoggedIn()) {
return;
}
$('wz-button.do-login')?.click();
}

function bootstrap() {
if (typeof W === 'object' && W.userscripts?.state.isReady) {
init();
} else {
logDebug('Bootstrap failed. Trying again...');
skipLoginDialog();
setTimeout(bootstrap, 250);
}
}
Expand Down

0 comments on commit 51a04a7

Please sign in to comment.