Greasy Fork is available in English.

Spotify Web - Copy playlist info

Copy playlist info for export

2019-05-09 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

// ==UserScript==
// @name          Spotify Web - Copy playlist info
// @description   Copy playlist info for export
// @namespace     cobr123
// @version       2
// @license       MIT
// @require       https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
// @grant         GM.setClipboard
// @grant         GM_setClipboard
// @include       https://open.spotify.com/*
// ==/UserScript==
 

"use strict";

(function () {
  
  let bindEvents = function () {
    let svPlayList = '';
    $('ol.tracklist div[class="tracklist-col name"] > div').each(function() {
      let row = $(this);
      let svTrackName = $('div:nth-child(1)', row).text();
      let svArtistName = $('div:nth-child(2) > span:nth-child(1)', row).text();
      let svTrackInfo = svTrackName + ' - ' + svArtistName;
      console.log(svTrackInfo);
      svPlayList += svTrackInfo + '\n';
    });
    GM_setClipboard(svPlayList);
    alert('Copied:\n' + svPlayList);
  };
  
  window.setTimeout(bindEvents, 1000);

})();