这个版本暂时无问题
Browse files- youtube_sub.js +3 -3
youtube_sub.js
CHANGED
|
@@ -1266,9 +1266,9 @@ GM_addStyle(`
|
|
| 1266 |
});
|
| 1267 |
|
| 1268 |
const content = response.data.response;
|
| 1269 |
-
|
| 1270 |
-
|
| 1271 |
-
|
| 1272 |
if (!jsonMatch) {
|
| 1273 |
throw new Error('No JSON content found in response');
|
| 1274 |
}
|
|
|
|
| 1266 |
});
|
| 1267 |
|
| 1268 |
const content = response.data.response;
|
| 1269 |
+
const jsonMatch = content.match(/```json\s*([\s\S]*?)\s*(?:```|\.{3})/);
|
| 1270 |
+
|
| 1271 |
+
|
| 1272 |
if (!jsonMatch) {
|
| 1273 |
throw new Error('No JSON content found in response');
|
| 1274 |
}
|