You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: page/changelog.html
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,11 @@ <h2>Список изменений YaMuTools</h2>
24
24
<pid="author">Chimildic, 2021</p>
25
25
</footer>
26
26
<sectionclass="bubble">
27
-
<h3>Версия 0.7.4</h3>
27
+
<h3>Версия 0.7.5</h3>
28
28
<hr/>
29
29
<ul>
30
+
<li>Появилась версия для <aclass="button button-link" target="_blank" href="https://addons.mozilla.org/ru/firefox/addon/yamutools/">Mozilla Firefox</a></li>
31
+
<li>Экспортер копирует треки в буфер обмена</li>
30
32
<li>Добавлена возможность удалить вкладку детям из навигации</li>
Copy file name to clipboardExpand all lines: script/tool/playlist/exporter.js
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,6 @@ function onClickExporterTool() {
10
10
}
11
11
12
12
functionoutputTracksWithAlert(source){
13
-
letheader=
14
-
'Скопируйте список треков, перейдите на spotlistr.com/search/textbox или tunemymusic.com, вставьте скопированный текст';
15
-
16
13
lettracks=[];
17
14
for(i=0;i<source.length;i++){
18
15
if(source[i].artists.length!=0&&source[i].title){
@@ -24,5 +21,13 @@ function outputTracksWithAlert(source) {
24
21
}
25
22
}
26
23
27
-
alert(header+'\n\n'+tracks.join('\n'));
24
+
navigator.clipboard.writeText(tracks.join('\n'))
25
+
.then(()=>{
26
+
Swal.fire({
27
+
html: '<p>Список треков скопирован в буфер обмена. Перейдите на <a target="_blank" href="https://spotlistr.com/search/textbox">spotlistr</a> или <a target="_blank" href="https://tunemymusic.com">tunemymusic</a> и вставьте его в поле.</p>'
28
+
})
29
+
},(e)=>{
30
+
console.error(e)
31
+
fireSwal('Ошибка при при копировании списка треков. Повторите попытку или сообщите об ошибке по обратной связи (ссылка в настройках)','error');
0 commit comments