Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/geoffreylitt/wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Quaye committed Apr 28, 2020
2 parents e91c3e3 + 3be8a4c commit 09048a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/site_adapters/airbnb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { createDomScrapingAdapter } from "./domScrapingBase"

const rowContainerClass = "_fhph4u"
const rowClass = "_8ssblpx"
const titleClass = "_1c2n35az"
const titleClass = "_1jbo9b6h"
const priceClass = "_1p7iugi"
const ratingClass = "_10fy1f8"
const ratingClass = "_3zgr580"
const listingLinkClass = "_i24ijs"

const AirbnbAdapter = createDomScrapingAdapter({
Expand Down
2 changes: 1 addition & 1 deletion src/site_adapters/youtube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const YoutubeAdapter = createDomScrapingAdapter({
if(el.querySelector('#video-title-link') !== null && el.querySelector('#overlays') != null && el.querySelector('#overlays').children[0] != null){

let overlayChildrenAmount = el.querySelector('#overlays').children.length;
let timeStampExists = el.querySelector('#overlays').children[overlayChildrenAmount - 2].children[1] !== undefined;
let timeStampExists = overlayChildrenAmount > 1 && el.querySelector('#overlays').children[overlayChildrenAmount - 2].children[1] !== undefined;
let timeStamp = timeStampExists
? el.querySelector('#overlays').children[overlayChildrenAmount - 2].children[1].textContent.replace((/ |\r\n|\n|\r/gm),"")
: "N/A";
Expand Down
2 changes: 1 addition & 1 deletion src/ui/WcPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Panel = styled.div`
left: 0;
height: ${props => props.hidden ? 0 : 280}px;
width: 98vw;
z-index: 100;
z-index: 3000;
box-shadow: 0px -5px 10px 1px rgba(170,170,170,0.5);
border-top: solid thin #9d9d9d;
Expand Down

0 comments on commit 09048a0

Please sign in to comment.