Online Sequencer Make music online
  • Sequences
  • Members
  • Chat
  • Forum
  • Wiki

Existing user? Sign In Create account
Login at Online Sequencer Forums

Online Sequencer Forums › Online Sequencer › Online Sequencer Discussion
« Previous 1 2 3 4 5 6 … 85 Next »

I'm making userscripts for OS features I think should exist

Thread tools
I'm making userscripts for OS features I think should exist
Lastie Online
Learning Developer
80 Posts:
   
#2
12-23-2025, 07:20 AM
// ==UserScript==
// @name OS Auto Audio Track
// @namespace http://tampermonkey.net/
// @version 2025-12-16
// @description This is a userscript that allows for limitless audio customization within the OS sequencer by allowing the use of Audio Tracks to be automatically set upon site load. DISCLAIMER: IN ORDER FOR THIS TO WORK THE PEOPLE LISTENING WILL NEED T
// @author Lastie
// @match https://*.onlinesequencer.net/*
// @icon https://www.google.com/s2/favicons?sz=64...uencer.net
// @grant none
// ==/UserScript==

(function () {

async function fetchAndDecodeAudio(audioUrl, onLoad) {
try {
const response = await fetch(audioUrl);

if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}

const arrayBuffer = await response.arrayBuffer();

console.log(arrayBuffer);
audioSystem.loadAudioTrack(
arrayBuffer);
$("#wavesurfer_element").toggle();
} catch (error) {
console.error("Error fetching or decoding audio:", error);
}
}

let trackLink;
document.addEventListener("DOMContentLoaded", () => {
const allDescLinks = document.querySelector('#info-sidebar-description-text').querySelectorAll("a");

const trackLink = allDescLinks[allDescLinks.length - 1].href;

console.log(trackLink);

showAudioTrackSelect();
console.log("trackSelectWork");

fetchAndDecodeAudio(trackLink);
});
})();


Reply

Messages In This Thread
I'm making userscripts for OS features I think should exist - by Lastie - 12-23-2025, 07:19 AM
RE: I'm making userscripts for OS features I think should exist - by Lastie - 12-23-2025, 07:20 AM
RE: I'm making userscripts for OS features I think should exist - by Lastie - 12-23-2025, 07:21 AM
RE: I'm making userscripts for OS features I think should exist - by Lastie - 02-04-2026, 06:45 PM



Users browsing this thread:   1 Guest(s)


  •  Return to Top
  •  Contact Us
  •   Home
  •  Lite mode
© Rush Crafted with ❤ by iAndrew
Powered By MyBB, © 2002-2026 MyBB Group.
Linear Mode
Threaded Mode
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend