Greasy Fork is available in English.

SampleFocus Downloader

Download unlimited samples from SampleFocus

< Feedback on SampleFocus Downloader

Review: Bad - script does not work

§
Posted: 05 Juli 2024

It doesn't do anything. I still get a message that I don't have enough download credits!

RomadilloPembuat
§
Posted: 05 Juli 2024

Instead of attempting to download a sample from the grid of search results, try clicking on the sample to be brought to its sample page and press the blue download button.

§
Posted: 06 Juli 2024
Edited: 06 Juli 2024

It still doesn't do anything after following the scrip designer's instructions. It doesn't work with Firefox 127.0.2 64 bit running on Ubuntu 22.04 with Greasemonkey enabled and showing samplefocus-downloader script enabled Here is the script as downloaded today July 6, 2024:

// ==UserScript==
// @name SampleFocus Downloader
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Download unlimited samples from SampleFocus
// @author Romadillo
// @match https://samplefocus.com/samples/*
// @icon https://i.imgur.com/WedmtXe.png
// @grant GM_download
// @downloadURL https://update.greasyfork.org/scripts/454088/SampleFocus%20Downloader.user.js
// @updateURL https://update.greasyfork.org/scripts/454088/SampleFocus%20Downloader.meta.js
// ==/UserScript==

(function() {
'use strict';

const element = document.getElementsByClassName("sample-hero-waveform-container");
const sampleUrl = JSON.parse(element[0].attributes[1].value)["sample"]["sample_mp3_url"];

const link = document.querySelector(".sample-hero .download-link");
link.onclick = function(e) {
const fileName = new URL(sampleUrl).pathname.split("/").pop();
console.log("Downloading ", sampleUrl, " as ", fileName);
GM_download({url: sampleUrl, name: fileName, saveAs: true, onerror: function(e) { console.log(e); }});
e.stopPropagation();
return false;
}
})();

I can however download with Video Downloader Professional extension for Firefox.

Post reply

Sign in to post a reply.