-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't work anymore for photos and stories #67
Comments
@theus I'd submit a PR to fix this but you've gone and made the code private. Assuming things haven't changed drastically since I last contributed a PR, this should fix it: diff --git a/src/modules/ImageInPage.ts b/src/modules/ImageInPage.ts
index d62ccef..7bee7c9 100644
--- a/src/modules/ImageInPage.ts
+++ b/src/modules/ImageInPage.ts
@@ -16,8 +16,8 @@ export class ImageInPage implements Module {
===============================================*/
try {
searchImage: { // eslint-disable-line no-labels
- if (document.querySelectorAll('#react-root > section').length === 1) {
- const $container = document.querySelector('#react-root > section')
+ if (document.querySelectorAll('body > section').length === 1) {
+ const $container = document.querySelector('body > section')
const $article = $container.querySelectorAll('div > div > div > article')
let imageLink
diff --git a/src/modules/ImageVideoInStories.ts b/src/modules/ImageVideoInStories.ts
index 38c470d..f5e8c41 100644
--- a/src/modules/ImageVideoInStories.ts
+++ b/src/modules/ImageVideoInStories.ts
@@ -16,7 +16,7 @@ export class ImageVideoInStories implements Module {
===================================== */
try {
if (program.regexStoriesURI.test(program.path)) {
- const $root = document.getElementById('react-root')
+ const $root = document.querySelector('body')
const $video = $root.querySelectorAll('video > source') as NodeListOf<HTMLVideoElement>
const $img = ($root.querySelector(program.mediaImageElExpression) || $root.querySelector(program.mediaImageElExpressions.img)) as HTMLImageElement
~
|
@mklaber hey, if you'd like to, I can invite you to the private repo 🤔 |
Yes please :) |
Invite sent 📫 |
Hello has this been fixed? It looks like a simple fix, when will the next release be? Thank you |
Hi @kitocole, it's not a simple change. Instagram changed their structure, so a couple modules of [instantgram] stopped work. A few modules will need to be rewrite. |
@mklaber fixed the story module. Thanks! I'll work in the other modules the next days. |
The new version should be working https://theus.github.io/instantgram/ |
Works with no problems :) |
It works for video posts, but:
for first photo in album (carousel) same thing, but for all next photos it works
for stories don't work, error in console:
The text was updated successfully, but these errors were encountered: