mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
feat(performance-improvement): added "performance improvement" plugin
This commit is contained in:
19
src/plugins/performance-improvement/index.ts
Normal file
19
src/plugins/performance-improvement/index.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { createPlugin } from '@/utils';
|
||||
import { t } from '@/i18n';
|
||||
|
||||
import { injectRm3 } from './scripts/rm3';
|
||||
import { injectCpuTamer } from './scripts/cpu-tamer';
|
||||
|
||||
export default createPlugin({
|
||||
name: () => t('plugins.performance-improvement.name'),
|
||||
description: () => t('plugins.performance-improvement.description'),
|
||||
restartNeeded: true,
|
||||
addedVersion: '3.9.X',
|
||||
config: {
|
||||
enabled: true,
|
||||
},
|
||||
renderer() {
|
||||
injectRm3();
|
||||
injectCpuTamer();
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user