console.log('SilverDog filter is Running...');

let or_connect = AudioNode.prototype.connect; // NOTE: Keep original connect method
let filtrs = new Array; // NOTE: Store filters

function create_filter(context) {
	let biquadFilter = context.createBiquadFilter();

	biquadFilter.type = st_type;
	biquadFilter.frequency.value = st_freq;
	biquadFilter.Q.value = st_q;
	biquadFilter.gain.value = st_gain;

	return biquadFilter;
}

AudioNode.prototype.connect = function () {
	obj_name = arguments[0].toString();
	if (obj_name.indexOf('AudioDestinationNode') > -1) { // NOTE: If end node, add our filter in-between
		iltr = create_filter(arguments[0].context);
		filtrs.push(filtr); // NOTE: Keep filter in global array
		or_connect.apply(this, [filtrs[filtrs.length - 1], arguments[1], arguments[2]]);
		or_connect.apply(filtr, [arguments[0], arguments[1], arguments[2]]);
		console.log('Filter added.');
	} else {	
		or_connect.apply(this, arguments);
	}
};

let audio_elements = document.getElementsByTagName('audio');
let video_elements = document.getElementsByTagName('video');

if (audio_elements.length > 0 || video_elements.length > 0) {
	let c0nt3x7 = new (window.AudioContext || window.webkitAudioContext);
	let tmp_source;

	/*Loop for audio*/
	let len = audio_elements.length;
	for (let i = 0; i < len; i++) {
		tmp_source = c0nt3x7.createMediaElementSource(audio_elements[i]);
		tmp_source.connect(c0nt3x7.destination); // NOTE: Connect is overloaded already
	}

	/*Loop for video*/
	len = video_elements.length;
	for (let i = 0; i < len; i++) {
		tmp_source = c0nt3x7.createMediaElementSource(video_elements[i]);
		tmp_source.connect(c0nt3x7.destination); // NOTE: Connect is overloaded already
	}
}

@@ -41,19 +41,19 @@
 ...');%0A%0A
-let
+var
  or_conn
@@ -90,93 +90,154 @@
 ect;
- // NOTE: Keep original connect method%0Alet filtrs = new Array; // NOTE: Store filters
+%0Avar filtrs = new Array;%0Avar audio_elements = document.getElementsByTagName('audio');%0Avar video_elements = document.getElementsByTagName('video');
 %0A%0Afu
@@ -1015,131 +1015,8 @@
 %7D;%0A%0A
-let audio_elements = document.getElementsByTagName('audio');%0Alet video_elements = document.getElementsByTagName('video');%0A%0A
 if (

Use `var` instead of `let` for global variables