This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var url; | |
var links = document.getElementsByTagName("link"); | |
for(var i = 0, l = links.length; i < l; i ++) { | |
var link = links.item(i); | |
if(link.tagName.toLowerCase() == "link") { | |
if(link.getAttribute("type") == "application/rss+xml") { | |
location.href = "http://www.google.com/reader/preview/*/feed/" + | |
"http://fulltextrssfeed.com/" + | |
link.getAttribute("href").substr("http://".length); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export("Cache"); | |
function Cache() { | |
var self = this; | |
this.size = 0; | |
this.map = {}; | |
function wrap(f, name, period, that) { | |
return function () { | |
var t = new Date().getTime(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// One way converter from E4X XML to JSON | |
// 1) turns <body><item>1</item><item>2</item></body> into | |
// body: {item: ["1", "2"]} so that lists are easier to work with | |
// 2) turns things like: <body a="a">whatever</body> into | |
// body: {_a: "a", _: "whatever"} | |
// however <body>whatever</body> becomes simply body: "whatever | |
// - attributes specified by ignored are ignored | |
function E4XtoJSON(xml, ignored) { | |
var r, children = xml.*, attributes = xml.@*, length = children.length(); | |
if(length == 0) { |
NewerOlder