Userscript installation and updater

This commit is contained in:
Ruud
2011-10-16 19:36:38 +02:00
parent 00f819b4f1
commit e8ae2dced0
11 changed files with 134 additions and 67 deletions
+2 -9
View File
@@ -29,7 +29,7 @@ var CouchPotato = new Class({
else
self.openPage(window.location.pathname);
self.c.addEvent('click:relay(a:not([target=_blank]))', self.pushState.bind(self));
self.c.addEvent('click:relay(a:not([target=_blank]):not([normalhref=true]))', self.pushState.bind(self));
},
getOption: function(name){
@@ -72,16 +72,9 @@ var CouchPotato = new Class({
$(pg).inject(self.content);
});
self.load_timer = (function(){
self.fireEvent('load');
}).delay(1000);
self.fireEvent('load');
},
stopLoadTimer: function(){
if(this.load_timer)
clearInterval(this.load_timer);
},
openPage: function(url) {
var self = this;