Skip to content

Instantly share code, notes, and snippets.

@edvakf
Created September 2, 2009 09:15
Show Gist options
  • Save edvakf/179621 to your computer and use it in GitHub Desktop.
Save edvakf/179621 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @include http://favotter.matope.com/*
// ==/UserScript==
opera.defineMagicFunction('finishFav',function(){
var self = this;
setTimeout(function(){
$(self).attr('src','');
$('.fav-throb').removeClass('fav-throb').addClass('fav');
$(self).remove();
},1000);
});
opera.defineMagicFunction('finishUnFav',function(){
var self = this;
setTimeout(function(){
$(self).attr('src','');
$('.fav-throb').removeClass('fav-throb').addClass('non-fav');
$(self).remove();
},1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment