Freesound Direct Mp3/Ogg Links

Adds direct Mp3 and Ogg audio file download links on freesound.org

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name           Freesound Direct Mp3/Ogg Links
// @namespace      Freesound
// @description    Adds direct Mp3 and Ogg audio file download links on freesound.org
// @include        http://freesound.org/*
// @include        http://www.freesound.org/*
// @include        https://freesound.org/*
// @include        https://www.freesound.org/*
// @require        http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @author         drhouse
// @version        2.0.0
// ==/UserScript==

$(document).ready(function () {
    
    var mod = $('.ogg_file').attr('href');
    var mod2 = $('.mp3_file').attr('href');
    var link = '<br><a href="'+mod2+'">Direct Mp3 Link</a><br><a href="'+mod+'">Direct Ogg Link</a>';
    var title = '#single_sample_header';
    $(title).append(link);
    
});