Skip to content

Instantly share code, notes, and snippets.

@bastsoft
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save bastsoft/0fc3a8bf2551654889a1 to your computer and use it in GitHub Desktop.

Select an option

Save bastsoft/0fc3a8bf2551654889a1 to your computer and use it in GitHub Desktop.
music yandex btr gist
javascript:(function(){
var el = document.createElement('script');
el.onload = el.onreadystatechange = function () {
if (el.readyState && el.readyState !== "complete" && el.readyState !== "loaded") {
return false;
}
btr.loadGist({ id: '0fc3a8bf2551654889a1', file: 'main.js' });
};
document.getElementsByTagName('head')[0].appendChild(el).src = 'https://cdn.rawgit.com/bastsoft/btr/v0.0.3/btr-min.js';
})();
btr.loadGist({ url: 'https://gist.github.com/', id: '0fc3a8bf2551654889a1'}, function(){
btr.contextMenu('body', {
'Поиск плейлист на pleer.com' : btr.functionGist('playList.js')
});
});
$('.sidebar-playlist .track .track__name').each(function(i, track){
window.open('http://pleer.com/search?q=' + track.textContent, '_blank');
});
console.log($('.sidebar-playlist .sidebar-playlist__title').text());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment