(function() {
  var links = document.querySelectorAll("div[data-alternate-link]");
  for (var i = 0, size = links.length; i < size; i++) {
    var link = links[i];
    var url = link.getAttribute("data-alternate-link");
    chrome.extension.sendMessage({ url: url });
  }
})();

@@ -7,16 +7,198 @@
 ion() %7B%0A
+  /**%0A   * Iterates over each link found on a Feedly page emiting its url to +callback+.%0A   */%0A  function eachFeedlyUrl(callback) %7B%0A    var link_attribute = %22data-alternate-link%22;%0A  
   var li
@@ -238,32 +238,37 @@
 div%5B
-data-alternate-link
+%22 + link_attribute + %22
 %5D%22);%0A
+  
   fo
@@ -315,32 +315,34 @@
 ize; i++) %7B%0A    
+  
 var link = links
@@ -346,16 +346,18 @@
 nks%5Bi%5D;%0A
+  
     var 
@@ -384,31 +384,88 @@
 ute(
-%22data-alternate-link%22);
+link_attribute);%0A      callback(url);%0A    %7D%0A  %7D%0A%0A  eachFeedlyUrl(function(url) %7B
 %0A   
@@ -509,18 +509,20 @@
 url %7D);%0A
-
   %7D
+);
 %0A%7D)();%0A

Refactor tabs.js.