missing video links in post
![]() ![]() |
Hi, I like this script a lot, but I have a problem with this feed:
|
![]() ![]() |
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(); });
})();
|
![]() ![]() |
Thanks! |


