(.*) \(/g);
for (const BaseMatchLoop of BaseMatch) {
let BaseObj = [parseInt(BaseMatchLoop[1].replace(",","").replace(",","").replace(",",""))];
for (const BaseDmg of BaseObj) {
BaseDmgArray.push(BaseDmg);}}
var BaseNumbers = BaseDmgArray.map(Number)
var SumOfBase = BaseNumbers.reduce(reducer)
let td2 = document.createElement('td');
td2.innerHTML = Math.round(damage/SumOfBase*bossHP).toLocaleString("en-US");
insertAfter(td2, menu.children[2]);
const header = document.querySelector("#content-header-row > h5")
header.innerHTML = " Health Remaining: "+(bossHP-SumOfBase).toLocaleString("en-US")+" ("+((bossHP-SumOfBase)/bossHP*100).toFixed(3)+"%)"
}}}
// moxximod boss raid main page
if (document.URL.indexOf("crew_bossspawns") != -1 ) {
GM_addStyle ( `
#content-header-row > div.col-12.layout-spacing{display: none !important;}
`);
var bossCount = $('#divCollections > div.row > div').length
fetch("crew_profile")
.then(response => response.text())
.then((response) => {
var myCrew = response.match(/
.*<\/h2>/g)
var myCrewID = response.match(/href="\/crew_raidresults\.php\?crewid=(.*)">Raid Results<\/a>/i)
var bossHead = document.querySelector("#divHeader > h3")
bossHead.innerHTML = " Moxxi Mod Raid Results"
})
for (let bossNum = 1; bossNum < 1+bossCount; bossNum++) {
var bossLink = document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation > a")
var boss = '';
if (bossLink != null)
boss = document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation > a")
if (bossLink =! null){
fetch(boss)
.then(response => response.text())
.then((response) => {
var bossName = response.match(/
(.*)<\/h1>/i)
if (bossName != null){
var bossHP = '';
if (bossName[1] == "Cosmos, Great All Being")
bossHP = "100000000000"
if (bossName[1] == "Death, Reaper of Souls")
bossHP = "295000000000"
if (bossName[1] == "Maekrix, Dreaded Striker")
bossHP = "320000000000"
if (bossName[1] == "Blackhand Reborn")
bossHP = "570000000000"
if (bossName[1] == "Zyrak, Vision of Madness")
bossHP = "1200000000000"
var crew1 = response.match(/(.*)<\/font>.*[\n\r].*
(.*) \(.*\)<\/font>/i);
const reducer = (accumulator, curr) => accumulator + curr
var BaseDmgArray = [];
var BaseMatch = response.matchAll(/
'
+ ''
$('#rankings_crewboss').append(html);
isOdd = !isOdd;
});
isLoading = false;
$('#last-updated').html(' Last updated: ' + data.timestamp);
$('#ranks').show();
}, "json");
}
$( document ).ready(function() {
var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html());
$( ".rank-sel2" ).change(function() {
if($( this ).val() == '')
return;
var isCrew = $( this ).attr('iscrew') == '1';
selectCategory($( this ).val(), $(this).find("option:selected").text(), isCrew);
});
});
}})}})}})}})}})}})}})}})};
// equipment injection
if ( document.URL.indexOf("outwar.com/home") != -1 ) {
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/profile',
onload: function (responseDetails) {
const EQ = /
[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*/im;
const EQprint = EQ.exec(responseDetails.responseText);
function insertBefore(newNode, existingNode) {
let sp2 = document.querySelector("#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div:nth-child(1) > div > div:nth-child(1)");
existingNode.parentNode.insertBefore(newNode, sp2);
}
let menu = document.querySelector("#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div:nth-child(1) > div")
var homepageEQ =
'
' +
EQprint +
'
'
let div = document.createElement('div');
div.innerHTML += homepageEQ;
insertBefore(div, menu.children[0]);
}})};
if ( document.URL.indexOf("world") != -1 ) {
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/profile',
onload: function (responseDetails) {
const EQ = /
[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*/im;
const EQprint = EQ.exec(responseDetails.responseText);
var EQworld = document.querySelector("#content-header-row > div.col-xl-4.col-lg-12.col-md-12.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-heading");
EQworld.innerHTML =
'