NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Elimination remove hosp/trav
// @version 1.0
// @description remove players you can't hit from team list/revenge pages, bounty list,
// @author Ahab [1735214]
// @match https://www.torn.com/competition.php*
// @match https://www.torn.com/bounties.php*
// @license MIT
// ==/UserScript==
/*
team-cupcake
dongs
goat
necromancers
nasty-surprise
snowflakes
chocolate-pain
undead
spartans
romantics
villains
cereal-killers
*/
const team = 'TEAM NAME FROM ABOVE HERE'
const observer = new MutationObserver(() => {
var wind = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&')
if (wind[1] === ('team='+team)){return}
const boutem = $('span.t-red')
const revenge = $('li.status.t-red.t-overflow')
revenge.closest('li').parent().parent().remove();
boutem.closest('li').parent().parent().remove();
});
const wrapper = document.querySelector('.content-wrapper');
observer.observe(wrapper, { subtree: true, childList: true });