Skip to content

Commit

Permalink
Merge pull request #1175 from driedpampas/fix-letsboost
Browse files Browse the repository at this point in the history
fix: letsboost
  • Loading branch information
undeadjess authored Nov 26, 2023
2 parents 45d4136 + 3b79fcc commit 634fe6c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/bypasses/letsboost.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ import BypassDefinition from './BypassDefinition.js'

export default class Letsboost extends BypassDefinition {
constructor() {
super()
this.ensure_dom = true
super();
this.ensure_dom = true;
}

execute() {
const jsonDat = window.JSON.parse(stepDat);
this.helpers.safelyNavigate(jsonDat[jsonDat.length-1]["url"]);
alert("FastForward: If nothing happens in a few seconds, the bypass couldn't be executed. Please disable your ad blocker and refresh the page. Press OK to continue.");
this.helpers.insertInfoBox("If nothing happens in a few seconds, the bypass couldn't be executed. Please disable your ad blocker and refresh the page.");
this.helpers.awaitElement("script:last-of-type:not([src])", () => {
const lastScript = document.getElementsByTagName('script')[document.getElementsByTagName('script').length - 1];
const scriptContent = lastScript.innerHTML;
const jsonDat = JSON.parse(scriptContent.match(/stepDat = '(.*)';/)[1]);
const url = jsonDat[jsonDat.length-1]["url"];
this.helpers.safelyNavigate(url);
});
}
}

export const matches = ['letsboost.net']

export const matches = ['letsboost.net'];

0 comments on commit 634fe6c

Please sign in to comment.