Skip to content

Instantly share code, notes, and snippets.

@darkyen
Created September 19, 2012 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkyen/3749275 to your computer and use it in GitHub Desktop.
Save darkyen/3749275 to your computer and use it in GitHub Desktop.
supaignorer
/*
Since Octavian once appointed me as a vampire slayer.
I am here by giving you a tool to kill help vampires
*/
/*
Run it in console and then do
blade.slash(<idOfVampire>); to nuke em alive em.
blade.mercy(<idOfVampire>); to leave em alive.
*/
var blade = new (function(){
/* Ignored Users */
var supaIgnored =localStorage['supaIgnored'] ? JSON.parse(localStorage['supaIgnored']) : [];
var str = supaIgnored.join(' ');
setInterval(function(){
$(str).hide();
},400);
this.slash = function( id ){
supaIgnored.push('.user-'+id);
str = supaIgnored.join(' ');
localStorage['supaIgnored'] = JSON.stringify(supaIgnored);
};
this.mercy = function( id ){
var index = supaIgnored.indexOf('.user-'+id);
supaIgnored.splice(index,1);
str = supaIgnored.join(' ');
localStorage['supaIgnored'] = JSON.stringify(supaIgnored);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment