Created
September 19, 2012 11:56
-
-
Save darkyen/3749275 to your computer and use it in GitHub Desktop.
supaignorer
This file contains 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
/* | |
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