//the autlinker object
var autolinker = new Autolinker();

//the youtube regex
var ytidregex = /watch\?v=([A-Za-z0-9\-_]+)/;

//grab the notes and loop through them
var notes = document.querySelectorAll('.e-content');
for(var i = 0; i < notes.length; i++) {
  //get Youtube ID
  var ytid = notes[i].textContent.match(ytidregex);
  if(ytid !== null) {
  	var id = ytid[1];
  	var iframe = document.createElement('iframe');
  	iframe.classList.add('youtube');
  	iframe.setAttribute('src', '//www.youtube.com/embed/' + id);
  	iframe.setAttribute('frameborder', 0);
  	iframe.setAttribute('allowfullscreen', 'true');
  	notes[i].appendChild(iframe);
  }
  //now linkify everything
  var orig = notes[i].innerHTML;
  var linked = autolinker.link(orig);
  notes[i].innerHTML = linked;
}
@@ -214,16 +214,17 @@
 t');%0Afor
+ 
 (var i =
@@ -252,16 +252,18 @@
  i++) %7B%0A
+  
   //get 
@@ -273,16 +273,18 @@
 tube ID%0A
+  
   var yt
@@ -331,12 +331,15 @@
 x);%0A
+  
   if
+ 
 (yti
@@ -354,17 +354,22 @@
 ll) %7B%0A  
+ 
-%09
+     
 var id =
@@ -380,17 +380,22 @@
 d%5B1%5D;%0A  
-%09
+      
 var ifra
@@ -431,25 +431,30 @@
 iframe');%0A  
-%09
+      
 iframe.class
@@ -472,25 +472,30 @@
 outube');%0A  
-%09
+      
 iframe.setAt
@@ -541,25 +541,30 @@
 /' + id);%0A  
-%09
+      
 iframe.setAt
@@ -592,17 +592,22 @@
 , 0);%0A  
-%09
+      
 iframe.s
@@ -652,9 +652,14 @@
 ;%0A  
-%09
+      
 note
@@ -688,14 +688,18 @@
 e);%0A
+  
   %7D%0A  
+ 
+ 
 //no
@@ -719,16 +719,18 @@
 rything%0A
+  
   var or
@@ -756,16 +756,18 @@
 HTML;%0A  
+ 
+ 
 var link
@@ -794,16 +794,18 @@
 (orig);%0A
+  
   notes%5B
@@ -828,8 +828,9 @@
 inked;%0A%7D
+%0A

Make easy eslint fixes to links.js