fix: simple-youtube-age-restriction-bypass

This commit is contained in:
JellyBrick
2023-12-03 02:49:17 +09:00
parent f62664b6a5
commit 14965a93e9
3 changed files with 6 additions and 5 deletions

View File

@ -162,7 +162,7 @@
"node-html-parser": "6.1.11",
"node-id3": "0.2.6",
"serve": "14.2.1",
"simple-youtube-age-restriction-bypass": "git+https://github.com/organization/Simple-YouTube-Age-Restriction-Bypass.git#v2.5.8",
"simple-youtube-age-restriction-bypass": "git+https://github.com/organization/Simple-YouTube-Age-Restriction-Bypass.git#v2.5.9",
"ts-morph": "20.0.0",
"vudio": "2.1.1",
"x11": "2.3.0",

View File

@ -1,3 +1,5 @@
import { inject } from 'simple-youtube-age-restriction-bypass';
import { createPlugin } from '@/utils';
import { t } from '@/i18n';
@ -6,6 +8,6 @@ export default createPlugin({
description: () => t('plugins.bypass-age-restrictions.description'),
restartNeeded: true,
// See https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass#userscript
renderer: () => import('simple-youtube-age-restriction-bypass'),
// See https://github.com/organization/Simple-YouTube-Age-Restriction-Bypass#userscript
renderer: () => inject(),
});

View File

@ -1,4 +1,3 @@
declare module 'simple-youtube-age-restriction-bypass' {
const nothing: never;
export default nothing;
export const inject: () => void;
}