Large

Google Reader Sanity

By cqrt Last update Jan 22, 2013 — Installed 35,670 times.

missing video links in post

in
Subscribe to missing video links in post 3 posts, 2 voices



plume User
FirefoxWindows

Hi, I like this script a lot, but I have a problem with this feed:
http://blip.tv/the-spoony-experiment/rss
when I turn off the script there is a video download link in all the posts. With the script turned on there are no links.
Is there anything there can be done about this? I tried going through the script myself and removing stuff to see if it would help, but I don't know enough about scripting to make it work.

 
cqrt Script's Author
ChromeWindows

The embed enclosure feature for some reason is not embedding the file from blip.tv. Just remove the enclosure code.

(function(){

    //object constructor
    function GoogleReaderFixer(){
        this.fixEnclosures();
    };

    GoogleReaderFixer.prototype.fixEnclosures = function() {
      var nodes, o, img, src;
      nodes = document.evaluate("//a[span[@class='view-enclosure']]",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
      //alert('count='+nodes.snapshotLength);
      if (nodes){
        for (var i = 0; i < nodes.snapshotLength; i++) {
            o = nodes.snapshotItem(i);
            div = document.createElement('div');
            div.className = "item-pict";
            img = document.createElement('img');
            div.appendChild(img);
            img.src = o.href;
            var p = o.parentNode.parentNode;
            p.parentNode.replaceChild(div, p);
        }
      }
    }
    
    //instantiate and run 
    /*window.addEventListener("load", function() { 
      window.setTimeout(function(){ new GoogleReaderFixer(); }, 500);
    }, false);*/
    
    document.getElementById('entries').addEventListener('DOMNodeInserted', function(){ new GoogleReaderFixer(); }, true);
    
    GM_registerMenuCommand("GoogleReaderFixer", function(){ new GoogleReaderFixer(); });

})();

 
plume User
FirefoxWindows

Thanks!