mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
15 lines
433 B
JavaScript
15 lines
433 B
JavaScript
const { ElementFromFile, templatePath } = require('../utils');
|
|
|
|
function run() {
|
|
const forwardButton = ElementFromFile(templatePath(__dirname, 'forward.html'));
|
|
const backButton = ElementFromFile(templatePath(__dirname, 'back.html'));
|
|
const menu = document.querySelector("ytmusic-pivot-bar-renderer");
|
|
|
|
if (menu) {
|
|
menu.prepend(forwardButton);
|
|
menu.prepend(backButton);
|
|
}
|
|
}
|
|
|
|
module.exports = run;
|