/*
* @title subsonic-nowplaying
* @description Subsonic の #nowplaying を生成してツイートする
* @include http://*
* @license MIT License
* @require
*/
(() => {
const d = document.getElementById('playQueue').contentWindow.document;
const sn = d.getElementById('songName').textContent;
const ar = d.getElementById('artistName').textContent;
window.open('https://twitter.com/intent/tweet?text='+encodeURI(`🎶 ${sn} by ${ar}`) + '&hashtags=nowplaying',
'hoge', 'width=800, height=300, menubar=no, toolbar=no, scrollbars=yes');
})();