Skip to content

Patched version of code #2

@Henry-VI

Description

@Henry-VI

Putting this in an issue for people to find since I couldn't be bothered to make a pull request. Here's a version that's been updated for the newest version of Quizlet. Have fun.

const settings = {
  pairs: ``,
  score: 1400
};

let p = settings.pairs.split(`\n`);
let pause = settings.pause
for (let i = 0; i < p.length; i++) {
  p[i] = p[i].split(`\t`); // if you're manually inputting things, replace `\t` with `  `
}


document.querySelector(`.bvbv8re`).click() // start button

const c = (x, t, i) => {
  try {
    const e = document.querySelector(`div[aria-label="${x}"]`);
    if (e) {
      setTimeout(() => {
        e.click();
      }, t);
    }
    return t + i;
  } catch {
    return t;
  }
}

let t = 0
setTimeout(() => {p.forEach((a) => {
  t = c(a[1], c(a[0], t, 49), (7 * settings.score - 1700 - 49 * 42) / 36);
})}, 10);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions