// ==UserScript== // @name Steve's User Blocker Reborn // @version 1.0 // @require http://code.jquery.com/jquery-2.0.3.min.js // @include *forum.blockland.us* // @include *blockland.us/smf* // @description Works best with Emo Freak :^) // @author: Steve5451 // ==/UserScript== //Known bugs: If a blocked user quotes another blocked user, then you'll have two unblock buttons. var defUsers = "BETELGEUSE SUCKS COCKS"; //Default user(s) to block, seperated with a comma Eg. "Emo Freak,Nal,Steve-senpai". You can leave this alone and you will be prompted whether you want to change it when you first run the script. //-------- you should probably leave this stuff below alone --------\\ if(localStorage.blockedUsers == null) { var goToProfile = confirm('User Blocker: User table created with default of "' + defUsers + '". Press Ok to change blocked users.'); localStorage.blockedUsers = defUsers; if(goToProfile == true) { window.location = 'http://forum.blockland.us/index.php?action=profile;sa=theme'; } else { alert("User Blocker: You can change the blocked users at any time by going to your Look and Layout Preferences in your profile."); } } if(document.URL.indexOf('sa=theme') != -1) { $('input').each(function() { if($(this).val() == 'Change profile') { $(this).before('