Skip to content
Permalink
Browse files

Fix IGTV & Stories bug

  • Loading branch information
mittya committed Feb 24, 2020
1 parent 2624183 commit f2a6ec8fc1ea5ae186c6abdfb893edc03685a836
Showing with 8 additions and 8 deletions.
  1. +1 −1 chrome/manifest.json
  2. +3 −3 chrome/script.js
  3. +1 −1 firefox/manifest.json
  4. +3 −3 firefox/script.js
@@ -4,7 +4,7 @@

"name": "__MSG_extName__",
"description": "__MSG_extDesc__",
"version": "1.14.0",
"version": "1.15.0",

"browser_action": {
"default_icon": {
@@ -42,7 +42,7 @@ if (window.location.pathname === '/') {
}

/* Detail page */
if (window.location.pathname.match('/p/')) {
if (window.location.pathname.match('/p/') || window.location.pathname.match('/tv/')) {
var _box_detail = '';

/*
@@ -171,7 +171,7 @@ function findMedia(box, way) {
// Stories Video: video 'if' in front of the image
if (_parent.querySelector('video')) {
_url = _parent.querySelector('video > source').src;
_username = _parent.parents('section')[0].querySelector('.FPmhX').text;
_username = _parent.parents('section')[0].querySelector('.FPmhX').title;

addBtn(_parent, _url, _username);

@@ -181,7 +181,7 @@ function findMedia(box, way) {
// Stories Picture
if (_parent.querySelector('img')) {
_url = _parent.querySelector('img').src;
_username = _parent.parents('section')[0].querySelector('.FPmhX').text;
_username = _parent.parents('section')[0].querySelector('.FPmhX').title;

addBtn(_parent, _url, _username);

@@ -10,7 +10,7 @@

"name": "Media Helper",
"description": "Easily download Instagram pictures and videos.",
"version": "1.14.0",
"version": "1.15.0",

"browser_action": {
"default_icon": {
@@ -42,7 +42,7 @@ if (window.location.pathname === '/') {
}

/* Detail page */
if (window.location.pathname.match('/p/')) {
if (window.location.pathname.match('/p/') || window.location.pathname.match('/tv/')) {
var _box_detail = '';

/*
@@ -171,7 +171,7 @@ function findMedia(box, way) {
// Stories Video: video 'if' in front of the image
if (_parent.querySelector('video')) {
_url = _parent.querySelector('video > source').src;
_username = _parent.parents('section')[0].querySelector('.FPmhX').text;
_username = _parent.parents('section')[0].querySelector('.FPmhX').title;

addBtn(_parent, _url, _username);

@@ -181,7 +181,7 @@ function findMedia(box, way) {
// Stories Picture
if (_parent.querySelector('img')) {
_url = _parent.querySelector('img').src;
_username = _parent.parents('section')[0].querySelector('.FPmhX').text;
_username = _parent.parents('section')[0].querySelector('.FPmhX').title;

addBtn(_parent, _url, _username);

0 comments on commit f2a6ec8

Please sign in to comment.
You can’t perform that action at this time.