Skip to content

Commit

Permalink
v1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonChou committed Nov 11, 2021
2 parents 3de162e + 2782288 commit 46c6b35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twitter-media-harvest",
"version": "1.3.4",
"version": "1.3.5",
"description": "The easiest way to get media from twitter-timeline.",
"main": "./src/main.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "__MSG_appName__",
"short_name": "Twitter Media Harvest",
"description": "__MSG_appDesc__",
"version": "1.3.4",
"version": "1.3.5",
"minimum_chrome_version": "73",
"default_locale": "en",
"icons": {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const query = Object.freeze({
'div:nth-child(2) > div:nth-child(2) > div:nth-child(2) > div:nth-last-child(2) > div > div',
statusMediaWrapper:
'article > div > div > div > div:nth-child(3) > [class="css-1dbjc4n"] >\
[class="css-1dbjc4n"] > [class="css-1dbjc4n"]',
[class="css-1dbjc4n"]',
})

/**
Expand All @@ -75,7 +75,7 @@ export const articleHasMedia = article => {
if (mediaWrapper === null) return false

const checkContent = mediaContent => {
const magicLength = mediaContent.classList.length > 7
const magicLength = mediaContent.classList.length >= 2
const photoContent = select.exists(
'[role="link"][href*="photo"]',
mediaContent
Expand Down

0 comments on commit 46c6b35

Please sign in to comment.