Skip to content

Commit 4e8a6ef

Browse files
committed
Fix Instagram capture from front page and single post page
1 parent f6c7919 commit 4e8a6ef

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎modules/instagram.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ zeeschuimer.register_module(
6868
];
6969

7070
let prefix;
71-
const dummyDocument = document.implementation.createDocument(null, '', null);
72-
7371
while (js_prefixes.length > 0) {
7472
prefix = js_prefixes.shift();
7573

@@ -100,10 +98,14 @@ zeeschuimer.register_module(
10098
json_bit = json_bit.split(']]}}')[0];
10199
}
102100

101+
json_bit = json_bit.split('],["CometResourceScheduler"')[0];
102+
103103

104104
try {
105105
datas.push(JSON.parse(json_bit));
106106
} catch {
107+
console.log('bad json');
108+
console.log(json_bit);
107109
// fine, not JSON after all
108110
}
109111
}

‎scratch.js‎

Whitespace-only changes.

0 commit comments

Comments
 (0)