TheDragShot / AudioMicro Direct mp3 Download

// ==UserScript==
// @name            AudioMicro Direct mp3 Download
// @namespace       AudioMicro
// @author          DragShot
// @oujs:author     TheDragShot
// @released        2015-06-18
// @updated         2015-06-18
// @lastchanges     Customized the download link style
// @copyright       2015, DragShot
// @license         GNU GPL version 3
// @icon            http://www.audiomicro.com/images/favicon.ico
// @description     Adds direct .mp3 links to tracks which allow for preview downloads, so you don't need to log-in an stuff.
// @include         http://www.audiomicro.com/royalty-free-stock-music/*
// @include         http://www.audiomicro.com/artist/*
// @version         1.1
// @grant           none
// downloadURL      https://openuserjs.org/install/TheDragShot/AudioMicro_Direct_mp3_Download.user.js
// ==/UserScript==
$(document).ready(function(){
  $("<style>")
    .prop("type", "text/css")
    .html("\
    .dwn-btn {\
        display: inline-block;\
        box-sizing: border-box;\
        font-weight: 400;\
        border: 1px solid transparent;\
        border-color: #E38D13;\
        background-color: #F0AD4E;\
        background-image: linear-gradient(to bottom, #F0AD4E 0px, #EB9316 100%);\
        background-repeat: repeat-x;\
        color: #FFF;\
        text-decoration: none;\
        padding: 1px 5px;\
        font-size: 12px;\
        line-height: 1.5;\
        border-radius: 3px;\
        box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.15) inset, 0px 1px 1px rgba(0, 0, 0, 0.075);\
    }")
    .appendTo("head");
  $('.trackBox-1-left').each(function(){
    $(this).find('.download-preview-inbody').each(function(){
      var newbtn=$(this).clone();
      var url=$(this).attr('href').replace('download_preview','listen');
      newbtn.attr('href',url);
      newbtn.attr('target','_blank');
      newbtn.toggleClass('download-preview-inbody',false);
      newbtn.toggleClass('dwn-btn',true);
      newbtn.html('.mp3');
      $(this).after(newbtn);
    });
  });
});