Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Chickensoupwithrice committed Sep 14, 2023
1 parent 659f505 commit 2d51cab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/site/facebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Q = {
commentMoreComments: "./following-sibling::div/div/div[2][@role='button'][./span/span]",
viewComments: ".//h4/..//div[@role='button']",
photoCommentList: "//ul[../h2]",
firstPhotoThumbnail: '//*[@id="mount_0_0_4m"]/div/div[1]/div/div[3]/div/div/div/div[1]/div[1]/div/div/div[4]/div/div/div/div/div/div/div/div/div[3]/div[1]/div[1]/div/div/a',
firstPhotoThumbnail: "//*[@id=\"mount_0_0_4m\"]/div/div[1]/div/div[3]/div/div/div/div[1]/div[1]/div/div/div[4]/div/div/div/div/div/div/div/div/div[3]/div[1]/div[1]/div/div/a",
firstVideoThumbnail: "//div[@role='main']//div[contains(@style, 'z-index')]/following-sibling::div/div/div/div[last()]//a[contains(@href, '/videos/') and @aria-hidden!='true']",
firstVideoSimple: "//div[@role='main']//a[contains(@href, '/videos/') and @aria-hidden!='true']",
mainVideo: "//div[@data-pagelet='root']//div[@role='dialog']//div[@role='main']//video",
Expand Down Expand Up @@ -275,7 +275,7 @@ export class FacebookTimelineBehavior {
firstPhoto.click();
await sleep(waitUnit * 5);
await waitUntil(() => window.location.href !== lastHref, waitUnit * 2);
const firstPhotoHref = window.location.href;
const firstPhotoHref = window.location.href;

let nextSlideButton = null;

Expand All @@ -291,7 +291,7 @@ export class FacebookTimelineBehavior {
sleep(3000)
]);

// Exit once we've looped
// Exit once we've looped
if (window.location.href === firstPhotoHref) {
break;
}
Expand Down

0 comments on commit 2d51cab

Please sign in to comment.