Skip to content

Commit

Permalink
fix: letsboost
Browse files Browse the repository at this point in the history
  • Loading branch information
supernova authored Oct 14, 2023
1 parent af12447 commit e1f359f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/bypasses/letsboost.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,20 @@ export default class Letsboost extends BypassDefinition {
}

execute() {
const jsonDat = window.JSON.parse(window.stepDat);
const url = jsonDat[jsonDat.length-1]["url"];
this.helpers.safelyNavigate(url);
const jsonDat = (() => {
try {
return window.JSON.parse(window.stepDat);
} catch {
this.msgbox("We couldn't execute the bypass, please disable AdBlock and refresh the page.");
return null;
}
})();
if (jsonDat) {
const url = jsonDat[jsonDat.length-1]["url"];
this.helpers.safelyNavigate(url);
}
}

}

export const matches = ['letsboost.net']

0 comments on commit e1f359f

Please sign in to comment.