Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Volume Slider Fidelity Increase
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://raidtime.net/en/game/tool/warframe/alarm/pc/73d961c1fc55e9ec7528f8d5d17339cd
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var volume_range = $("#form_settings_volume").data("ionRangeSlider");
- volume_range.update({
- onFinish: function(e){
- if($('#form_settings_control').is(':checked')){
- var audioElements = $('audio');
- for (var i = 0; i < audioElements.length; i++) {
- if (audioElements[i].src == 'https://s3-eu-west-1.amazonaws.com/rt-cdn/media/sounds/warframe_alarm.mp3') {
- var audioElement = audioElements[i];
- var volume = Number(((e.from / 100)).toFixed(2));
- audioElement.volume = volume;
- audioElement.load();
- audioElement.play();
- }
- break;
- }
- }
- }
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement