Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
updated story
Browse files Browse the repository at this point in the history
  • Loading branch information
AppleGamer22 committed Feb 25, 2021
1 parent fe91546 commit d146615
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ export async function detectFiles(browser: Browser, page: Page, user: string, it
alert(`Failed to find ${user}'s story feed.`, "danger");
await browser.close();
}
if (await page.waitForSelector("button._42FBe", {visible: true})) {
await page.click("button._42FBe")
await page.waitForSelector("header")
if ((await page.$("button.sqdOP.L3NKy.y1rQx.cB_4K")) !== null) {
await page.click("button.sqdOP.L3NKy.y1rQx.cB_4K");
}
for (var i = 0; i < item - 1; i += 1) {
await page.waitForSelector("div.coreSpriteRightChevron", {visible: true});
Expand Down

0 comments on commit d146615

Please sign in to comment.