Skip to content

Commit

Permalink
fix: letsboost
Browse files Browse the repository at this point in the history
  • Loading branch information
driedpampas authored Oct 14, 2023
1 parent 98b201a commit 98e85d8
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/bypasses/letsboost.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,10 @@ export default class Letsboost extends BypassDefinition {
}

execute() {
const isChromeBasedBrowser = /Chrome/.test(navigator.userAgent);
if (isChromeBasedBrowser) {
this.helpers.insertInfoBox("If nothing happens, disable your ad blocker and refresh the page.");
}
try {
const jsonDat = JSON.parse(window.stepDat);
const url = jsonDat[jsonDat.length-1]["url"];
this.helpers.safelyNavigate(url);
} catch (error) {
this.helpers.insertInfoBox("We couldn't execute the bypass. Disable your ad blocker and refresh the page.");
}
const jsonDat = JSON.parse(window.stepDat);
const url = jsonDat[jsonDat.length-1]["url"];
this.helpers.safelyNavigate(url);
this.helpers.insertInfoBox("If nothing happens disable your ad blocker and refresh the page.");
}
}

Expand Down

0 comments on commit 98e85d8

Please sign in to comment.