Skip to content

Commit

Permalink
fix: use full XPath which doesn't change
Browse files Browse the repository at this point in the history
  • Loading branch information
Chickensoupwithrice committed Sep 14, 2023
1 parent 9ebc18d commit 55d91ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/site/facebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ 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",
firstVideoThumbnail: "//div[@role='main']//div[contains(@style, 'z-index')]/following-sibling::div/div/div/div[last()]//a[contains(@href, '/videos/') and @aria-hidden!='true']",
firstPhotoThumbnail: "/html/body/div[1]/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/img",
firstVideoSimple: "//div[@role='main']//a[contains(@href, '/videos/') and @aria-hidden!='true']",
mainVideo: "//div[@data-pagelet='root']//div[@role='dialog']//div[@role='main']//video",
nextVideo: "following::a[contains(@href, '/videos/') and @aria-hidden!='true']",
Expand Down

0 comments on commit 55d91ff

Please sign in to comment.