This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm ~/Library/Preferences/com.bjango.istatmenus* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// exports playlist to text format, when run on beatport playlist sites | |
let playlist = '' | |
document.querySelectorAll('li.track').forEach(li => { | |
let title = li.querySelector('.buk-track-primary-title').textContent.replace(/\s+/g, ' ').trim() | |
let mix = li.querySelector('.buk-track-remixed').textContent.replace(/\s+/g, ' ').trim() | |
let artist = li.querySelector('.buk-track-artists').textContent.replace(/\s+/g, ' ').trim() | |
if (mix === 'Original Mix') { | |
playlist += `${artist} - ${title}\n` | |
} else { | |
playlist += `${artist} - ${title} (${mix})\n` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* THIS CODE DOES NOT WORK PROPERLY (yet). KEEP THAT IN MIND WHEN TRYING TO USE THIS! | |
*/ | |
var phridge = require('phridge'); // https://www.npmjs.com/package/phridge | |
var through = require('through'); // https://www.npmjs.com/package/through | |
var S = require('string'); // https://www.npmjs.com/package/string | |
S.extendPrototype(); | |
var Promise = require('promise'); // https://www.npmjs.com/package/promise |