// ==UserScript==
// @name MoxxiMod
// @namespace https://studiomoxxi.com/
// @description one click at a time
// @author Ben
// @match *.outwar.com/*
// @version 5.72
// @grant GM_xmlhttpRequest
// @license MIT
// @grant GM_getResourceText
// @grant GM_addStyle
// @require http://code.jquery.com/jquery-3.6.0.min.js
// ==/UserScript==
//fetch("pulling querySelector with fetch")
// .then(res => res.text())
// .then((responseText) => {
// const doc = new DOMParser().parseFromString(responseText, 'text/html');
// const news = doc.querySelector("#content-header-row > div > div:nth-child(1)").innerHTML.toString().replaceAll(/<br>/g,", ").replace(/<div class="widget-header">/,"").replace(/<div class="row">/i,"").replace(/<div class="col-xl-12 col-md-12 col-sm-12 col-12">/i,"").replaceAll(/<\/div>/g,"").replace(/<div class="widget-content widget-content-area newstext">/i,"");
// change log
// rebuilt crew vaults (only visable on chars with crew vault access)
// removed empty categories from transfer items page
// added shortcut links when using god oracles
// added buttons on brawl page to hide chars that have been attacked 10 times
// added your current skills and pots to brawl page
// added list of chars who have cast sunder armor on you to brawl page
// added skills column to brawl page that will show the chars you've casted sunder or dart on
// fixed bug with moxximod breaking when accepting a trade
// fixed bug with moxximod breaking when posting on shoutbox
// ORACLE PAGE
if (document.URL.indexOf("spawntimeview") != -1 ) {
if (document.querySelector("#content-header-row > form > input[type=submit]") != null){
GM_addStyle ( `
#content-header-row > table{width:700px !important;}
#content-header-row > table > tbody > tr:nth-child(2) > td > table > tbody > tr > td{padding:20px !important;}
#button1,#button2,#button3,#button4,#button5,#button6,#button7,#button8{border:0px !important;box-shadow: 5px 5px 14px #000000,-5px -5px 14px #000000;}
`)
var content = document.querySelector("#content-header-row")
content.innerHTML = `<table class="shortcuts"><tr><td>`+content.innerHTML+`</td></tr>
<tr><td>
<table><tr><td>
<button id='button1' class='button'><img src=/images/mobs/agnargod.png width="150px" height="150px" onmouseover="popup(event,'Agnar')" onmouseout="kill()"></button>
</td><td>
<button id='button2' class='button'><img src=/images/mobs/valzekdeathgod.png width="150px" height="150px" onmouseover="popup(event,'Valzek')" onmouseout="kill()"></button>
</td><td>
<button id='button3' class='button'><img src=/images/mobs/velendgamegod.jpg width="150px" height="150px" onmouseover="popup(event,'Thanox')" onmouseout="kill()"></button>
</td><td>
<button id='button4' class='button'><img src=/images/mobs/kinarkgod.png width="150px" height="150px" onmouseover="popup(event,'Kinark')" onmouseout="kill()"></button>
</td>
</tr><tr><td>
<button id='button5' class='button'><img src=/images/mobs/shayargod.png width="150px" height="150px" onmouseover="popup(event,'Shayar')" onmouseout="kill()"></button>
</td><td>
<button id='button6' class='button'><img src=/images/mobs/firangod.png width="150px" height="150px" onmouseover="popup(event,'Firan')" onmouseout="kill()"></button>
</td><td>
<button id='button7' class='button'><img src=/images/mobs/arcongod.png width="150px" height="150px" onmouseover="popup(event,'Arcon')" onmouseout="kill()"></button>
</td><td>
<button id='button8' class='button'><img src=/images/mobs/holgorgod.png width="150px" height="150px" onmouseover="popup(event,'Holgor')" onmouseout="kill()"></button>
</td></tr></table>
</td></tr></table>`
document.querySelector("#content-header-row > table > tbody > tr:nth-child(1) > td > form > select").setAttribute("id","godlist")
var agnar = document.querySelector("#godlist")
agnar.innerHTML = agnar.innerHTML.replace(`<option value="4789">`,`<option value="4789" id="agnar">`)
var valzek = document.querySelector("#godlist")
valzek.innerHTML = valzek.innerHTML.replace(`<option value="4790">`,`<option value="4790" id="valzek">`)
var thanox = document.querySelector("#godlist")
thanox.innerHTML = thanox.innerHTML.replace(`<option value="4389">`,`<option value="4389" id="thanox">`)
var kinark = document.querySelector("#godlist")
kinark.innerHTML = kinark.innerHTML.replace(`<option value="4787">`,`<option value="4787" id="kinark">`)
var shayar = document.querySelector("#godlist")
shayar.innerHTML = shayar.innerHTML.replace(`<option value="4788">`,`<option value="4788" id="shayar">`)
var firan = document.querySelector("#godlist")
firan.innerHTML = firan.innerHTML.replace(`<option value="4786">`,`<option value="4786" id="firan">`)
var arcon = document.querySelector("#godlist")
arcon.innerHTML = arcon.innerHTML.replace(`<option value="4785">`,`<option value="4785" id="arcon">`)
var holgor = document.querySelector("#godlist")
holgor.innerHTML = holgor.innerHTML.replace(`<option value="4784">`,`<option value="4784" id="holgor">`)
document.getElementById ("button1").addEventListener ("click", Button1, false);
function Button1 (zEvent) {
document.querySelector("#agnar").setAttribute("selected","true");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button2").addEventListener ("click", Button2, false);
function Button2 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").setAttribute("selected","true");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button3").addEventListener ("click", Button3, false);
function Button3 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").setAttribute("selected","true");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button4").addEventListener ("click", Button4, false);
function Button4 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").setAttribute("selected","true");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button5").addEventListener ("click", Button5, false);
function Button5 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").setAttribute("selected","true");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button6").addEventListener ("click", Button6, false);
function Button6 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").setAttribute("selected","true");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button7").addEventListener ("click", Button7, false);
function Button7 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").setAttribute("selected","true");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button8").addEventListener ("click", Button8, false);
function Button8 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").setAttribute("selected","true");
}
}}
// ITEM TRANSFER PAGE
if (document.URL.indexOf("itemtransfer") != -1 ) {
GM_addStyle ( `
#divItemtransfer > form > div > div > h3 {display:none !important;}
#content > div.layout-px-spacing{background:#1A1C2D !important;box-shadow: 5px 5px 14px #02030a,-5px -5px 14px #0a0d26;}
#divItemtransfer > form > div > div{ padding: 5px;
position: relative;
background-color: #0e1726;
border-bottom-left-radius: 1px;
border-bottom-right-radius: 1px;}
`)
var cat4a = document.querySelector("#divItemtransfer > form > div:nth-child(2) > div").innerHTML
if (cat4a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(2) > div{display:none !important;}`)
var cat5a = document.querySelector("#divItemtransfer > form > div:nth-child(3) > div").innerHTML
if (cat5a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(3) > div{display:none !important;}`)
var cat6a = document.querySelector("#divItemtransfer > form > div:nth-child(4) > div").innerHTML
if (cat6a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(4) > div{display:none !important;}`)
var cat7a = document.querySelector("#divItemtransfer > form > div:nth-child(5) > div").innerHTML
if (cat7a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(5) > div{display:none !important;}`)
var cat8a = document.querySelector("#divItemtransfer > form > div:nth-child(6) > div").innerHTML
if (cat8a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(6) > div{display:none !important;}`)
var cat9a = document.querySelector("#divItemtransfer > form > div:nth-child(7) > div").innerHTML
if (cat9a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(7) > div{display:none !important;}`)
var cat10a = document.querySelector("#divItemtransfer > form > div:nth-child(8) > div").innerHTML
if (cat10a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(8) > div{display:none !important;}`)
var cat11a = document.querySelector("#divItemtransfer > form > div:nth-child(9) > div").innerHTML
if (cat11a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(9) > div{display:none !important;}`)
var cat12a = document.querySelector("#divItemtransfer > form > div:nth-child(10) > div").innerHTML
if (cat12a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(10) > div{display:none !important;}`)
var cat13a = document.querySelector("#divItemtransfer > form > div:nth-child(11) > div").innerHTML
if (cat13a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(11) > div{display:none !important;}`)
var cat14a = document.querySelector("#divItemtransfer > form > div:nth-child(12) > div").innerHTML
if (cat14a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(12) > div{display:none !important;}`)
var cat15a = document.querySelector("#divItemtransfer > form > div:nth-child(13) > div").innerHTML
if (cat15a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(13) > div{display:none !important;}`)
var cat16a = document.querySelector("#divItemtransfer > form > div:nth-child(14) > div").innerHTML
if (cat16a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(14) > div{display:none !important;}`)
var cat17a = document.querySelector("#divItemtransfer > form > div:nth-child(15) > div").innerHTML
if (cat17a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(15) > div{display:none !important;}`)
var cat18a = document.querySelector("#divItemtransfer > form > div:nth-child(16) > div").innerHTML
if (cat18a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(16) > div{display:none !important;}`)
var cat19a = document.querySelector("#divItemtransfer > form > div:nth-child(17) > div").innerHTML
if (cat19a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(17) > div{display:none !important;}`)
}
// CREW VAULT
if (document.URL.indexOf("crew_vault") != -1 ) {
if (document.querySelector("#content-header-row > form > div.row.mt-3.w-100") != null){
GM_addStyle ( `
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions{width:300px !important;vertical-align: top !important;background:#1A1C2D !important;box-shadow: 5px 5px 14px #02030a,-5px -5px 14px #0a0d26;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.vaultitems{vertical-align: top !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td:nth-child(2){background:#1A1C2D !important;}
#content-header-row > form > div.row.mt-3.w-100 > table{border: 20px SOLID #1A1C2D !important;margin-top:-50px !important;}
.col-lg-6{max-width: 100% !important;}
.custom-control-label::before{background: #060707;border-color: #060707;}
.custom-control-input:checked~.custom-control-label::before{color: #fff;border-color: #fff;background-color: #fff;}
#content-header-row > div.col-12.layout-spacing,#content-header-row > div.w-100.mb-3{display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div.btn-group.show > div{background:#0F0F0F !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div.text{padding-right:20px !important;margin-bottom:20px !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(5) > div > div > label{color:#FFFFFF !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(7) > div > div > label{color:#FFFFFF !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(6) > div:nth-child(1) > h5{display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(6) > div:nth-child(1) > p:nth-child(2){display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(6) > div:nth-child(1) > p:nth-child(5){display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(6) > div:nth-child(1) > p:nth-child(6){display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(6) > div.widget-content.widget-content-area.w-100.text-left.mt-3 > h5{display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(6) > div.widget-content.widget-content-area.w-100.text-left.mt-3 > p:nth-child(2){display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(7) > div > h5{display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(7) > div > p:nth-child(2){display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(7) > div > font{display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div.btn-group{margin-right:20px !important;}
`)
var title = document.querySelector("#content-header-row > div.col-12.layout-spacing > div > div.row > div.col-auto.text-left > h4").innerHTML.match(/<img src="\/img\/CrewPoints\.png" onmouseover="popup\(event,'(.*) Crew Points'\);" onmouseout="kill\(\);"> (.*)/i)
var storage = document.querySelector("#content-header-row > div.w-100.mb-3").innerHTML.match(/Currently Storing <b>(.*) \/ (.*)<\/b> Items/i)
var crewid = document.querySelector("#content-header-row > div.col-12.layout-spacing > div > div.btn-group.mb-3.mr-2").innerHTML.match(/crew_raidresults\.php\?crewid=(.*)">Raid Results<\/a>/i)
var actions = document.querySelector("#content-header-row > form > div.row.mt-3.w-100").innerHTML
var items = document.querySelector("#content-header-row > form > div.widget-content.widget-content-area.w-100.mx-3 > div > div").innerHTML
document.querySelector("#content-header-row > form > div.row.mt-3.w-100").innerHTML = `<table><tr><td class="actions">
<div class="btn-group" role="group">
<button id="btnGroupDefault" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Menu <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDefault" style="will-change: transform;">
<a class="dropdown-item" href="/crew_pointbank">Point Bank</a>
<a class="dropdown-item" href="/crew_stones">Upgrade Stones</a>
<a class="dropdown-item" href="/crew_treasury">Treasury</a>
<a class="dropdown-item" href="/crew_actionlog.php?l=Award%20Item">Award Log</a>
<a class="dropdown-item" href="/crew_actionlog.php?l=Delete%20Item">Deleted Log</a>
</div>
</div> <a href="/crew_vault?order=1">Alpha</a> / <a href="/crew_vault?order=2">Newest</a>
<p style="margin-top:10px">
<div class=text>
`+title[2]+` is using `+storage[1]+` of the total `+storage[2]+` item capacity and has has `+title[1]+` points in crew vault.
</div>`+actions+`</td><td class="vaultitems">`+items
document.querySelector("#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(6) > div.widget-content.widget-content-area.w-100.text-left.mt-3 > p.mt-3 > input").setAttribute("value","Select Raidbound Items")
document.querySelector("#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(7) > div > p.mt-3 > input").setAttribute("value","Delete Items")
document.querySelector("#content-header-row > div.col-12.layout-spacing > div > div.row > div.col-auto.text-left > h4").innerHTML = ""
document.querySelector("#content-header-row > form > div.widget-content.widget-content-area.w-100.mx-3 > div").innerHTML = ""
}}
// TRADE PAGE
if (document.URL.indexOf("trade") != -1 ) {
if (document.querySelector("#content-header-row > div > div > strong") == null){
var cat4 = document.querySelector("#divTrade > div:nth-child(4)").innerHTML
if (cat4.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(4){display:none !important;}`)
var cat5 = document.querySelector("#divTrade > div:nth-child(5)").innerHTML
if (cat5.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(5){display:none !important;}`)
var cat6 = document.querySelector("#divTrade > div:nth-child(6)").innerHTML
if (cat6.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(6){display:none !important;}`)
var cat7 = document.querySelector("#divTrade > div:nth-child(7)").innerHTML
if (cat7.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(7){display:none !important;}`)
var cat8 = document.querySelector("#divTrade > div:nth-child(8)").innerHTML
if (cat8.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(8){display:none !important;}`)
var cat9 = document.querySelector("#divTrade > div:nth-child(9)").innerHTML
if (cat9.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(9){display:none !important;}`)
var cat10 = document.querySelector("#divTrade > div:nth-child(10)").innerHTML
if (cat10.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(10){display:none !important;}`)
var cat11 = document.querySelector("#divTrade > div:nth-child(11)").innerHTML
if (cat11.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(11){display:none !important;}`)
var cat12 = document.querySelector("#divTrade > div:nth-child(12)").innerHTML
if (cat12.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(12){display:none !important;}`)
var cat13 = document.querySelector("#divTrade > div:nth-child(13)").innerHTML
if (cat13.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(13){display:none !important;}`)
var cat14 = document.querySelector("#divTrade > div:nth-child(14)").innerHTML
if (cat14.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(14){display:none !important;}`)
var cat15 = document.querySelector("#divTrade > div:nth-child(15)").innerHTML
if (cat15.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(15){display:none !important;}`)
var cat16 = document.querySelector("#divTrade > div:nth-child(16)").innerHTML
if (cat16.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(16){display:none !important;}`)
var cat17 = document.querySelector("#divTrade > div:nth-child(17)").innerHTML
if (cat17.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(17){display:none !important;}`)
var cat18 = document.querySelector("#divTrade > div:nth-child(18)").innerHTML
if (cat18.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(18){display:none !important;}`)
var cat19 = document.querySelector("#divTrade > div:nth-child(19)").innerHTML
if (cat19.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(19){display:none !important;}`)
var cat20 = document.querySelector("#divTrade > div:nth-child(20)").innerHTML
if (cat20.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(20){display:none !important;}`)
}}
// PVP BRAWL
if (document.URL.indexOf("closedpvp") != -1 ) {
GM_addStyle ( `
#content-header-row > div:nth-child(4){display:none !important;}
.col-lg-6 {-ms-flex: 0 0 100%;flex: 0 0 100%;max-width: 100%;}
#content-header-row > div > div > h4{margin-bottom:20px !important;}
#content-header-row > h2{display:none !important;}
#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > thead > tr{background:#020202 !important;}
#content-header-row > div > div > div > table > tbody > tr,#content-header-row > div > div > table > tbody > tr{background:#0F0F0F !important;border-bottom: #454545 solid 1px !important;}
#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > thead > tr > th:nth-child(6) > a {color: #d4d4d4 !important;}
#content-header-row > div:nth-child(2) > div:nth-child(4){display:none !important;}
.button{background:#0F0F0F !important;color:#ffffff !important;padding:10px !important;margin:10px !important;}
`)
var brawlclosed = '';
if (document.querySelector("#content-header-row > div:nth-child(2) > div:nth-child(1) > h5") != null)
brawlclosed = document.querySelector("#content-header-row > div:nth-child(2) > div:nth-child(1) > h5").innerHTML
if (document.querySelector("#content-header-row > div:nth-child(2) > div:nth-child(1) > h5") == null)
brawlclosed = null
var brawlchars = '';
if (brawlclosed == "Brawl starts in")
brawlchars = document.querySelector("#content-header-row > div:nth-child(3) > div").innerHTML
if (brawlclosed != "Brawl starts in")
brawlchars = document.querySelector("#content-header-row > div:nth-child(4) > div").innerHTML
if (brawlclosed == null)
brawlchars = document.querySelector("#content-header-row > div:nth-child(4) > div").innerHTML
if (brawlclosed == "Brawl starts in"){
GM_addStyle( `
#content-header-row > div:nth-child(3) > div.widget-content.widget-content-area{display:none !important;}
#button1{display:none !important;}
#button2{display:none !important;}
`)}
var brawlcharsnew = `
<button id='button1' class='button'>HIDE ATTACKED ACCOUNTS</button> <button id='button2' class='button'>SHOW ALL ACCOUNTS</button><p>
<div id="skills"></div>
<div class="widget-content widget-content-area">`+brawlchars+`
</div>
`
setTimeout(function() {
document.querySelector("#button1").addEventListener (
"click", Button1, false
);
function Button1 (zEvent) {
GM_addStyle ( `
#finished {display:none !important;}
`);
}
document.querySelector("#button2").addEventListener (
"click", Button2, false
);
function Button2 (zEvent) {
GM_addStyle ( `
#finished {display:revert !important;}
`);
}
}, 100);
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
let brawltable = document.querySelector("#content-header-row > div:nth-child(3)");
let brawlsection = document.createElement('div');
brawlsection.innerHTML = brawlcharsnew;
insertAfter(brawlsection, brawltable.children[0]);
let brawlcharheader = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > thead > tr")
let headerTD1 = document.createElement('th');
headerTD1.innerHTML = `<a onmouseover="popup(event,'<font color=#00FF00><b>Player has less power than you<br><font color=#FF0000><b>Player has more power than you');" onmouseout="kill();">POWER`;
insertAfter(headerTD1, brawlcharheader.lastElementChild);
let headerTD2 = document.createElement('th');
headerTD2.innerHTML = "ITEMS";
insertAfter(headerTD2, brawlcharheader.lastElementChild);
let headerTD5 = document.createElement('th');
headerTD5.innerHTML = "SKILLS";
insertAfter(headerTD5, brawlcharheader.lastElementChild);
let headerTD3 = document.createElement('th');
headerTD3.innerHTML = "CIRCLE OF PROTECTION";
insertAfter(headerTD3, brawlcharheader.lastElementChild);
var rank01 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(1) > td:nth-child(1)")
var rank02 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(2) > td:nth-child(1)")
var rank03 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(3) > td:nth-child(1)")
var rank04 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(4) > td:nth-child(1)")
var rank05 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(5) > td:nth-child(1)")
var rank06 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(6) > td:nth-child(1)")
var rank07 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(7) > td:nth-child(1)")
var rank08 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(8) > td:nth-child(1)")
var rank09 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(9) > td:nth-child(1)")
var rank10 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(10) > td:nth-child(1)")
var rank11 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(11) > td:nth-child(1)")
var rank12 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(12) > td:nth-child(1)")
var rank13 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(13) > td:nth-child(1)")
var rank14 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(14) > td:nth-child(1)")
var rank15 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(15) > td:nth-child(1)")
var rank16 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(16) > td:nth-child(1)")
var rank17 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(17) > td:nth-child(1)")
var rank18 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(18) > td:nth-child(1)")
var rank19 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(19) > td:nth-child(1)")
var rank20 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(20) > td:nth-child(1)")
var rank21 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(21) > td:nth-child(1)")
var rank22 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(22) > td:nth-child(1)")
var rank23 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(23) > td:nth-child(1)")
var rank24 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(24) > td:nth-child(1)")
var rank25 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(25) > td:nth-child(1)")
var rank26 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(26) > td:nth-child(1)")
var rank27 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(27) > td:nth-child(1)")
var rank28 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(28) > td:nth-child(1)")
var rank29 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(29) > td:nth-child(1)")
var rank30 = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child(30) > td:nth-child(1)")
if (rank01 != null){rank01.innerHTML = "1 (20 coins)"}
if (rank02 != null){rank02.innerHTML = "2 (17 coins)"}
if (rank03 != null){rank03.innerHTML = "3 (15 coins)"}
if (rank04 != null){rank04.innerHTML = "4 (14 coins)"}
if (rank05 != null){rank05.innerHTML = "5 (11 coins)"}
if (rank06 != null){rank06.innerHTML = "6 (10 coins)"}
if (rank07 != null){rank07.innerHTML = "7 (10 coins)"}
if (rank08 != null){rank08.innerHTML = "8 (10 coins)"}
if (rank09 != null){rank09.innerHTML = "9 (9 coins)"}
if (rank10 != null){rank10.innerHTML = "10 (9 coins)"}
if (rank11 != null){rank11.innerHTML = "11 (9 coins)"}
if (rank12 != null){rank12.innerHTML = "12 (8 coins)"}
if (rank13 != null){rank13.innerHTML = "13 (8 coins)"}
if (rank14 != null){rank14.innerHTML = "14 (8 coins)"}
if (rank15 != null){rank15.innerHTML = "15 (7 coins)"}
if (rank16 != null){rank16.innerHTML = "16 (7 coins)"}
if (rank17 != null){rank17.innerHTML = "17 (7 coins)"}
if (rank18 != null){rank18.innerHTML = "18 (6 coins)"}
if (rank19 != null){rank19.innerHTML = "19 (6 coins)"}
if (rank20 != null){rank20.innerHTML = "20 (6 coins)"}
if (rank21 != null){rank21.innerHTML = "21 (5 coins)"}
if (rank22 != null){rank22.innerHTML = "22 (5 coins)"}
if (rank23 != null){rank23.innerHTML = "23 (5 coins)"}
if (rank24 != null){rank24.innerHTML = "24 (5 coins)"}
if (rank25 != null){rank25.innerHTML = "25 (5 coins)"}
if (rank26 != null){rank26.innerHTML = "26 (4 coins)"}
if (rank27 != null){rank27.innerHTML = "27 (4 coins)"}
if (rank28 != null){rank28.innerHTML = "28 (4 coins)"}
if (rank29 != null){rank29.innerHTML = "29 (4 coins)"}
if (rank30 != null){rank30.innerHTML = "30 (4 coins)"}
var totalMembers = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table").rows.length;
for (let rownum = 1; rownum < parseInt(totalMembers); rownum++) {
if (brawlclosed != "Brawl starts in"){
var attacked = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5)").innerHTML
if (attacked == "10"){
document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child("+rownum+")").setAttribute("id", "finished")}
}}
fetch("profile")
.then (response => response.text())
.then((response) => {
var myname = response.match(/<div id="divHeaderName">[\n\r].*<font size="3">(.*)<\/font>/i)
var mypower = response.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font><\/b><\/td>/i)
var mytotalpower = parseInt(mypower[1].replace(",",""))
var mycop = '';
if (response.match(/\/images\/skills\/circleofprotection\.png/i) == null)
mycop = "NO"
if (response.match(/\/images\/skills\/circleofprotection\.png/i) != null)
mycop = "YES"
fetch("profile")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const myskills = doc.querySelector("#divSkillsCast")
var yourNegs = '';
if (myskills.innerHTML.match(/<img align="absmiddle" border="0" src="\/images\/skills\/sunderarmor\.png" hspace="2" width="25" height="25" alt="Sunder Armor" onmouseover="popup\(event,'<b>Level 10 Sunder Armor<\/b><br \/>Target takes 30% more damage from you\. Only castable if you have no active Sunder debuffs cast\.<br \/>.* left<br>Cast By (.*)',808080\)" onmouseout="kill\(\)">/g) != null)
yourNegs = myskills.innerHTML.match(/<img align="absmiddle" border="0" src="\/images\/skills\/sunderarmor\.png" hspace="2" width="25" height="25" alt="Sunder Armor" onmouseover="popup\(event,'<b>Level 10 Sunder Armor<\/b><br \/>Target takes 30% more damage from you\. Only castable if you have no active Sunder debuffs cast\.<br \/>.* left<br>Cast By (.*)',808080\)" onmouseout="kill\(\)">/g).toString().replaceAll(`<img align="absmiddle" border="0" src="/images/skills/sunderarmor.png" hspace="2" width="25" height="25" alt="Sunder Armor" onmouseover="popup(event,'<b>Level 10 Sunder Armor</b><br />Target takes 30% more damage from you. Only castable if you have no active Sunder debuffs cast.<br />`,"").replaceAll(`',808080)" onmouseout="kill()">`,"").replaceAll("<br>"," ").replaceAll(",",", ").replaceAll(/[0-9]+ hours [0-9]+ mins left Cast By /g,"").replaceAll(/[0-9]+ hours left Cast By /g,"")
if (myskills.innerHTML.match(/<img align="absmiddle" border="0" src="\/images\/skills\/sunderarmor\.png" hspace="2" width="25" height="25" alt="Sunder Armor" onmouseover="popup\(event,'<b>Level 10 Sunder Armor<\/b><br \/>Target takes 30% more damage from you\. Only castable if you have no active Sunder debuffs cast\.<br \/>.* left<br>Cast By (.*)',808080\)" onmouseout="kill\(\)">/g) == null)
yourNegs = ""
document.querySelector("#skills").innerHTML = myskills.innerHTML+`<p style="margin-top:20px"><font color="#C1911A"><b>You've been sundered by: `+yourNegs
for (let rownum = 1; rownum < parseInt(totalMembers); rownum++) {
var charList = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replace(/<a href="/i,"").replace(/">.*<\/a>/,"")
fetch(charList)
.then (response => response.text())
.then((response) => {
var coptime = response.match(/Circle of Protection<\/b><br \/>You conjure a circle of elemental energy to protect you in battle\. Reduce damage taken in PvP combat by .*.<br \/>(.*) left<br>Cast By/i)
var circleofprotection = '';
if (response.match(/Circle of Protection<\/b><br \/>You conjure a circle of elemental energy to protect you in battle\. Reduce damage taken in PvP combat by .*.<br \/>(.*) left<br>Cast By/i) != null)
circleofprotection =
`<font color=C1911A>ACTIVE:</font> `+coptime[1]+` remaining`
var items = response.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">[\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)
var itemsX = response.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">[\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)
var items2 = (items.toString().match(/img/g) || []).length
var items3 = '';
if (items2 < 10)
items3 = `<font color=#00FF00>MISSING</font>`
if (items2 == 10)
items3 = `10/10`
var power = response.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font><\/b><\/td>/i)
var totalpower = parseInt(power[1].replace(",",""))
var powercheck = '';
if (totalpower > mytotalpower)
powercheck = "<font color=#FF0000>"+totalpower.toLocaleString("en-US")+"</font>"
if (totalpower < mytotalpower)
powercheck = "<font color=#00FF00>"+totalpower.toLocaleString("en-US")+"</font>"
if (totalpower == mytotalpower)
powercheck = "-"
var pdartregex = new RegExp ("Level 10 Poison Dart<\/b><br \/>You strike your target with a poisonous dart\. Target takes 5,000 damage each time they attack you, or you attack them\.<br \/>.*" + myname[1] + "", "i")
var skills = '';
if (response.match(pdartregex) != null)
skills += `<img src=/images/skills/poisondart.png height=20px width=20px onmouseover="popup(event,'Poison Dart cast by<font color=#C18413><b> `+myname[1]+`')" onmouseout="kill()">`
if (response.match(pdartregex) == null)
skills += ""
var sunderregex = new RegExp ("Level 10 Sunder Armor<\/b><br \/>Target takes 30% more damage from you\. Only castable if you have no active Sunder debuffs cast\.<br \/>.*" + myname[1] + "", "i")
if (response.match(sunderregex) != null)
skills += `<img src=/images/skills/sunderarmor.png height=20px width=20px onmouseover="popup(event,'Sunder Armor cast by<font color=#C18413><b> `+myname[1]+`')" onmouseout="kill()">`
if (response.match(sunderregex) == null)
skills += ""
let menu = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child("+rownum+")")
let powerTD = document.createElement('td');
powerTD.innerHTML = powercheck;
insertAfter(powerTD, menu.lastElementChild);
let brawlTD = document.createElement('td');
brawlTD.innerHTML = items3;
insertAfter(brawlTD, menu.lastElementChild);
let skillsTD = document.createElement('td');
skillsTD.innerHTML = skills;
insertAfter(skillsTD, menu.lastElementChild);
let copTD = document.createElement('td');
copTD.innerHTML = circleofprotection;
insertAfter(copTD, menu.lastElementChild);
})}})})}
// AUTO SKILLER LINK ON SKILLS PAGE
if (document.URL.indexOf("cast_skills") != -1 ) {
GM_addStyle ( `
#basic > div.statbox.widget.box.box-shadow.mb-1.pt-2.pb-1{height:55px !important;}
#infocell > h5{background: #202020 !important;}
`)
var autoskilllink = `<a class="nav-link " href="auto_skiller" role="tab" aria-selected="false">Auto Skiller</a>`
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
let skillstabs = document.querySelector("#simpletab");
let autoskill = document.createElement('li');
autoskill.innerHTML = autoskilllink;
insertAfter(autoskill, skillstabs.lastElementChild);
}
// CREW PROFILE PAGE LAYOUT
if (document.URL.indexOf("crew_profile") != -1 ) {
GM_addStyle ( `
.col-lg-6{flex: 0 0 100% !important;max-width: 100% !important;}
#content-header-row > div.col-lg-6.col-12.layout-spacing > div.widget-content.widget-content-area.br-6 > div:nth-child(2) > div.col-6.pr-1{display:none !important;}
#content-header-row > div.col-lg-6.col-12.layout-spacing > div.widget-content.widget-content-area.br-6 > div:nth-child(2) > div.col-6.pl-1 > ul{display:none !important;}
#content-header-row > div > div.widget-content.widget-content-area.br-6 > div.mt-3.pt-3{display:none !important;}
#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(3){display:none !important;}
#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(4){display:none !important;}
#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(6){display:none !important;}
#content-header-row > div > div.text-left{display:none !important;}
#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(7){display:none !important;}
#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(8){display:none !important;}
#content-header-row > div > div.widget-content.widget-content-area.br-6{margin-bottom:20px !important;}
#content-header-row > div > div.widget-content.widget-content-area.br-6{background-image:url('https://studiomoxxi.com/ow_themes/custom_jobs/minimal_01/mm_patern.png') !important;}
.layout-spacing{padding-bottom:0px !important;}
#content-header-row > div > div.widget-content.widget-content-area.br-6{border: 2px solid #0F0F0F;border-radius: 7px;outline: none;border-color: #0F0F0F;box-shadow: 0 0 10px #0F0F0F;}
`)
document.querySelector(".table-responsive > table").setAttribute("id", "crewmembers")
document.querySelector(".table-responsive").setAttribute("id", "memberdiv")
fetch("profile")
.then(response => response.text())
.then((response) => {
var myCrewID = response.match(/<font size="2">.*of <a href="\/crew_profile\?id=(.*)">.*<\/a><\/font>/i)
var crewAlert = document.querySelector("#content-header-row > div.row > div")
var url = window.location.search
var myCrew = '';
if (url == "")
myCrew = "6"
if (url != "")
myCrew = "4"
if (url == "?id="+myCrewID[1])
myCrew = "6"
if (crewAlert != null)
myCrew = "5"
var crewID = '';
if (url == "")
crewID = myCrewID[1]
if (url != "")
crewID = url.replace("?id=","")
fetch("crew_raidresults.php?all_results=Display+all+raid+results&crewid="+crewID)
.then(response => response.text())
.then((response) => {
var lastRaid = response.match(/<td align="left" valign="top">[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+[a-zA-Z]+<\/td>.*[\n\r].*<td align="left" valign="top">(.*)<\/td>[\n\r](.*)[\n\r].*<a href="(raidattack\.php\?raidid=.*)">View<\/a><\/td>/i)
var lastRaid2 = '';
if (lastRaid != null)
lastRaid2 = lastRaid[2].replace(/<td align="left" valign="top">/i,"").replace(/<\/td>/i,"")+` vs. <a href=`+lastRaid[3]+`>`+lastRaid[1]+`</a>`
if (lastRaid == null)
lastRaid2 = "none"
var treasury = document.querySelector("#content-header-row").innerHTML.match(/<a href="\/treasury\?(search_for=.*)"><svg style="vertical-align: bottom;"/i)
var createdDate = document.querySelector("#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(2) > div.col-6.pr-1 > ul > li:nth-child(1)").innerHTML.replace(/<b>Created On:<\/b> /i,"")
var leaderChar = document.querySelector("#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(2) > div.col-6.pr-1 > ul > li:nth-child(2) > a").outerHTML
var totalMembers = document.querySelector("#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(2) > div.col-6.pl-1 > ul > li:nth-child(1)").innerHTML.replace(/<b>Total Members:<\/b> /i,"")
var avgLevel = document.querySelector("#content-header-row > div.col-lg-6.col-12.layout-spacing > div.widget-content.widget-content-area.br-6 > div:nth-child(2) > div.col-6.pl-1 > ul > li:nth-child(2)").innerHTML.replace(/<b>Average Level:<\/b> /i,"")
var crewPic = document.querySelector("#content > div.layout-px-spacing").innerHTML.match(/<img src="https:\/\/upload\.outwar\.com\/crewuploaded.*/i) ?? `<img src="http:\/\/torax\.outwar\.com\/images\/logodefault\.gif" width="" height="">`
var crewUpgrades = document.querySelector("#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(6)").innerHTML.replace(/<h5 class="card-title">CREW UPGRADES<\/h5>/i,"")
var allies = document.querySelector("#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(7) > div > div").innerHTML.replaceAll(/<div class="col-6">/g,"").replaceAll(/<\/a>[\n\r]<\/div>/g,"<br>").replaceAll(/<\/div>/g,"")
var enemies = document.querySelector("#content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(8) > div > div").innerHTML.replaceAll(/<div class="col-6">/g,"").replaceAll(/<\/a>[\n\r]<\/div>/g,"<br>").replaceAll(/<\/div>/g,"")
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
let memHeader = document.querySelector("#crewmembers > thead > tr");
let TD1 = document.createElement('th');
TD1.innerHTML = `POWER`;
insertAfter(TD1, memHeader.lastElementChild);
let TD2 = document.createElement('th');
TD2.innerHTML = `ELE`;
insertAfter(TD2, memHeader.lastElementChild);
let TD3 = document.createElement('th');
TD3.innerHTML = `ATK`;
insertAfter(TD3, memHeader.lastElementChild);
let TD4 = document.createElement('th');
TD4.innerHTML = `HP`;
insertAfter(TD4, memHeader.lastElementChild);
let TD5 = document.createElement('th');
TD5.innerHTML = `CHAOS`;
insertAfter(TD5, memHeader.lastElementChild);
let TD6 = document.createElement('th');
TD6.innerHTML = `WILDR`;
insertAfter(TD6, memHeader.lastElementChild);
let TD7 = document.createElement('th');
TD7.innerHTML = `GROWTH`;
insertAfter(TD7, memHeader.lastElementChild);
let TD8 = document.createElement('th');
TD8.innerHTML = `ITEMS`;
insertAfter(TD8, memHeader.lastElementChild);
let TD9 = document.createElement('th');
TD9.innerHTML = `BOOST`;
insertAfter(TD9, memHeader.lastElementChild);
let TD10 = document.createElement('th');
TD10.innerHTML = `SKILLS`;
insertAfter(TD10, memHeader.lastElementChild);
for (let rownum = 1; rownum < parseInt(totalMembers)+1; rownum++) {
var charList = document.querySelector("#crewmembers > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replace(/<a href="/i,"").replace(/">.*<\/a>/,"")
fetch(charList)
.then (response => response.text())
.then((response) => {
var charpower = response.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font>/i)
var charpower2 = parseInt(charpower[1].replaceAll(",",""))
var attack = response.match(/ATTACK.*[\n\r].*<font size="2">(.*)<\/font>/i)
var attack2 = parseInt(attack[1].replaceAll(",",""))
var hitpoints = response.match(/HIT POINTS.*[\n\r].*<font size="2">(.*)<\/font>/i)
var hitpoints2 = parseInt(hitpoints[1].replaceAll(",",""))
var charele = response.match(/ELEMENTAL ATTACK.*[\n\r].*<font size="2">(.*)<\/font>/i)
var charchaos = response.match(/CHAOS DAMAGE.*[\n\r].*<font size="2">(.*)<\/font>/i)
var wilderness = response.match(/WILDERNESS LEVEL.*[\n\r].*<font size="2">(.*)<\/font>/i)
var growthyesterday = response.match(/GROWTH YESTERDAY.*[\n\r].*<font size="2">(.*)<\/font>/i)
var growthyesterday2 = parseInt(growthyesterday[1].replaceAll(",",""))
var growthyesterday3 = '';
if (growthyesterday2 < 0)
growthyesterday3 = growthyesterday2.toLocaleString("en-US")
if (growthyesterday2 > -1)
growthyesterday3 = growthyesterday2.toLocaleString("en-US")
var booster = response.match(/<img style="border:0px;" src="(.*)" onclick.* Booster.*"/i)
var booster2 = '';
if (booster == null)
booster2 = "none"
if (booster != null)
booster2 = "<img src="+booster[1]+" height=25px width=25px>"
var booster3 = response.match(/onmouseover="itempopup\(event,'.*'\)" onmouseout="kill\(\)" alt=".*Booster.*">/i)
var booster4 = '';
if (booster3 == null)
booster4 = "><font color=#D4D4D4>"
if (booster3 != null)
booster4 = booster3
var items = response.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">[\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)
var items2 = (items.toString().match(/img/g) || []).length
var items3 = '';
if (items2 < 10)
items3 = "<font color=#FF0000>"+items2
if (items2 == 10)
items3 = "<font color=#D4D4D4>"+items2
var circCast = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/circumspect\.png".*/i);
const skill0 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/circumspect\.png".*/i);
const skill1 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/haste\.png".*/i);
const skill2 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/stoneskin\.png".*/i);
const skill3 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/forcefield\.png".*/i);
const skill4 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/markdown\.png".*/i);
const skill5 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/blessingfromabove\.png".*/i);
const skill6 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/circleofprotection\.png".*/i);
const skill7 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/vanish\.png".*/i);
const skill8 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/hitman\.png".*/i);
var skills = '';
if (skill0 != null || skill1 != null || skill2 != null)
skills += "<font color=#F26900>ferocity</font>"
if (skill3 != null || skill4 != null || skill5 != null)
skills += "<font color=#00DBE9>preservation</font>"
if (skill6 != null || skill7 != null || skill8 != null)
skills += "<font color=#E3C71D>affliction</font>"
if (skills == "")
skills += "unknown"
let menu = document.querySelector("#crewmembers > tbody > tr:nth-child("+rownum+")")
let powerTD = document.createElement('td');
powerTD.innerHTML = charpower2.toLocaleString("en-US");
powerTD.setAttribute("id", "charpower")
insertAfter(powerTD, menu.lastElementChild);
let eleTD = document.createElement('td');
eleTD.innerHTML = parseInt(charele[1].replace(",","")).toLocaleString("en-US");
eleTD.setAttribute("id", "charele")
insertAfter(eleTD, menu.lastElementChild);
let atkTD = document.createElement('td');
atkTD.innerHTML = attack2.toLocaleString("en-US");
atkTD.setAttribute("id", "charatk")
insertAfter(atkTD, menu.lastElementChild);
let hpTD = document.createElement('td');
hpTD.innerHTML = hitpoints2.toLocaleString("en-US");
hpTD.setAttribute("id", "charhp")
insertAfter(hpTD, menu.lastElementChild);
let chaosTD = document.createElement('td');
chaosTD.innerHTML = parseInt(charchaos[1].replace(",","")).toLocaleString("en-US");
chaosTD.setAttribute("id", "charchaos")
insertAfter(chaosTD, menu.lastElementChild);
let wildTD = document.createElement('td');
wildTD.innerHTML = parseInt(wilderness[1].replace(",","")).toLocaleString("en-US");
wildTD.setAttribute("id", "charwild")
insertAfter(wildTD, menu.lastElementChild);
let yesterdayTD = document.createElement('td');
yesterdayTD.innerHTML = parseInt(growthyesterday3.replaceAll(",","")).toLocaleString("en-US");
yesterdayTD.setAttribute("id", "chargrowth")
insertAfter(yesterdayTD, menu.lastElementChild);
let boosterTD = document.createElement('td');
boosterTD.innerHTML = items3+"/10</font>";
insertAfter(boosterTD, menu.lastElementChild);
let gemTD = document.createElement('td');
gemTD.innerHTML = "<a "+booster4+booster2+"</a>";
insertAfter(gemTD, menu.lastElementChild);
let skillsTD = document.createElement('td');
skillsTD.innerHTML = skills;
insertAfter(skillsTD, menu.lastElementChild);
})}
var time = totalMembers*100
setTimeout(function() {
const reducer = (accumulator, curr) => accumulator + curr
var powerArray = [];
var powerMatch = document.querySelector("#crewmembers").innerHTML.matchAll(/<td id="charpower">(.*)<\/td>/g);
for (const powerMatchLoop of powerMatch) {
let powerObj = [parseInt(powerMatchLoop[1].replace(",","").replace(",","").replace(",",""))];
for (const power of powerObj) {
powerArray.push(power);}}
var powerNumbers = powerArray.map(Number)
const powerTotal = powerNumbers.reduce(reducer)
document.querySelector("#powerInsert").textContent = powerTotal.toLocaleString("en-US")
document.querySelector("#powerAvg").textContent = Math.round(powerTotal/totalMembers).toLocaleString("en-US")
var eleArray = [];
var eleMatch = document.querySelector("#crewmembers").innerHTML.matchAll(/<td id="charele">(.*)<\/td>/g);
for (const eleMatchLoop of eleMatch) {
let eleObj = [parseInt(eleMatchLoop[1].replace(",","").replace(",","").replace(",",""))];
for (const ele of eleObj) {
eleArray.push(ele);}}
var eleNumbers = eleArray.map(Number)
const eleTotal = eleNumbers.reduce(reducer)
document.querySelector("#eleInsert").textContent = eleTotal.toLocaleString("en-US")
document.querySelector("#eleAvg").textContent = Math.round(eleTotal/totalMembers).toLocaleString("en-US")
var atkArray = [];
var atkMatch = document.querySelector("#crewmembers").innerHTML.matchAll(/<td id="charatk">(.*)<\/td>/g);
for (const atkMatchLoop of atkMatch) {
let atkObj = [parseInt(atkMatchLoop[1].replace(",","").replace(",","").replace(",",""))];
for (const atk of atkObj) {
atkArray.push(atk);}}
var atkNumbers = atkArray.map(Number)
const atkTotal = atkNumbers.reduce(reducer)
document.querySelector("#atkInsert").textContent = atkTotal.toLocaleString("en-US")
document.querySelector("#atkAvg").textContent = Math.round(atkTotal/totalMembers).toLocaleString("en-US")
var hpArray = [];
var hpMatch = document.querySelector("#crewmembers").innerHTML.matchAll(/<td id="charhp">(.*)<\/td>/g);
for (const hpMatchLoop of hpMatch) {
let hpObj = [parseInt(hpMatchLoop[1].replace(",","").replace(",","").replace(",",""))];
for (const hp of hpObj) {
hpArray.push(hp);}}
var hpNumbers = hpArray.map(Number)
const hpTotal = hpNumbers.reduce(reducer)
document.querySelector("#hpInsert").textContent = hpTotal.toLocaleString("en-US")
document.querySelector("#hpAvg").textContent = Math.round(hpTotal/totalMembers).toLocaleString("en-US")
var chaosArray = [];
var chaosMatch = document.querySelector("#crewmembers").innerHTML.matchAll(/<td id="charchaos">(.*)<\/td>/g);
for (const chaosMatchLoop of chaosMatch) {
let chaosObj = [parseInt(chaosMatchLoop[1].replace(",","").replace(",","").replace(",",""))];
for (const chaos of chaosObj) {
chaosArray.push(chaos);}}
var chaosNumbers = chaosArray.map(Number)
const chaosTotal = chaosNumbers.reduce(reducer)
document.querySelector("#chaosInsert").textContent = chaosTotal.toLocaleString("en-US")
document.querySelector("#chaosAvg").textContent = Math.round(chaosTotal/totalMembers).toLocaleString("en-US")
var wildArray = [];
var wildMatch = document.querySelector("#crewmembers").innerHTML.matchAll(/<td id="charwild">(.*)<\/td>/g);
for (const wildMatchLoop of wildMatch) {
let wildObj = [parseInt(wildMatchLoop[1].replace(",","").replace(",","").replace(",",""))];
for (const wild of wildObj) {
wildArray.push(wild);}}
var wildNumbers = wildArray.map(Number)
const wildTotal = wildNumbers.reduce(reducer)
document.querySelector("#wildInsert").textContent = wildTotal.toLocaleString("en-US")
document.querySelector("#wildAvg").textContent = Math.round(wildTotal/totalMembers).toLocaleString("en-US")
var growthArray = [];
var growthMatch = document.querySelector("#crewmembers").innerHTML.matchAll(/<td id="chargrowth">(.*)<\/td>/g);
for (const growthMatchLoop of growthMatch) {
let growthObj = [parseInt(growthMatchLoop[1].replace(",","").replace(",","").replace(",",""))];
for (const growth of growthObj) {
growthArray.push(growth);}}
var growthNumbers = growthArray.map(Number)
const growthTotal = growthNumbers.reduce(reducer)
document.querySelector("#growthInsert").textContent = growthTotal.toLocaleString("en-US")
document.querySelector("#growthAvg").textContent = Math.round(growthTotal/totalMembers).toLocaleString("en-US")
}, time);
var loadingimg = "<img src=https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/loading.gif>"
var crewdesc = document.querySelector("#content-header-row > div:nth-child("+myCrew+") > div > div.text-left").innerHTML.replaceAll("<hr>","<p>")
var crewenemy = '';
if (document.querySelector("#content-header-row > div:nth-child("+(myCrew-1)+") > div > div:nth-child(3)").innerHTML.match(/<a href="crew_profile\.php\?id=.*=.*">.* Enemy<\/a><\/b>/i) != null)
crewenemy = " | "+document.querySelector("#content-header-row > div:nth-child("+(myCrew-1)+") > div > div:nth-child(3)").innerHTML.match(/<a href="crew_profile\.php\?id=.*=.*">.* Enemy<\/a><\/b>/i)
if (crewenemy == null)
crewenemy = ""
var crewally = '';
if (document.querySelector("#content-header-row > div:nth-child("+(myCrew-1)+") > div > div:nth-child(3)").innerHTML.match(/<a href="crew_profile\.php\?id=.*=.*">.* Alliance<\/a><\/b>/i) != null)
crewally = "<br>"+document.querySelector("#content-header-row > div:nth-child("+(myCrew-1)+") > div > div:nth-child(3)").innerHTML.match(/<a href="crew_profile\.php\?id=.*=.*">.* Alliance<\/a><\/b>/i)
if (crewally == null)
crewally = ""
var content = `
<div id="crewlinks">
<a href=/trade?isCrewTrade=1&tradeWith=`+crewID+`>Trade</a> |
<a href=/treasury?`+treasury[1]+`>Treasury</a> |
<a href=/crew_raidresults.php?most_recent=MoxxiMod+raid+results&crewid=`+crewID+`>Raid Results</a> |
<a href=/crew_trophyroom.php?crewid=`+crewID+`>Trophies</a>
`+crewally+`
`+crewenemy+`
</div>
<p><br>
<table id="outercrewpro"><tr>
<td valign="top" width=500px height="590px">
<table>
<tr><td id="crewpic"><center>`+crewPic+`</td></tr>
<tr><td></td></tr>
</table>
</td>
<td valign="top">
<table class="crewpro" width="640px">
<tr>
<td><b>CREATED</b><br>`+createdDate+`</td>
<td><b>MEMBERS</b><br>`+totalMembers+`/200</td>
<td><b>LEADER</b><br>`+leaderChar+`</td>
<td><b>AVG LVL</b><br>`+avgLevel+`</td>
</tr>
<tr>
<td><b>TOT POWER</b><br><span id="powerInsert">`+loadingimg+`</span></td><td><b>AVG POWER</b><br><span id="powerAvg">`+loadingimg+`</span></td>
<td><b>TOT ELE DMG</b><br><span id="eleInsert">`+loadingimg+`</span></td><td><b>AVG ELE DMG</b><br><span id="eleAvg">`+loadingimg+`</span></td>
</tr><tr>
<td><b>TOT ATK</b><br><span id="atkInsert">`+loadingimg+`</span></td><td><b>AVG ATK</b><br><span id="atkAvg">`+loadingimg+`</span></td>
<td><b>TOT HP</b><br><span id="hpInsert">`+loadingimg+`</span></td><td><b>AVG HP</b><br><span id="hpAvg">`+loadingimg+`</span></td>
</tr>
<tr>
<td><b>TOT CHAOS</b><br><span id="chaosInsert">`+loadingimg+`</span></td><td><b>AVG CHAOS</b><br><span id="chaosAvg">`+loadingimg+`</span></td>
<td><b>TOT WILDER</b><br><span id="wildInsert">`+loadingimg+`</span></td><td><b>AVG WILDER</b><br><span id="wildAvg">`+loadingimg+`</span></td>
</tr><tr>
<td><b>TOT GROWTH</b><br><span id="growthInsert">`+loadingimg+`</span></td><td><b>AVG GROWTH</b><br><span id="growthAvg">`+loadingimg+`</span></td>
<td valign="top"><b></b></td>
</tr>
</td></tr></table><center>
<b>LAST RAID</b>: `+lastRaid2+`
<div id="crewdesc"><p style="margin-top:5px">
`+crewdesc+`<p></div>
<table id="alliesandenemies"><tr>
<td valign="top">
<b>ALLIES</b><br><center>
<div class="allies">
`+allies+`
</div>
</td>
<td valign="top">
<b>ENEMIES</b><br><center>
<div class="allies">
`+enemies+`
</div>
</td></tr></table>
<div id=crewupgrades><center>
`+crewUpgrades+`
</td></tr></table></div>
`
var header = document.querySelector("#content-header-row > div > div.widget-content.widget-content-area.br-6 > h2")
header.innerHTML = header.innerHTML+content
var columns = document.querySelector("#content-header-row")
columns.innerHTML = columns.innerHTML.replace(/<\/div>[\n\r]<div class="col-lg-6 col-12 layout-spacing">[\n\r].*/i,"")
var upgrades = document.querySelector("#content-header-row").innerHTML
var gps = upgrades.match(/<img border="0" src="\/images\/crewup\/gps\.gif" onmouseover="popup\(event,'<div style="width:200px"><b>Global Positioning System \(Level (.*)\/(.*) \+(.*)\)<\/b><br>Increases chance a crew member will assist you in a fight\. Each upgrade gives an additional 1% chance\.<\/div>','808080'\)" ;="" onmouseout="kill\(\)">/i)
var gpslevel = (parseInt(gps[1])+parseInt(gps[3]))/parseInt(gps[2])*100
if (gpslevel != 100){GM_addStyle ( `body img[src*="crewup/gps.gif"]{filter: grayscale(100%) !important;}`)}
if (gpslevel == 100){GM_addStyle ( `body img[src*="crewup/gps.gif"]{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/crewup1.gif") !important;}`)}
var depository = upgrades.match(/<img border="0" src="\/images\/crewup\/depository\.gif" onmouseover="popup\(event,'<div style="width:200px"><b>Depository \(Level (.*)\/(.*) \+(.*)\)<\/b><br>Increases the amount of points that drop for the crew during successful guardian raids\. Each upgrade gives a 1% increase\.<\/div>','808080'\)" ;="" onmouseout="kill\(\)">/i)
var depositorylevel = (parseInt(depository[1])+parseInt(depository[3]))/parseInt(depository[2])*100
if (depositorylevel != 100){GM_addStyle ( `body img[src*="crewup/depository.gif"]{filter: grayscale(100%) !important;}`)}
if (depositorylevel == 100){GM_addStyle ( `body img[src*="crewup/depository.gif"]{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/crewup2.gif") !important;}`)}
var morale = upgrades.match(/<img border="0" src="\/images\/crewup\/morale\.gif" onmouseover="popup\(event,'<div style="width:200px"><b>Morale \(Level (.*)\/(.*) \+(.*)\)<\/b><br>Increases all crew members HP\. Each upgrade gives a 1% HP increase\.<\/div>','808080'\)" ;="" onmouseout="kill\(\)">/i)
var moralelevel = (parseInt(morale[1])+parseInt(morale[3]))/parseInt(morale[2])*100
if (moralelevel != 100){GM_addStyle ( `body img[src*="crewup/morale.gif"]{filter: grayscale(100%) !important;}`)}
if (moralelevel == 100){GM_addStyle ( `body img[src*="crewup/morale.gif"]{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/crewup3.gif") !important;}`)}
var drums = upgrades.match(/<img border="0" src="\/images\/crewup\/wardrums\.gif" onmouseover="popup\(event,'<div style="width:200px"><b>War Drums \(Level (.*)\/(.*) \+(.*)\)<\/b><br>Increases all members ATK\. Each upgrade gives a 1% ATK increase\.<\/div>','808080'\)" ;="" onmouseout="kill\(\)">/i)
var drumslevel = (parseInt(drums[1])+parseInt(drums[3]))/parseInt(drums[2])*100
if (drumslevel != 100){GM_addStyle ( `body img[src*="crewup/wardrums.gif"]{filter: grayscale(100%) !important;}`)}
if (drumslevel == 100){GM_addStyle ( `body img[src*="crewup/wardrums.gif"]{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/crewup4.gif") !important;}`)}
var fury = upgrades.match(/<img border="0" src="\/images\/crewup\/fury\.gif" onmouseover="popup\(event,'<div style="width:200px"><b>Fury \(Level (.*)\/(.*) \+(.*)\)<\/b><br>Gives all crew members additional rage per turn\. Each upgrade awards 20 rage per turn\.<\/div>','808080'\)" ;="" onmouseout="kill\(\)">/i)
var furylevel = (parseInt(fury[1])+parseInt(fury[3]))/parseInt(fury[2])*100
if (furylevel != 100){GM_addStyle ( `body img[src*="crewup/fury.gif"]{filter: grayscale(100%) !important;}`)}
if (furylevel == 100){GM_addStyle ( `body img[src*="crewup/fury.gif"]{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/crewup5.gif") !important;}`)}
var fire = upgrades.match(/<img border="0" src="\/images\/crewup\/underfire\.gif" onmouseover="popup\(event,'<div style="width:200px"><b>Under Fire \(Level (.*)\/(.*) \+(.*)\)<\/b><br>All crew members strip more exp from players on the crew hitlist\. Each upgrade gives 1% increase\.<\/div>','808080'\)" ;="" onmouseout="kill\(\)">/i)
var firelevel = (parseInt(fire[1])+parseInt(fire[3]))/parseInt(fire[2])*100
if (firelevel != 100){GM_addStyle ( `body img[src*="crewup/underfire.gif"]{filter: grayscale(100%) !important;}`)}
if (firelevel == 100){GM_addStyle ( `body img[src*="crewup/underfire.gif"]{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/crewup6.gif") !important;}`)}
var res = upgrades.match(/<img border="0" src="\/images\/crewup\/resistance\.gif" onmouseover="popup\(event,'<div style="width:200px"><b>Essential Resistance \(Level (.*)\/(.*) \+(.*)\)<\/b><br>Increases all crew members resistances during crew raids\. Each upgrade gives a 1% increase\.<\/div>','808080'\)" ;="" onmouseout="kill\(\)">/i)
var reslevel = (parseInt(res[1])+parseInt(res[3]))/parseInt(res[2])*100
if (reslevel != 100){GM_addStyle ( `body img[src*="crewup/resistance.gif"]{filter: grayscale(100%) !important;}`)}
if (reslevel == 100){GM_addStyle ( `body img[src*="crewup/resistance.gif"]{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/crewup7.gif") !important;}`)}
var power = upgrades.match(/<img border="0" src="\/images\/crewup\/power\.gif" onmouseover="popup\(event,'<div style="width:200px"><b>Essential Power \(Level (.*)\/(.*) \+(.*)\)<\/b><br>Increases all crew members elemental power during crew raids\. Each upgrade gives a 1% increase\.<\/div>','808080'\)" ;="" onmouseout="kill\(\)">/i)
var powerlevel = (parseInt(power[1])+parseInt(power[3]))/parseInt(power[2])*100
if (powerlevel != 100){GM_addStyle ( `body img[src*="crewup/power.gif"]{filter: grayscale(100%) !important;}`)}
if (powerlevel == 100){GM_addStyle ( `body img[src*="crewup/power.gif"]{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/crewup8.gif") !important;}`)}
var temper = upgrades.match(/<img border="0" src="\/images\/crewup\/maxcap\.gif" onmouseover="popup\(event,'<div style="width:200px"><b>Maximum Temper \(Level (.*)\/(.*) \+(.*)\)<\/b><br>Increases all crew members max rage cap\. Each upgrade increases cap by 200\.<\/div>','808080'\)" ;="" onmouseout="kill\(\)">/i)
var temperlevel = (parseInt(temper[1])+parseInt(temper[3]))/parseInt(temper[2])*100
if (temperlevel != 100){GM_addStyle ( `body img[src*="crewup/maxcap.gif"]{filter: grayscale(100%) !important;}`)}
if (temperlevel == 100){GM_addStyle ( `body img[src*="crewup/maxcap.gif"]{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/crewup9.gif") !important;}`)}
})})}
// god status page
if (document.URL.indexOf("godstatus") != -1 ) {
GM_addStyle ( `
#content-header-row > h2{background:none !important;}
hr.hr {border-top: 1px solid #ffffff;margin: 3px;}
#content-header-row > div{display: none !important;}
`);
var Agnar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Agnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Agnar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Agnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Agnar == "")
Agnar = "Agnar"
var Valzek = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Valzek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Valzek = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Valzek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Valzek == "")
Valzek = "Valzek"
var Arcon = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Arcon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Arcon = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Arcon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Arcon == "")
Arcon = "Arcon"
var Firan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Firan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Firan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Firan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Firan == "")
Firan = "Firan"
var Kinark = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Kinark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Kinark = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Kinark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Kinark == "")
Kinark = "Kinark"
var Shayar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shayar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Shayar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shayar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Shayar == "")
Shayar = "Shayar"
var Holgor = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Holgor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Holgor = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Holgor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Holgor == "")
Holgor = "Holgor"
var Envar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Envar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Envar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Envar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Envar == "")
Envar = "Envar"
var Banok = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Banok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Banok = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Banok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Banok == "")
Banok = "Banok"
var Rezun = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rezun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Rezun = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rezun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Rezun == "")
Rezun = "Rezun"
var Rillax = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rillax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Rillax = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rillax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Rillax == "")
Rillax = "Rillax"
var Villax = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Villax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Villax = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Villax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Villax == "")
Villax = "Villax"
var Dexor = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dexor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Dexor = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dexor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Dexor == "")
Dexor = "Dexor"
var Gregov = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gregov.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Gregov = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gregov.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Gregov == "")
Gregov = "Gregov"
var Murfax = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Murfax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Murfax = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Murfax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Murfax == "")
Murfax = "Murfax"
var Thanox = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Thanox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Thanox = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Thanox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Thanox == "")
Thanox = "Thanox"
var Skarthul = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Skarthul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Skarthul = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Skarthul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Skarthul == "")
Skarthul = "Skarthul"
var Straya = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Straya.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Straya = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Straya.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Straya == "")
Straya = "Straya"
var Dlanod = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dlanod.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Dlanod = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dlanod.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Dlanod == "")
Dlanod = "Dlanod"
var Viserion = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Viserion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Viserion = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Viserion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Viserion == "")
Viserion = "Viserion"
var Balerion = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Balerion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Balerion = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Balerion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Balerion == "")
Balerion = "Balerion"
var Xynak = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Xynak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Xynak = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Xynak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Xynak == "")
Xynak = "Xynak"
var Crolvak = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crolvak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Crolvak = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crolvak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Crolvak == "")
Crolvak = "Crolvak"
var Esquin = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Esquin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Esquin = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Esquin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Esquin == "")
Esquin = "Esquin"
var Raiyar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Raiyar, the Shadow Master.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Raiyar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Raiyar, the Shadow Master.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Raiyar == "")
Raiyar = "Raiyar"
var Bolkor = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Bolkor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Bolkor = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Bolkor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Bolkor == "")
Bolkor = "Bolkor"
var Nafir = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nafir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Nafir = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nafir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Nafir == "")
Nafir = "Nafir"
var Yirkon = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Yirkon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Yirkon = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Yirkon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Yirkon == "")
Yirkon = "Yirkon"
var Keeper = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Keeper of Nature.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Keeper = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Keeper of Nature.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Keeper == "")
Keeper = "Keeper"
var Akkel = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Akkel.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Akkel = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Akkel.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Akkel == "")
Akkel = "Akkel"
var Nayark = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nayark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Nayark = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nayark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Nayark == "")
Nayark = "Nayark"
var Apparition = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Apparition.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Apparition = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Apparition.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Apparition == "")
Apparition = "Apparition"
var Zikkir = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zikkir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Zikkir = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zikkir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Zikkir == "")
Zikkir = "Zikkir"
var Volgan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Volgan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Volgan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Volgan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Volgan == "")
Volgan = "Volgan"
var Jorun = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Jorun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Jorun = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Jorun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Jorun == "")
Jorun = "Jorun"
var Tarkin = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tarkin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Tarkin = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tarkin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Tarkin == "")
Tarkin = "Tarkin"
var Sacrina = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sacrina.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Sacrina = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sacrina.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Sacrina == "")
Sacrina = "Sacrina"
var Karvaz = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Karvaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Karvaz = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Karvaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Karvaz == "")
Karvaz = "Karvaz"
var Felroc = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Felroc.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Felroc = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Felroc.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Felroc == "")
Felroc = "Felroc"
var Kretok = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Kretok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Kretok = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Kretok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Kretok == "")
Kretok = "Kretok"
var Drake = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Drake.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Drake = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Drake.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Drake == "")
Drake = "Drake"
var Captain = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Captain.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Captain = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Captain.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Captain == "")
Captain = "Captain"
var Qsec = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Q-SEC.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Qsec = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Q-SEC.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Qsec == "")
Qsec = "Q-SEC"
var Dragonite = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dragonite.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Dragonite = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dragonite.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Dragonite == "")
Dragonite = "Dragonite"
var Beast = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Beast.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Beast = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Beast.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Beast == "")
Beast = "Beast"
var Slug = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Slug.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Slug = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Slug.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Slug == "")
Slug = "Slug"
var Sylvanna = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sylvanna.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Sylvanna = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sylvanna.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Sylvanna == "")
Sylvanna = "Sylvanna"
var Lacuste = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Lacuste.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Lacuste = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Lacuste.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Lacuste == "")
Lacuste = "Lacuste"
var Anvilfist = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Anvilfist.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Anvilfist = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Anvilfist.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Anvilfist == "")
Anvilfist = "Anvilfist"
var Gorganus = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gorganus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Gorganus = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gorganus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Gorganus == "")
Gorganus = "Gorganus"
var Ormsul = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ormsul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Ormsul = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ormsul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Ormsul == "")
Ormsul = "Ormsul"
var Skybrine = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Skybrine.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Skybrine = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Skybrine.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Skybrine == "")
Skybrine = "Skybrine"
var Windstrike = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Windstrike.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Windstrike = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Windstrike.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Windstrike == "")
Windstrike = "Windstrike"
var Grivvek = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Grivvek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Grivvek = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Grivvek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Grivvek == "")
Grivvek = "Grivvek"
var Varsanor = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Varsanor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Varsanor = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Varsanor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Varsanor == "")
Varsanor = "Varsanor"
var Crantos = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crantos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Crantos = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crantos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Crantos == "")
Crantos = "Crantos"
var Emerald = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Emerald.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Emerald = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Emerald.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Emerald == "")
Emerald = "Emerald"
var Murderface = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Murderface.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Murderface = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Murderface.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Murderface == "")
Murderface = "Murderface"
var Detox = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Detox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Detox = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Detox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Detox == "")
Detox = "Detox"
var Samatha = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Samatha.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Samatha = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Samatha.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Samatha == "")
Samatha = "Samatha"
var Anguish = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Anguish.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Anguish = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Anguish.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Anguish == "")
Anguish = "Anguish"
var Numerocure = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Numerocure.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Numerocure = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Numerocure.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Numerocure == "")
Numerocure = "Numerocure"
var Hackerphage = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Hackerphage.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Hackerphage = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Hackerphage.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Hackerphage == "")
Hackerphage = "Hackerphage"
var Howldroid = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Howldroid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Howldroid = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Howldroid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Howldroid == "")
Howldroid = "Howldroid"
var Slashbrood = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Slashbrood.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Slashbrood = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Slashbrood.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Slashbrood == "")
Slashbrood = "Slashbrood"
var Neudeus = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Neudeus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Neudeus = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Neudeus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Neudeus == "")
Neudeus = "Neudeus"
var Baron = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Baron.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Baron = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Baron.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Baron == "")
Baron = "Baron"
var Freezebreed = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Freezebreed.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Freezebreed = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Freezebreed.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Freezebreed == "")
Freezebreed = "Freezebreed"
var Rotborn = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rotborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Rotborn = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rotborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Rotborn == "")
Rotborn = "Rotborn"
var Melt = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Melt.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Melt = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Melt.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Melt == "")
Melt = "Melt"
var Chaos = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Lady Chaos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Chaos = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Lady Chaos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Chaos == "")
Chaos = "Chaos"
var Gnorb = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gnorb.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Gnorb = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gnorb.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Gnorb == "")
Gnorb = "Gnorb"
var Nessam = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nessam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Nessam = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nessam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Nessam == "")
Nessam = "Nessam"
var Crane = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crane.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Crane = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crane.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Crane == "")
Crane = "Crane"
var Pinosis = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Pinosis.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Pinosis = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Pinosis.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Pinosis == "")
Pinosis = "Pinosis"
var Tsort = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tsort.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Tsort = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tsort.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Tsort == "")
Tsort = "Tsort"
var Shadow = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shadow<\/a>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Shadow = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shadow<\/a>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Shadow == "")
Shadow = "Shadow"
var Xordam = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Xordam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Xordam = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Xordam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Xordam == "")
Xordam = "Xordam"
var Ebliss = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ebliss.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Ebliss = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ebliss.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Ebliss == "")
Ebliss = "Ebliss"
var Brutalitar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Brutalitar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Brutalitar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Brutalitar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Brutalitar == "")
Brutalitar = "Brutalitar"
var Dreg = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dreg.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Dreg = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dreg.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Dreg == "")
Dreg = "Dreg"
var Ashnar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ashnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Ashnar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ashnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Ashnar == "")
Ashnar = "Ashnar"
var Zhul = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zhul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Zhul = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zhul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Zhul == "")
Zhul = "Zhul"
var Ganja = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ganja.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Ganja = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ganja.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Ganja == "")
Ganja = "Ganja"
var Sibannac = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sibannac.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Sibannac = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sibannac.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Sibannac == "")
Sibannac = "Sibannac"
var Smoot = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Smoot.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Smoot = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Smoot.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Smoot == "")
Smoot = "Smoot"
var Bloodchill = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Bloodchill.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Bloodchill = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Bloodchill.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Bloodchill == "")
Bloodchill = "Bloodchill"
var Nabak = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nabak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Nabak = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nabak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Nabak == "")
Nabak = "Nabak"
var Shuk = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shuk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Shuk = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shuk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Shuk == "")
Shuk = "Shuk"
var Varan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Varan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Varan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Varan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Varan == "")
Varan = "Varan"
var Narada = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Narada.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Narada = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Narada.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Narada == "")
Narada = "Narada"
var Ariella = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ariella.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Ariella = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ariella.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Ariella == "")
Ariella = "Ariella"
var Suka = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Suka.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Suka = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Suka.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Suka == "")
Suka = "Suka"
var Ganeshan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ganeshan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Ganeshan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ganeshan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Ganeshan == "")
Ganeshan = "Ganeshan"
var Garland = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Garland.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Garland = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Garland.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Garland == "")
Garland = "Garland"
var Tylos = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tylos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Tylos = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tylos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Tylos == "")
Tylos = "Tylos"
var Threk = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Threk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Threk = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Threk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Threk == "")
Threk = "Threk"
var Jazzmin = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Jazzmin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Jazzmin = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Jazzmin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Jazzmin == "")
Jazzmin = "Jazzmin"
var Sigil = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sigil.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Sigil = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sigil.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Sigil == "")
Sigil = "Sigil"
var Synge = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Synge.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Synge = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Synge.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Synge == "")
Synge = "Synge"
var Rancid = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rancid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Rancid = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rancid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Rancid == "")
Rancid = "Rancid"
var Terrance = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Terrance.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Terrance = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Terrance.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Terrance == "")
Terrance = "Terrance"
var Zertan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zertan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Zertan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zertan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Zertan == "")
Zertan = "Zertan"
var Quiver = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Quiver.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Quiver = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Quiver.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Quiver == "")
Quiver = "Quiver"
var Wanhiroeaz = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Wanhiroeaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Wanhiroeaz = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Wanhiroeaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Wanhiroeaz == "")
Wanhiroeaz = "Wanhiroeaz"
var Vitkros = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Vitkros.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Vitkros = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Vitkros.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Vitkros == "")
Vitkros = "Vitkros"
var Hyrak = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Hyrak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Hyrak = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Hyrak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Hyrak == "")
Hyrak = "Hyrak"
var Mistress = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Mistress.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Mistress = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Mistress.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Mistress == "")
Mistress = "Mistress"
var Traxodon = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Traxodon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null)
Traxodon = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Traxodon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")
if (Traxodon == "")
Traxodon = "Traxodon"
var header = document.querySelector("#content-header-row > h2")
var style2 = "height:445px;width:445px;opacity:25%;"
var style3 = "height:293px;width:293px;opacity:25%;"
var style4 = "height:218px;width:218px;opacity:25%;"
var style5 = "height:172px;width:172px;opacity:25%;"
var style6 = "height:142px;width:142px;opacity:25%;"
var style7 = "height:120px;width:120px;opacity:25%;"
var godtabs = `
GODS DEFEATED IN THE LAST 24 HOURS<p>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/agnargod.png style="`+style2+`" alt="agnar"><div class="centered">`+Agnar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/valzekdeathgod.png style="`+style2+`" alt="valzek"><div class="centered">`+Valzek+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/arcongod.png style="`+style5+`" alt="arcon"><div class="centered">`+Arcon+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/firangod.png style="`+style5+`" alt="firan"><div class="centered">`+Firan+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/kinarkgod.png style="`+style5+`" alt="kinark"><div class="centered">`+Kinark+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/shayargod.png style="`+style5+`" alt="shayar"><div class="centered">`+Shayar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/holgorgod.png style="`+style5+`" alt="holgor"><div class="centered">`+Holgor+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/vomgod1.jpg style="`+style5+`" alt="envar"><div class="centered">`+Envar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/vomgod2.jpg style="`+style5+`" alt="banok"><div class="centered">`+Banok+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/vomgod3.jpg style="`+style5+`" alt="rezun"><div class="centered">`+Rezun+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/Rillaxgod.png style="`+style5+`" alt="rillax"><div class="centered">`+Rillax+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/villaxgod.png style="`+style5+`" alt="villax"><div class="centered">`+Villax+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/velgod1.jpg style="`+style4+`" alt="dexor"><div class="centered">`+Dexor+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/velgod2.jpg style="`+style4+`" alt="gregov"><div class="centered">`+Gregov+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/velgod3.jpg style="`+style4+`" alt="murfax"><div class="centered">`+Murfax+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/velendgamegod.jpg style="`+style4+`" alt="thanox"><div class="centered">`+Thanox+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/moba98.jpg style="`+style5+`" alt="skarthul"><div class="centered">`+Skarthul+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/mobb11.jpg style="`+style5+`" alt="straya"><div class="centered">`+Straya+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/dlanod.jpg style="`+style5+`" alt="dlanod"><div class="centered">`+Dlanod+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/winterosdragon1.jpg style="`+style5+`" alt="viserion"><div class="centered">`+Viserion+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/mobe79.jpg style="`+style5+`" alt="balerion"><div class="centered">`+Balerion+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3arcane.jpg style="`+style6+`" alt="xynak"><div class="centered">`+Xynak+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3fire.jpg style="`+style6+`" alt="crolvak"><div class="centered">`+Crolvak+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3kinetic.jpg style="`+style6+`" alt="esquin"><div class="centered">`+Esquin+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3shadow.jpg style="`+style6+`" alt="raiyar"><div class="centered">`+Raiyar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3holy.jpg style="`+style6+`" alt="bolkor"><div class="centered">`+Bolkor+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegodultimate.jpg style="`+style6+`" alt="nafir"><div class="centered">`+Nafir+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2shadow.jpg style="`+style5+`" alt="yirkon"><div class="centered">`+Yirkon+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2kinetic.jpg style="`+style5+`" alt="keeper"><div class="centered">`+Keeper+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2fire.jpg style="`+style5+`" alt="akkel"><div class="centered">`+Akkel+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2arcane.jpg style="`+style5+`" alt="nayark"><div class="centered">`+Nayark+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2holy.jpg style="`+style5+`" alt="apparition"><div class="centered">`+Apparition+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1shadow.jpg style="`+style5+`" alt="zikkir"><div class="centered">`+Zikkir+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1kinetic.jpg style="`+style5+`" alt="volgan"><div class="centered">`+Volgan+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1fire.jpg style="`+style5+`" alt="jorun"><div class="centered">`+Jorun+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1arcane.jpg style="`+style5+`" alt="tarkin"><div class="centered">`+Tarkin+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1holy.jpg style="`+style5+`" alt="sacrina"><div class="centered">`+Sacrina+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/lordkarvazbase.jpg style="`+style3+`" alt="karvaz"><div class="centered">`+Karvaz+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/firemob43.jpg style="`+style3+`" alt="felroc"><div class="centered">`+Felroc+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/natureboss1.jpg style="`+style3+`" alt="kretok"><div class="centered">`+Kretok+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/under_undeadDragon.jpg style="`+style6+`" alt="drake"><div class="centered">`+Drake+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/under_zombie1.jpg style="`+style6+`" alt="captain"><div class="centered">`+Captain+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/qsecCommander.jpg style="`+style6+`" alt="qsec"><div class="centered">`+Qsec+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/jadedragonite.jpg style="`+style6+`" alt="dragonite"><div class="centered">`+Dragonite+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/cardBeast.jpg style="`+style6+`" alt="beast"><div class="centered">`+Beast+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/noxSlug.jpg style="`+style6+`" alt="slug"><div class="centered">`+Slug+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/sylvanna_torlai.jpg style="`+style5+`" alt="sylvanna"><div class="centered">`+Sylvanna+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lacuste.jpg style="`+style5+`" alt="lacuste"><div class="centered">`+Lacuste+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/anvilfist.jpg style="`+style5+`" alt="anvilfist"><div class="centered">`+Anvilfist+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/gorganus.jpg style="`+style5+`" alt="gorganus"><div class="centered">`+Gorganus+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/ormsul.jpg style="`+style5+`" alt="ormsul"><div class="centered">`+Ormsul+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/skyb.jpg style="`+style5+`" alt="skybrine"><div class="centered">`+Skybrine+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/windstrike.jpg style="`+style5+`" alt="windstrike"><div class="centered">`+Windstrike+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/zomg-assasinzz.jpg style="`+style5+`" alt="grivvek"><div class="centered">`+Grivvek+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/Cave%20Bat%20Lord.jpg style="`+style5+`" alt="varsanor"><div class="centered">`+Varsanor+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/bossqsecbloke.jpg style="`+style5+`" alt="crantos"><div class="centered">`+Crantos+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian1.gif style="`+style5+`" alt="emerald"><div class="centered">`+Emerald+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian5.gif style="`+style5+`" alt="murderface"><div class="centered">`+Murderface+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian4.gif style="`+style5+`" alt="detox"><div class="centered">`+Detox+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian3.gif style="`+style5+`" alt="samatha"><div class="centered">`+Samatha+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian2.gif style="`+style5+`" alt="anguish"><div class="centered">`+Anguish+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob7.jpg style="`+style4+`" alt="hackerphage"><div class="centered">`+Hackerphage+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob8.jpg style="`+style4+`" alt="howldroid"><div class="centered">`+Howldroid+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob9.jpg style="`+style4+`" alt="slashbrood"><div class="centered">`+Slashbrood+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob10.jpg style="`+style4+`" alt="neudeus"><div class="centered">`+Neudeus+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob2.jpg style="`+style6+`" alt="baron"><div class="centered">`+Baron+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob1.jpg style="`+style6+`" alt="freezebreed"><div class="centered">`+Freezebreed+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob4.jpg style="`+style6+`" alt="rotborn"><div class="centered">`+Rotborn+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob3.jpg style="`+style6+`" alt="melt"><div class="centered">`+Melt+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob5.jpg style="`+style6+`" alt="chaos"><div class="centered">`+Chaos+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob6.jpg style="`+style6+`" alt="numerocure"><div class="centered">`+Numerocure+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Gnorb.jpg style="`+style7+`" alt="gnorb"><div class="centered">`+Gnorb+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Nessam.jpg style="`+style7+`" alt="nessam"><div class="centered">`+Nessam+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Crane.jpg style="`+style7+`" alt="crane"><div class="centered">`+Crane+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Pinosis.jpg style="`+style7+`" alt="pinosis"><div class="centered">`+Pinosis+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Tsort.jpg style="`+style7+`" alt="tsort"><div class="centered">`+Tsort+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Shadow.jpg style="`+style7+`" alt="shadow"><div class="centered">`+Shadow+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Xordam.jpg style="`+style7+`" alt="xordam"><div class="centered">`+Xordam+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/stoneravenboss4.jpg style="`+style5+`" alt="ebliss"><div class="centered">`+Ebliss+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/guardset4boss2.jpg style="`+style5+`" alt="brutalitar"><div class="centered">`+Brutalitar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/guardset4boss3.jpg style="`+style5+`" alt="dreg"><div class="centered">`+Dreg+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/guardset4boss4.jpg style="`+style5+`" alt="ashnar"><div class="centered">`+Ashnar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/guardset4boss5.jpg style="`+style5+`" alt="zhul"><div class="centered">`+Zhul+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/ganja.jpg style="`+style6+`" alt="ganja"><div class="centered">`+Ganja+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/sibannac.jpg style="`+style6+`" alt="sibannac"><div class="centered">`+Sibannac+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/smoot.jpg style="`+style6+`" alt="smoot"><div class="centered">`+Smoot+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/grizzlybear.jpg style="`+style6+`" alt="blood"><div class="centered">`+Bloodchill+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/abomination.jpg style="`+style6+`" alt="ag"><div class="centered">`+Nabak+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/newdemon6.jpg style="`+style6+`" alt="kro"><div class="centered">`+Shuk+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/lord_varan.gif style="`+style5+`" alt="varan"><div class="centered">`+Varan+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lord_narada.gif style="`+style5+`" alt="narada"><div class="centered">`+Narada+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lady_ariella.gif style="`+style5+`" alt="ariella"><div class="centered">`+Ariella+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lord_suka.gif style="`+style5+`" alt="suka"><div class="centered">`+Suka+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lord_ganesha.gif style="`+style5+`" alt="ganeshan"><div class="centered">`+Ganeshan+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod1.jpg style="`+style5+`" alt="wanhiroeaz"><div class="centered">`+Wanhiroeaz+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod2.jpg style="`+style5+`" alt="vitkros"><div class="centered">`+Vitkros+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod3.jpg style="`+style5+`" alt="hyrak"><div class="centered">`+Hyrak+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod4.jpg style="`+style5+`" alt="mistress"><div class="centered">`+Mistress+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod5.jpg style="`+style5+`" alt="traxodon"><div class="centered">`+Traxodon+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/council1.jpg style="`+style5+`" alt="garland"><div class="centered">`+Garland+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/council2.jpg style="`+style5+`" alt="tylos"><div class="centered">`+Tylos+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/council3.jpg style="`+style5+`" alt="threk"><div class="centered">`+Threk+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/council4.jpg style="`+style5+`" alt="jazzmin"><div class="centered">`+Jazzmin+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/council5.jpg style="`+style5+`" alt="sigil"><div class="centered">`+Sigil+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/reddragon.jpg style="`+style5+`" alt="synge"><div class="centered">`+Synge+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/rancid.jpg style="`+style5+`" alt="rancid"><div class="centered">`+Rancid+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/terrance.jpg style="`+style5+`" alt="terrance"><div class="centered">`+Terrance+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zertan.jpg style="`+style5+`" alt="zertan"><div class="centered">`+Zertan+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/quiver.jpg style="`+style5+`" alt="quiver"><div class="centered">`+Quiver+`</div></div></td>
</tr></table>
`
header.innerHTML = godtabs
}
// MOXXIVISION
if (document.URL.indexOf("earnfreepoints") != -1 ) {
if (location.protocol !== 'https:') {
location.replace(`https:${location.href.substring(location.protocol.length)}`);}
GM_addStyle ( `
#content-header-row > div.outer{display:none !important;}
#content-header-row > div.outer2{display:none !important;}
#container > div.sidebar-wrapper.sidebar-theme{display:none !important;}
#Xmoxxivision{position:fixed !important; left: 1px !important; bottom: 200px !important;padding:10px !important;box-shadow:2px 2px 5px #000000, -2px -2px 5px #000000 !important; background: #202020 !important; z-index:10000 !important;}
`)};
if (document.URL.indexOf("earnfreepoints") != -1 ) {
$("body").append ( `
<div id="Xmoxxivision">
<a href=home>EXIT</a>
</div>
` );}
if (document.URL.indexOf("earnfreepoints") != -1 ) {
if (location.protocol !== 'https:') {
location.replace(`https:${location.href.substring(location.protocol.length)}`);}
var selectedID = document.querySelector("body").outerHTML.match(/value="(.*)" selected/)
fetch("/myaccount")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const chars = doc.querySelector("#cal");
var content = chars.innerHTML
var content2 = chars.innerHTML.replace(`<table id="zero-config"`,`<table id="content2"`)
GM_addStyle ( `
#zero-config > tbody > tr > td:nth-child(1){display: none !important;}
#zero-config > tbody > tr > td:nth-child(3){display: none !important;}
#zero-config > tbody > tr > td:nth-child(4){display: none !important;}
#zero-config > tbody > tr > td:nth-child(5){display: none !important;}
#zero-config > tbody > tr > td:nth-child(6){display: none !important;}
#zero-config > tbody > tr > td:nth-child(7){display: none !important;}
#zero-config > tbody > tr > td:nth-child(8){display: none !important;}
#zero-config > tbody > tr > td:nth-child(9){display: none !important;}
#zero-config > tbody > tr > td:nth-child(10){display: none !important;}
#zero-config > tbody > tr > td:nth-child(11){display: none !important;}
#zero-config > thead > tr > th:nth-child(11){display: none !important;}
#zero-config > thead{background: #0F0F0F}
#zero-config > tbody > tr{border-bottom:1px SOLID !important;}
#zero-config img[src*="Message.png"] {display: none !important;}
#zero-config img[src*="Attacked.png"] {display: none !important;}
#zero-config img[src*="Trade.png"] {display: none !important;}
#zero-config > tbody{width:100% !important;}
#zero-config > thead{width:100% !important;}
.outer {width:75%;height:900px;overflow-x:scroll;overflow-y:scroll;background:#0F0F0F;margin-right:5px !important;border:1px #454545 SOLID !important;}
.outer2 {width:23%;height:900px;overflow-x:none;overflow-y:scroll;background:#0F0F0F;border:1px #454545 SOLID !important;}
.rgahealth > tbody > tr > td {padding-top: 2px !important;padding-bottom: 1px !important;padding-right: 15px !important;padding-left: 5px !important;white-space: pre !important;}
#zero-config > tbody > tr {border: 1px SOLID #202020 !important;}
#zero-config > thead > tr > td > a > font,#zero-config > thead > tr > td > font{font-weight: bold;font-size:13px}
#zero-config > thead > tr > td{font-weight: bold;font-size:13px}
#zero-config > thead > tr > th,#zero-config > thead > tr > td{padding-right:15px !important; white-space: pre !important;}
#content2 > thead{display:none !important;}
#content2 > tbody > tr > td:nth-child(1){display: none !important;}
#content2 > tbody > tr > td:nth-child(2){display: none !important;}
#content2 > tbody > tr > td:nth-child(3){display: none !important;}
#content2 > tbody > tr > td:nth-child(4){display: none !important;}
#content2 > tbody > tr > td:nth-child(5){display: none !important;}
#content2 > tbody > tr > td:nth-child(6){display: none !important;}
#content2 > tbody > tr > td:nth-child(7){display: none !important;}
#content2 > tbody > tr > td:nth-child(8){display: none !important;}
#content2 > tbody > tr > td:nth-child(9){display: none !important;}
#content2 > tbody > tr > td:nth-child(10){display: none !important;}
#content2 > tbody > tr > td:nth-child(11){display: none !important;}
#content2 > thead > tr > th:nth-child(11){display: none !important;}
#content2 img[src*="Message.png"] {display: none !important;}
#content2 img[src*="Attacked.png"] {display: none !important;}
#content2 img[src*="Trade.png"] {display: none !important;}
#content2 > tbody > tr > td {text-align: center;}
#content2 > tbody > tr > td{background:#060707 !important;}
body > center > div.sub-header-container{display:none !important;}
#rightbar{display:none !important;}
#recentraid{display:none !important;}
#content-header-row{margin-top:-40px !important;}
body > center {background-image: url('https://studiomoxxi.com/ow_themes/custom_jobs/minimal_01/mm_patern.png') !important;}
#zero-config > tbody > tr > td:nth-child(2){position: sticky;left: 0;background: #0F0F0F;z-index: 2000;border: 3px #0F0F0F SOLID !important;}
#content { position: relative;
width: 100% !important;
flex-grow: 8;
margin-top: 130px;
margin-bottom: 0;
margin-left: 0px !important;
max-width: 100% !important;
transition: 15s;}
`);
setTimeout(function() {
$('#zero-config > thead > tr > th:nth-child(1)').html('CHARACTER');
$('#zero-config > thead > tr > th:nth-child(2)').html(`<a onmouseover="statspopup(event,'char level')" onmouseout="kill\(\)"><font color=#D4D4D4>LVL</a>`);
$('#zero-config > thead > tr > th:nth-child(3)').html(`<a onmouseover="statspopup(event,'char crew')" onmouseout="kill\(\)"><font color=#D4D4D4>CREW</a>`);
$('#zero-config > thead > tr > th:nth-child(4)').html(`<a onmouseover="statspopup(event,'number of turns until rage caps<br>mouseover to see circ status')" onmouseout="kill\(\)"><font color=#D4D4D4>RAGE FILLED</a>`);
$('#zero-config > thead > tr > th:nth-child(5)').html(`<a onmouseover="statspopup(event,'maximum rage')" onmouseout="kill\(\)"><font color=#D4D4D4>MAX RAGE</a>`);
$('#zero-config > thead > tr > th:nth-child(6)').html(`<a onmouseover="statspopup(event,'growth today')" onmouseout="kill\(\)"><font color=#D4D4D4>TODAY</a>`);
$('#zero-config > thead > tr > th:nth-child(7)').html(`<a onmouseover="statspopup(event,'growth yesterday')" onmouseout="kill\(\)"><font color=#D4D4D4>YESTERDAY</a>`);
$('#zero-config > thead > tr > th:nth-child(8)').html(`<a onmouseover="statspopup(event,'experience to level')" onmouseout="kill\(\)"><font color=#D4D4D4>EXP TO LEVEL</a>`);
$('#zero-config > thead > tr > th:nth-child(9)').html(`<a onmouseover="statspopup(event,'strength')" onmouseout="kill\(\)"><font color=#D4D4D4>STR</a>`);
$('#zero-config > thead > tr > th:nth-child(10)').html(`<a onmouseover="statspopup(event,'number of items equipped<br>will turn red if fewer than 10')" onmouseout="kill\(\)"><font color=#D4D4D4>ITEMS</a>`);
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
let header = document.querySelector("#zero-config > thead > tr");
let hdTD26 = document.createElement('td');
hdTD26.innerHTML = `<a onmouseover="statspopup(event,'does the char have tome shield wall skill?')" onmouseout="kill\(\)"><font color=#D4D4D4>TOME</a>`;
insertAfter(hdTD26, header.lastElementChild);
let hdTD25 = document.createElement('td');
hdTD25.innerHTML = `<a onmouseover="statspopup(event,'equipped class crest')" onmouseout="kill\(\)"><font color=#604999>CREST</a>`;
insertAfter(hdTD25, header.lastElementChild);
let hdTD21 = document.createElement('td');
hdTD21.innerHTML = `<a onmouseover="statspopup(event,'equipped ferocity crest')" onmouseout="kill\(\)"><font color=#B44313>CREST</a>`;
insertAfter(hdTD21, header.lastElementChild);
let hdTD22 = document.createElement('td');
hdTD22.innerHTML = `<a onmouseover="statspopup(event,'equipped preservation crest')" onmouseout="kill\(\)"><font color=#537BB9>CREST</a>`;
insertAfter(hdTD22, header.lastElementChild);
let hdTD23 = document.createElement('td');
hdTD23.innerHTML = `<a onmouseover="statspopup(event,'equipped affliction crest')" onmouseout="kill\(\)"><font color=#EAD500>CREST</a>`;
insertAfter(hdTD23, header.lastElementChild);
let hdTD24 = document.createElement('td');
hdTD24.innerHTML = `<a onmouseover="statspopup(event,'archfiend soul fragments')" onmouseout="kill\(\)"><font color=#D4D4D4>ARCH</a>`;
insertAfter(hdTD24, header.lastElementChild);
let hdTD20 = document.createElement('td');
hdTD20.innerHTML = `<a onmouseover="statspopup(event,'equipped chaos gem')" onmouseout="kill\(\)"><font color=#D4D4D4>GEM</a>`;
insertAfter(hdTD20, header.lastElementChild);
let hdTD16 = document.createElement('td');
hdTD16.innerHTML = `<a onmouseover="statspopup(event,'chaos ore')" onmouseout="kill\(\)"><font color=#D4D4D4>ORE</a>`;
insertAfter(hdTD16, header.lastElementChild);
let hdTD12 = document.createElement('td');
hdTD12.innerHTML = `<a onmouseover="statspopup(event,'equipped rune')" onmouseout="kill\(\)"><font color=#D4D4D4>RUNE</a>`;
insertAfter(hdTD12, header.lastElementChild);
let hdTD14 = document.createElement('td');
hdTD14.innerHTML = `<a onmouseover="statspopup(event,'elemental fuser')" onmouseout="kill\(\)"><font color=#D4D4D4>FUSR</a>`;
insertAfter(hdTD14, header.lastElementChild);
let hdTD4 = document.createElement('td');
hdTD4.innerHTML = `<a onmouseover="statspopup(event,'equipped badge')" onmouseout="kill\(\)"><font color=#D4D4D4>BADGE</a>`;
insertAfter(hdTD4, header.lastElementChild);
let hdTD15 = document.createElement('td');
hdTD15.innerHTML = `<a onmouseover="statspopup(event,'badge reputation')" onmouseout="kill\(\)"><font color=#D4D4D4>REPS</a>`;
insertAfter(hdTD15, header.lastElementChild);
let hdTD1 = document.createElement('td');
hdTD1.innerHTML = `<a onmouseover="statspopup(event,'hover booster to see time remaining')" onmouseout="kill\(\)"><font color=#D4D4D4>BOOSTER</a>`;
insertAfter(hdTD1, header.lastElementChild);
let hdTD3 = document.createElement('td');
hdTD3.innerHTML = `<a onmouseover="statspopup(event,'char power')" onmouseout="kill\(\)"><font color=#D4D4D4>POWER</a>`;
insertAfter(hdTD3, header.lastElementChild);
let hdTD2 = document.createElement('td');
hdTD2.innerHTML = `<a onmouseover="statspopup(event,'elemental damage')" onmouseout="kill\(\)"><font color=#D4D4D4>ELE</a>`;
insertAfter(hdTD2, header.lastElementChild);
let hdTD6 = document.createElement('td');
hdTD6.innerHTML = `<a onmouseover="statspopup(event,'chaos damage')" onmouseout="kill\(\)"><font color=#D4D4D4>CHAOS</a>`;
insertAfter(hdTD6, header.lastElementChild);
let hdTD7 = document.createElement('td');
hdTD7.innerHTML = `<a onmouseover="statspopup(event,'fire resist')" onmouseout="kill\(\)"><font color=#FF0000>RESIST</font>`;
insertAfter(hdTD7, header.lastElementChild);
let hdTD8 = document.createElement('td');
hdTD8.innerHTML = `<a onmouseover="statspopup(event,'arcane resist')" onmouseout="kill\(\)"><font color=FFFF00>RESIST</font>`;
insertAfter(hdTD8, header.lastElementChild);
let hdTD9 = document.createElement('td');
hdTD9.innerHTML = `<a onmouseover="statspopup(event,'shadow resist')" onmouseout="kill\(\)"><font color=7e01bc>RESIST</font>`;
insertAfter(hdTD9, header.lastElementChild);
let hdTD10 = document.createElement('td');
hdTD10.innerHTML = `<a onmouseover="statspopup(event,'holy resist')" onmouseout="kill\(\)"><font color=00FFFF>RESIST</font>`;
insertAfter(hdTD10, header.lastElementChild);
let hdTD11 = document.createElement('td');
hdTD11.innerHTML = `<a onmouseover="statspopup(event,'kinetic resist')" onmouseout="kill\(\)"><font color=00FF00>RESIST</font>`;
insertAfter(hdTD11, header.lastElementChild);
let hdTD5 = document.createElement('td');
hdTD5.innerHTML = `<a onmouseover="statspopup(event,'wilderness level')" onmouseout="kill\(\)"><font color=#D4D4D4>WLDR</a>`;
insertAfter(hdTD5, header.lastElementChild);
let hdTD13 = document.createElement('td');
hdTD13.innerHTML = `<a onmouseover="statspopup(event,'amulet of achievement')" onmouseout="kill\(\)"><font color=#D4D4D4>AMLT</a>`;
insertAfter(hdTD13, header.lastElementChild);
let hdTD17 = document.createElement('td');
hdTD17.innerHTML = `<a onmouseover="statspopup(event,'quest shard')" onmouseout="kill\(\)"><font color=#D4D4D4>SHRD</a>`;
insertAfter(hdTD17, header.lastElementChild);
let hdTD0 = document.createElement('td');
hdTD0.innerHTML = `<a onmouseover="statspopup(event,'active skills')" onmouseout="kill\(\)"><font color=#D4D4D4>SKILLS</a>`;
insertAfter(hdTD0, header.lastElementChild);
let hdTD18 = document.createElement('td');
hdTD18.innerHTML = `BACKPACK`;
insertAfter(hdTD18, header.lastElementChild);
let hdTD19 = document.createElement('td');
hdTD19.innerHTML = `<a onmouseover="statspopup(event,'will display skill resets, totems, add aug and remove aug if in backpack')" onmouseout="kill\(\)"><font color=#D4D4D4>UTILITY</a>`;
insertAfter(hdTD19, header.lastElementChild);
var charsTable = document.querySelector("#zero-config");
var charsTableRows = charsTable.rows.length;
for (let rownum = 1; rownum < charsTableRows; rownum++) {
var charid = document.querySelector("#zero-config > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replaceAll(/<a target="_top" href="https:\/\/.*\.outwar\.com\/world\?suid=/g,"").replace(/&serverid=.*<\/a>/g,"")
fetch("skills_info.php?suid="+charid+"&id=3008")
.then(response => response.text())
.then((response) => {
var circReady = response.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i)
var circCharging = response.match(/<b>This skill is recharging\. (.*) minutes remaining\.<\/b>/i)
var circUntrained = response.match(/<b>You have not learned this skill yet<\/b>/i)
var charid = document.querySelector("#zero-config > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replaceAll(/<a target="_top" href="https:\/\/.*\.outwar\.com\/world\?suid=/g,"").replace(/&serverid=.*<\/a>/g,"")
fetch("skills_info.php?suid="+charid+"&id=46")
.then(response => response.text())
.then((response) => {
var tomeShield = response.match(/<b>You have not learned this skill yet<\/b>/i)
var tome = '';
if (tomeShield == null)
tome = "<img src=https://torax.outwar.com/images/eventbook.jpg width=25px height=25px>"
if (tomeShield != null)
tome = "NO"
var charid = document.querySelector("#zero-config > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replaceAll(/<a target="_top" href="https:\/\/.*\.outwar\.com\/world\?suid=/g,"").replace(/&serverid=.*<\/a>/g,"")
fetch("ajax/backpackcontents.php?suid="+charid+"&tab=regular")
.then(response => response.text())
.then((response) => {
var backpack = response.match(/<span id="backpackmaxval" data-maxval="(.*)" data-isover=".*" data-curitemct="(.*)"><\/span>/i)
var bpItems = parseInt(backpack[2])
var bpCap = parseInt(backpack[1])
var bpMax = '';
if (bpItems > bpCap)
bpMax = "<font color=#FF0000>"
if (bpCap > bpItems)
bpMax = "<font color=#FFFFFF>"
if (bpCap == bpItems)
bpMax = "<font color=#FF0000>"
var addaug = response.match(/addaugs\.jpg/i)
var totem = response.match(/rechargetotem\.jpg/i)
var skillitem = response.match(/skillitem\.jpg/i)
var removeaug = response.match(/AugmentRemover\.gif/i)
var utility = '';
if (addaug != null)
utility += "<img src=images/addaugs.jpg height=25px width=25px> ";
if (totem != null)
utility += "<img src=images/rechargetotem.jpg height=25px width=25px> ";
if (skillitem != null)
utility += "<img src=images/skillitem.jpg height=25px width=25px> ";
if (removeaug != null)
utility += "<img src=images/items/AugmentRemover.gif height=25px width=25px> ";
if (utility == "")
utility = "none"
var charid = document.querySelector("#zero-config > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replaceAll(/<a target="_top" href="https:\/\/.*\.outwar\.com\/world\?suid=/g,"").replace(/&serverid=.*<\/a>/g,"")
fetch("ajax/backpackcontents.php?suid="+charid+"&tab=quest")
.then(response => response.text())
.then((response) => {
var amuletCnt = response.match(/data-name="Amulet of Achievement" data-itemqty="(.*)" data-itemid/i) || 0
var repCnt = response.match(/data-name="Badge Reputation" data-itemqty="(.*)" data-itemid/i) || 0
var oreCnt = response.match(/data-name="Chaos Ore" data-itemqty="(.*)" data-itemid/i) || 0
var shardCnt = response.match(/data-name="Quest Shard" data-itemqty="(.*)" data-itemid/i) || 0
var fuserCnt = response.match(/data-name="Elemental Fuser" data-itemqty="(.*)" data-itemid/i) || 0
var archCnt = response.match(/data-name="Archfiend Soul Fragment" data-itemqty="(.*)" data-itemid/i) || 0
var archCnt2 = '';
if (archCnt[1] >= 10)
archCnt2 = "<font color=00CC00>"+parseInt(archCnt[1])+"</font>"
if (archCnt[1] <= 9)
archCnt2 = parseInt(archCnt[1])
if (archCnt[1] == undefined)
archCnt2 = 0
var repCnt2 = '';
if (repCnt[1] >= 15)
repCnt2 = "<font color=00CC00>"+parseInt(repCnt[1])+"</font>"
if (repCnt[1] <= 14)
repCnt2 = parseInt(repCnt[1])
if (repCnt[1] == undefined)
repCnt2 = 0
var oreCnt2 = '';
if (oreCnt[1] >= 0)
oreCnt2 = "<font color=f441be>"+parseInt(oreCnt[1])+"</font>"
if (oreCnt[1] == 0)
oreCnt2 = parseInt(oreCnt[1])
if (oreCnt[1] == undefined)
oreCnt2 = 0
var charid = document.querySelector("#zero-config > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replaceAll(/<a target="_top" href="https:\/\/.*\.outwar\.com\/world\?suid=/g,"").replace(/&serverid=.*<\/a>/g,"")
fetch("home?suid="+charid)
.then(response => response.text())
.then((response) => {
var fireRes = response.match(/onmouseout="kill\(\)">Fire Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i);
var arcaneRes = response.match(/onmouseout="kill\(\)">Arcane Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i);
var shadowRes = response.match(/onmouseout="kill\(\)">Shadow Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i);
var holyRes = response.match(/onmouseout="kill\(\)">Holy Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i);
var kineticRes = response.match(/onmouseout="kill\(\)">Kinetic Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i);
var charid = document.querySelector("#zero-config > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replaceAll(/<a target="_top" href="https:\/\/.*\.outwar\.com\/world\?suid=/g,"").replace(/&serverid=.*<\/a>/g,"")
fetch("profile?suid="+charid)
.then(response => response.text())
.then((response) => {
var mycrew = response.match(/<a href="\/crew_profile\?id=.*">(.*)<\/a>/i)
var charlvl = response.match(/<font size="2">Level ([0-9]+) (.*)<\/font>/i)
var charpower = response.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font>/i)
var charpower2 = parseInt(charpower[1].replaceAll(",",""))
var charele = response.match(/ELEMENTAL ATTACK.*[\n\r].*<font size="2">(.*)<\/font>/i)
var charchaos = response.match(/CHAOS DAMAGE.*[\n\r].*<font size="2">(.*)<\/font>/i)
var wilderness = response.match(/WILDERNESS LEVEL.*[\n\r].*<font size="2">(.*)<\/font>/i)
var growthyesterday = response.match(/GROWTH YESTERDAY.*[\n\r].*<font size="2">(.*)<\/font>/i)
var growthyesterday2 = parseInt(growthyesterday[1].replaceAll(",",""))
var growthyesterday3 = '';
if (growthyesterday2 < 0)
growthyesterday3 = "<font color=#FF0000>"+growthyesterday2.toLocaleString("en-US")+"</font>"
if (growthyesterday2 > -1)
growthyesterday3 = growthyesterday2.toLocaleString("en-US")
var growthtoday = response.match(/<tr><td><b>Growth Today:<\/b><\/td><td>(.*)<\/td><\/tr>/i)
var growthtoday2 = parseInt(growthtoday[1].replaceAll(",",""))
var growthtoday3 = '';
if (growthtoday2 < 0)
growthtoday3 = "<font color=#FF0000>"+growthtoday2.toLocaleString("en-US")+"</font>"
if (growthtoday2 > -1)
growthtoday3 = growthtoday2.toLocaleString("en-US")
var tolevel = response.match(/to Level:<\/b><\/td><td>(.*)<\/td>/i)
var tolevel2 = parseInt(tolevel[1].replaceAll(",",""))
var strength = response.match(/statspopup\(event,'Strength: (.*)'\)" onmouseout/i)
var strength2 = parseInt(strength[1])
var strength3 = '';
if (strength2 <= 100)
strength3 = "<font color=#FF0000>"+strength2+"</font>"
if (strength2 == 100)
strength3 = strength2
var gem = response.match(/<div style="position:absolute; left:10px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r].*<img style="border:0px;" src="(.*)" onclick.* Chaos.*"/i)
var gem2 = '';
if (gem == null)
gem2 = "none"
if (gem != null)
gem2 = "<img src="+gem[1]+" height=25px width=25px>"
var gem3 = response.match(/<div style="position:absolute; left:10px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r].*(onmouseover="itempopup\(event,'.*'\)" onmouseout="kill\(\)" alt=".*Chaos.*">)/i)
var gem4 = '';
if (gem3 == null)
gem4 = "><font color=#D4D4D4>"
if (gem3 != null)
gem4 = gem3[1]
var rune = response.match(/<img style="border:0px;" src="(.*)" onclick.*Rune.*"/i)
var rune2 = '';
if (rune == null)
rune2 = "none"
if (rune != null)
rune2 = "<img src="+rune[1]+" height=25px width=25px>"
var rune3 = response.match(/onmouseover="itempopup\(event,'.*'\)" onmouseout="kill\(\)" alt=".*Rune.*">/i)
var rune4 = '';
if (rune3 == null)
rune4 = "><font color=#D4D4D4>"
if (rune3 != null)
rune4 = rune3
var booster = response.match(/<img style="border:0px;" src="(.*)" onclick.* Booster.*"/i)
var booster2 = '';
if (booster == null)
booster2 = "none"
if (booster != null)
booster2 = "<img src="+booster[1]+" height=25px width=25px>"
var booster3 = response.match(/onmouseover="itempopup\(event,'.*'\)" onmouseout="kill\(\)" alt=".*Booster.*">/i)
var booster4 = '';
if (booster3 == null)
booster4 = "><font color=#D4D4D4>"
if (booster3 != null)
booster4 = booster3
var items = response.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">[\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)
var itemsX = response.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">[\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)
var items2 = (items.toString().match(/img/g) || []).length
var items3 = '';
if (items2 < 10)
items3 = "<font color=#FF0000>"+items2
if (items2 == 10)
items3 = "<font color=#D4D4D4>"+items2
var crest1 = response.match(/\('slot13'\).*alt="(.*Class.*)"/i)
var crest1lvl = '';
if (crest1 == null)
crest1lvl = "<font color=#FF0000>none"
if (crest1 != null){
if (crest1[1] == "Crest of Class")
crest1lvl = "Base"
if (crest1[1] == "Excelled Crest of Class")
crest1lvl = "Excelled"
if (crest1[1] == "Quantum Crest of Class")
crest1lvl = "Quantum"
}
var crest2 = response.match(/\('slot14'\).*alt="(.*Ferocity.*)"/i)
var crest2lvl = '';
if (crest2 == null)
crest2lvl = "<font color=#FF0000>none"
if (crest2 != null){
if (crest2[1] == "Crest of Ferocity")
crest2lvl = "Base"
if (crest2[1] == "Excelled Crest of Ferocity")
crest2lvl = "Excelled"
if (crest2[1] == "Explosive Crest of Ferocity")
crest2lvl = "Explosive"
}
var crest3 = response.match(/\('slot15'\).*alt="(.*Preservation.*)"/i)
var crest3lvl = '';
if (crest3 == null)
crest3lvl = "<font color=#FF0000>none"
if (crest3 != null){
if (crest3[1] == "Crest of Preservation")
crest3lvl = "Base"
if (crest3[1] == "Excelled Crest of Preservation")
crest3lvl = "Excelled"
if (crest3[1] == "Violent Crest of Preservation")
crest3lvl = "Violent"
}
var crest4 = response.match(/\('slot16'\).*alt="(.*Affliction.*)"/i)
var crest4lvl = '';
if (crest4 == null)
crest4lvl = "<font color=#FF0000>none"
if (crest4 != null){
if (crest4[1] == "Crest of Affliction")
crest4lvl = "Base"
if (crest4[1] == "Excelled Crest of Affliction")
crest4lvl = "Excelled"
if (crest4[1] == "Onslaught Crest of Affliction")
crest4lvl = "Onslaught"
}
var badge = response.match(/src="(.*)" onclick="window\.location='.*'\)" onmouseout="kill\(\)" alt=".*Badge.*">/i)
var badge2 = '';
if (badge == null)
badge2 = "none"
if (badge != null)
badge2 = "<img src="+badge[1]+" height=25px width=25px>"
var badge3 = response.match(/onmouseover="itempopup\(event,'.*'\)" onmouseout="kill\(\)" alt=".*Badge.*">/i)
var badge4 = '';
if (badge3 == null)
badge4 = "><font color=#D4D4D4>"
if (badge3 != null)
badge4 = badge3
var circCast = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/circumspect\.png".*/i);
const skill0 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/skill_2952\.gif".*/i);
const skill1 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/circumspect\.png".*/i);
const skill2 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/markdown\.png".*/i);
const skill3 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/hitman\.png".*/i);
const skill4 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/haste\.png".*/i);
const skill5 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/streetsmarts\.png".*/i);
const skill6 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/onguard\.png".*/i);
const skill7 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/\.\.\/items\/itemz80\.gif".*/i);
const skill8 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/killingspree\.png".*/i);
const skill9 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/masterferoskill\.png".*/i);
const skill10 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/masterpresskill\.png".*/i);
const skill11 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/masteraffskill\.png".*/i);
const skill12 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/\.\.\/items\/itemz82\.jpg".*/i);
const skill13 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/\.\.\/items\/itemz91\.jpg".*/i);
const skill14 = response.match(/<img align="absmiddle" border="0" src="\/images\/items\/itemz28\.jpg".*/i);
const skill15 = response.match(/<img align="absmiddle" border="0" src="\/images\/skills\/blessingfromabove\.png".*/i);
var circ = '';
if (circCast != null)
circ += "circumspect is cast";
if (circReady != null)
circ += "circumspect is ready!";
if (circCharging != null && circCast == null)
circ += "circumspect is charged in <font color=F8DA00><b>"+(parseInt(circCharging[1])/60).toFixed(2)+"</font></b> hours";
if (circUntrained != null)
circ += "circumspect is not trained";
var rage = response.match(/<span class="toolbar_rage">(.*)<\/span>/i)
var rage2 = parseInt(rage[1].replaceAll(",",""))
var mrage = response.match(/<b>Maximum:<\/b><\/td><td>(.*)<\/td>/i)
var mrage2 = parseInt(mrage[1].replaceAll(",",""))
var rpt = response.match(/<p class="top-rage" onmouseover="statspopup\(event,'<tr><td><b>Per Turn:<\/b><\/td><td>(.*)<\/td>/i)
var rpt2 = parseInt(rpt[1].replaceAll(",",""))
var tomax = Math.ceil((mrage2-rage2)/rpt2)
var tomax2 = '';
if (tomax > 0)
tomax2 = "in "+tomax+" turns"
if (tomax == 0 && circReady != null)
tomax2 = "<font color=F8DA00>in "+tomax+" turns</font>"
if (tomax == 0 && circReady == null)
tomax2 = "<font color=00CC00>in "+tomax+" turns</font>"
var skills = '';
if (skill0 != null)
skills += skill0+' ';
if (skill1 != null)
skills += skill1+' ';
if (skill2 != null)
skills += skill2+' ';
if (skill3 != null)
skills += skill3+' ';
if (skill4 != null)
skills += skill4+' ';
if (skill5 != null)
skills += skill5+' ';
if (skill6 != null)
skills += skill6+' ';
if (skill7 != null)
skills += skill7+' ';
if (skill8 != null)
skills += skill8+' ';
if (skill9 != null)
skills += skill9+' ';
if (skill10 != null)
skills += skill10+' ';
if (skill11 != null)
skills += skill11+' ';
if (skill12 != null)
skills += skill12+' ';
if (skill13 != null)
skills += skill13+' ';
if (skill14 != null)
skills += skill14+' ';
if (skill15 != null)
skills += skill15+' ';
if (skills == "")
skills += "none"
let charnamesformenu2 = document.querySelector("#content2 > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a:nth-child(1)").innerHTML;
let menu2 = document.querySelector("#content2 > tbody > tr:nth-child("+rownum+")");
let mv2 = document.createElement('td');
mv2.innerHTML = charnamesformenu2+`<p><div ID=EQhome style="position:relative; width:300px; height:385px; background-image:url(https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/thedude_dark.png)">`+itemsX.toString()+`</div>`;
insertAfter(mv2, menu2.lastElementChild);
let menu = document.querySelector("#zero-config > tbody > tr:nth-child("+rownum+")");
let lvlTD = document.createElement('td');
lvlTD.innerHTML = charlvl[1];
insertAfter(lvlTD, menu.lastElementChild);
let crewTD = document.createElement('td');
crewTD.innerHTML = mycrew[1];
insertAfter(crewTD, menu.lastElementChild);
let rageTD = document.createElement('td');
rageTD.innerHTML = `<a onmouseover="statspopup(event,'`+circ+`')" onmouseout="kill\(\)"><font color=#D4D4D4>`+tomax2
insertAfter(rageTD, menu.lastElementChild);
let mrTD = document.createElement('td');
mrTD.innerHTML = `<a onmouseover="statspopup(event,'max rage')" onmouseout="kill\(\)"><font color=#D4D4D4>`+mrage2.toLocaleString("en-US")
insertAfter(mrTD, menu.lastElementChild);
let todayTD = document.createElement('td');
todayTD.innerHTML = `<a onmouseover="statspopup(event,'growth today')" onmouseout="kill\(\)"><font color=#D4D4D4>`+growthtoday3;
insertAfter(todayTD, menu.lastElementChild);
let yesterdayTD = document.createElement('td');
yesterdayTD.innerHTML = `<a onmouseover="statspopup(event,'growth yesterday')" onmouseout="kill\(\)"><font color=#D4D4D4>`+growthyesterday3;
insertAfter(yesterdayTD, menu.lastElementChild);
let tolvlTD = document.createElement('td');
tolvlTD.innerHTML = `<a onmouseover="statspopup(event,'exp needed to level')" onmouseout="kill\(\)"><font color=#D4D4D4>`+tolevel2.toLocaleString("en-US")
insertAfter(tolvlTD, menu.lastElementChild);
let strengthTD = document.createElement('td');
strengthTD.innerHTML = `<a onmouseover="statspopup(event,'strength')" onmouseout="kill\(\)"><font color=#D4D4D4>`+strength3;
insertAfter(strengthTD, menu.lastElementChild);
let boosterTD = document.createElement('td');
boosterTD.innerHTML = items3+"/10</font>";
insertAfter(boosterTD, menu.lastElementChild);
let tomeTD = document.createElement('td');
tomeTD.innerHTML = tome;
insertAfter(tomeTD, menu.lastElementChild);
let crest1TD = document.createElement('td');
crest1TD.innerHTML = crest1lvl;
insertAfter(crest1TD, menu.lastElementChild);
let crest2TD = document.createElement('td');
crest2TD.innerHTML = crest2lvl;
insertAfter(crest2TD, menu.lastElementChild);
let crest3TD = document.createElement('td');
crest3TD.innerHTML = crest3lvl;
insertAfter(crest3TD, menu.lastElementChild);
let crest4TD = document.createElement('td');
crest4TD.innerHTML = crest4lvl;
insertAfter(crest4TD, menu.lastElementChild);
let archTD = document.createElement('td');
archTD.innerHTML = `<a onmouseover="statspopup(event,'archfiend soul fragments')" onmouseout="kill\(\)"><font color=#D4D4D4>`+archCnt2
insertAfter(archTD, menu.lastElementChild);
let suppliesTD = document.createElement('td');
suppliesTD.innerHTML = "<a "+gem4+gem2+"</a>";
insertAfter(suppliesTD, menu.lastElementChild);
let oreCnt = document.createElement('td');
oreCnt.innerHTML = `<a onmouseover="statspopup(event,'chaos ore')" onmouseout="kill\(\)"><font color=#D4D4D4>`+oreCnt2
insertAfter(oreCnt, menu.lastElementChild);
let runeTD = document.createElement('td');
runeTD.innerHTML = "<a "+rune4+rune2+"</a>";
insertAfter(runeTD, menu.lastElementChild);
let fuserTD = document.createElement('td');
fuserTD.innerHTML = fuserCnt[1] ?? "0"
insertAfter(fuserTD, menu.lastElementChild);
let itemsTD = document.createElement('td');
itemsTD.innerHTML = `<a `+badge4+badge2+`</a>`;
insertAfter(itemsTD, menu.lastElementChild);
let repTD = document.createElement('td');
repTD.innerHTML = `<a onmouseover="statspopup(event,'badge reputations')" onmouseout="kill\(\)">`+repCnt2
insertAfter(repTD, menu.lastElementChild);
let gemTD = document.createElement('td');
gemTD.innerHTML = "<a "+booster4+booster2+"</a>";
insertAfter(gemTD, menu.lastElementChild);
let powerTD = document.createElement('td');
powerTD.innerHTML = `<a onmouseover="statspopup(event,'total power')" onmouseout="kill\(\)"><font color=#D4D4D4>`+charpower2.toLocaleString("en-US");
insertAfter(powerTD, menu.lastElementChild);
let eleTD = document.createElement('td');
eleTD.innerHTML = `<a onmouseover="statspopup(event,'total elemental attack')" onmouseout="kill\(\)"><font color=#D4D4D4>`+charele[1];
insertAfter(eleTD, menu.lastElementChild);
let chaosTD = document.createElement('td');
chaosTD.innerHTML = `<a onmouseover="statspopup(event,'chaos attack')" onmouseout="kill\(\)"><font color=#D4D4D4>`+charchaos[1];
insertAfter(chaosTD, menu.lastElementChild);
let fireResTD = document.createElement('td');
fireResTD.innerHTML = `<a onmouseover="statspopup(event,'fire resistance')" onmouseout="kill\(\)"><font color=#D4D4D4>`+parseInt(fireRes[1]);
insertAfter(fireResTD, menu.lastElementChild);
let arcaneResTD = document.createElement('td');
arcaneResTD.innerHTML = `<a onmouseover="statspopup(event,'arcane resistance')" onmouseout="kill\(\)"><font color=#D4D4D4>`+parseInt(arcaneRes[1]);
insertAfter(arcaneResTD, menu.lastElementChild);
let shadowResTD = document.createElement('td');
shadowResTD.innerHTML = `<a onmouseover="statspopup(event,'shadow resistance')" onmouseout="kill\(\)"><font color=#D4D4D4>`+parseInt(shadowRes[1]);
insertAfter(shadowResTD, menu.lastElementChild);
let holyResTD = document.createElement('td');
holyResTD.innerHTML = `<a onmouseover="statspopup(event,'holy resistance')" onmouseout="kill\(\)"><font color=#D4D4D4>`+parseInt(holyRes[1]);
insertAfter(holyResTD, menu.lastElementChild);
let kineticResTD = document.createElement('td');
kineticResTD.innerHTML = `<a onmouseover="statspopup(event,'kinetic resistance')" onmouseout="kill\(\)"><font color=#D4D4D4>`+parseInt(kineticRes[1]);
insertAfter(kineticResTD, menu.lastElementChild);
let wildTD = document.createElement('td');
wildTD.innerHTML = `<a onmouseover="statspopup(event,'wilderness level')" onmouseout="kill\(\)"><font color=#D4D4D4>`+wilderness[1];
insertAfter(wildTD, menu.lastElementChild);
let ammyTD = document.createElement('td');
ammyTD.innerHTML = amuletCnt[1] ?? "0"
insertAfter(ammyTD, menu.lastElementChild);
let shardTD = document.createElement('td');
shardTD.innerHTML = shardCnt[1] ?? "0"
insertAfter(shardTD, menu.lastElementChild);
let skillsTD = document.createElement('td');
skillsTD.innerHTML = skills;
insertAfter(skillsTD, menu.lastElementChild);
let bpTD = document.createElement('td');
bpTD.innerHTML = bpMax+bpItems+" / "+bpCap
insertAfter(bpTD, menu.lastElementChild);
let utilityTD = document.createElement('td');
utilityTD.innerHTML = utility;
insertAfter(utilityTD, menu.lastElementChild);
fetch("profile?suid="+selectedID[1])
.then(res => res.text())
.then((responseText) => {})
document.querySelector("#zero-config").setAttribute('class', 'rgahealth')
})})})})})})}}, 1000);
var pageContent =
`<div id=mvhead><img src=https://studiomoxxi.com/ow_themes/custom_jobs/minimal_01/mv.gif width=80% height=80%></div><p>`+
`<div class="outer">`+content+`</div><p>`+
`<div class="outer2">`+content2+`</div><p>`
$(document).ready(function(){
$('#content-header-row > div.outer').doubleScroll();
});
var earnfreepoints = document.querySelector("#content-header-row")
earnfreepoints.innerHTML = pageContent
})}
setTimeout(function() {
if (document.URL.indexOf("earnfreepoints") != -1 ) {
GM_addStyle ( `
#content-header-row > div.outer{display:inline !important;}
#content-header-row > div.outer2{display:inline !important;}
#mvhead{display:none !important;}
`)}
}, 30000);
// level chart
if (document.URL.indexOf("com/home") != -1 ) {
if (document.URL.indexOf("com/homepost") == -1 ) {
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
GM_addStyle ( `
#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(7){margin-left:15px !important;}
#expchart{margin-left:0px !important; width:361px !important;height:87px !important;overflow-y: scroll !important}
#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(7) > div > div.w-100 > div > table > tbody > tr > td{padding-right:10px !important;}
`);
var levelchart = 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 chart = `
<div class="d-flex b-skills">
<div>
</div>
<div class="w-100">
<h5>OUTWAR LEVEL CHART</h5><p>
<table>
<tr><td width="45px">Level</td><td width="125px">Experience</td><td width="35px">SP</td><td width="70px">ATK</td><td width="70x">DEF</td></tr>
</table>
<div class="table-responsive" id="expchart">
<table>
<tr><td width="45px">1</td><td width="125px">0</td><td width="35px">0</td><td width="70px">1</td><td width="70px">3</td></tr>
<tr><td>2</td><td>7</td><td>0</td><td>2</td><td>5</td></tr>
<tr><td>3</td><td>25</td><td>0</td><td>4</td><td>8</td></tr>
<tr><td>4</td><td>50</td><td>0</td><td>6</td><td>12</td></tr>
<tr><td>5</td><td>150</td><td>0</td><td>9</td><td>16</td></tr>
<tr><td>6</td><td>250</td><td>0</td><td>12</td><td>21</td></tr>
<tr><td>7</td><td>450</td><td>0</td><td>15</td><td>27</td></tr>
<tr><td>8</td><td>700</td><td>0</td><td>18</td><td>36</td></tr>
<tr><td>9</td><td>1,000</td><td>0</td><td>22</td><td>44</td></tr>
<tr><td>10</td><td>1,500</td><td>1</td><td>26</td><td>50</td></tr>
<tr><td>11</td><td>3,000</td><td>1</td><td>30</td><td>62</td></tr>
<tr><td>12</td><td>5,000</td><td>2</td><td>36</td><td>71</td></tr>
<tr><td>13</td><td>8,000</td><td>2</td><td>38</td><td>85</td></tr>
<tr><td>14</td><td>12,000</td><td>3</td><td>43</td><td>92</td></tr>
<tr><td>15</td><td>18,000</td><td>3</td><td>48</td><td>107</td></tr>
<tr><td>16</td><td>28,000</td><td>4</td><td>53</td><td>115</td></tr>
<tr><td>17</td><td>40,000</td><td>4</td><td>58</td><td>226</td></tr>
<tr><td>18</td><td>55,000</td><td>5</td><td>63</td><td>231</td></tr>
<tr><td>19</td><td>75,000</td><td>5</td><td>68</td><td>242</td></tr>
<tr><td>20</td><td>100,000</td><td>6</td><td>73</td><td>257</td></tr>
<tr><td>21</td><td>130,000</td><td>6</td><td>78</td><td>264</td></tr>
<tr><td>22</td><td>165,000</td><td>7</td><td>83</td><td>272</td></tr>
<tr><td>23</td><td>215,000</td><td>7</td><td>88</td><td>281</td></tr>
<tr><td>24</td><td>260,000</td><td>8</td><td>95</td><td>290</td></tr>
<tr><td>25</td><td>310,000</td><td>8</td><td>100</td><td>300</td></tr>
<tr><td>26</td><td>370,000</td><td>9</td><td>106</td><td>320</td></tr>
<tr><td>27</td><td>445,000</td><td>9</td><td>112</td><td>335</td></tr>
<tr><td>28</td><td>525,000</td><td>10</td><td>118</td><td>350</td></tr>
<tr><td>29</td><td>625,000</td><td>10</td><td>125</td><td>370</td></tr>
<tr><td>30</td><td>735,000</td><td>11</td><td>132</td><td>392</td></tr>
<tr><td>31</td><td>838,500</td><td>11</td><td>150</td><td>412</td></tr>
<tr><td>32</td><td>950,000</td><td>12</td><td>160</td><td>426</td></tr>
<tr><td>33</td><td>1,082,250</td><td>12</td><td>185</td><td>438</td></tr>
<tr><td>34</td><td>1,224,000</td><td>13</td><td>200</td><td>453</td></tr>
<tr><td>35</td><td>1,378,125</td><td>13</td><td>215</td><td>487</td></tr>
<tr><td>36</td><td>1,530,000</td><td>14</td><td>230</td><td>500</td></tr>
<tr><td>37</td><td>1,732,500</td><td>14</td><td>260</td><td>526</td></tr>
<tr><td>38</td><td>1,920,000</td><td>15</td><td>300</td><td>556</td></tr>
<tr><td>39</td><td>2,131,250</td><td>15</td><td>330</td><td>575</td></tr>
<tr><td>40</td><td>2,325,000</td><td>16</td><td>345</td><td>600</td></tr>
<tr><td>41</td><td>2,537,500</td><td>16</td><td>360</td><td>650</td></tr>
<tr><td>42</td><td>2,800,000</td><td>17</td><td>380</td><td>704</td></tr>
<tr><td>43</td><td>3,105,000</td><td>17</td><td>400</td><td>747</td></tr>
<tr><td>44</td><td>3,380,000</td><td>18</td><td>415</td><td>811</td></tr>
<tr><td>45</td><td>3,687,500</td><td>18</td><td>425</td><td>856</td></tr>
<tr><td>46</td><td>3,990,000</td><td>19</td><td>450</td><td>879</td></tr>
<tr><td>47</td><td>4,312,500</td><td>19</td><td>475</td><td>911</td></tr>
<tr><td>48</td><td>4,620,000</td><td>20</td><td>500</td><td>932</td></tr>
<tr><td>49</td><td>4,935,000</td><td>20</td><td>550</td><td>956</td></tr>
<tr><td>50</td><td>5,250,000</td><td>21</td><td>650</td><td>1,000</td></tr>
<tr><td>51</td><td>6,500,000</td><td>21</td><td>700</td><td>1,032</td></tr>
<tr><td>52</td><td>7,750,000</td><td>22</td><td>750</td><td>1,067</td></tr>
<tr><td>53</td><td>9,250,000</td><td>22</td><td>800</td><td>1,103</td></tr>
<tr><td>54</td><td>11,050,000</td><td>23</td><td>850</td><td>1,250</td></tr>
<tr><td>55</td><td>12,750,000</td><td>23</td><td>875</td><td>1,500</td></tr>
<tr><td>56</td><td>14,750,000</td><td>24</td><td>900</td><td>1,750</td></tr>
<tr><td>57</td><td>17,250,000</td><td>24</td><td>950</td><td>2,000</td></tr>
<tr><td>58</td><td>19,750,000</td><td>25</td><td>1,000</td><td>2,200</td></tr>
<tr><td>59</td><td>22,250,000</td><td>25</td><td>1,250</td><td>2,400</td></tr>
<tr><td>60</td><td>24,750,000</td><td>26</td><td>1,500</td><td>2,500</td></tr>
<tr><td>61</td><td>28,000,000</td><td>26</td><td>1,750</td><td>2,650</td></tr>
<tr><td>62</td><td>31,750,000</td><td>27</td><td>2,000</td><td>2,800</td></tr>
<tr><td>63</td><td>35,750,000</td><td>27</td><td>2,250</td><td>3,000</td></tr>
<tr><td>64</td><td>39,750,000</td><td>28</td><td>2,500</td><td>3,200</td></tr>
<tr><td>65</td><td>44,750,000</td><td>28</td><td>2,750</td><td>3,500</td></tr>
<tr><td>66</td><td>49,750,000</td><td>29</td><td>3,000</td><td>3,800</td></tr>
<tr><td>67</td><td>55,750,000</td><td>29</td><td>3,250</td><td>4,100</td></tr>
<tr><td>68</td><td>61,750,000</td><td>30</td><td>3,500</td><td>4,400</td></tr>
<tr><td>69</td><td>68,750,000</td><td>30</td><td>3,750</td><td>4,700</td></tr>
<tr><td>70</td><td>77,000,000</td><td>31</td><td>4,000</td><td>5,000</td></tr>
<tr><td>71</td><td>90,650,000</td><td>31</td><td>4,150</td><td>5,200</td></tr>
<tr><td>72</td><td>106,900,000</td><td>32</td><td>4,300</td><td>5,450</td></tr>
<tr><td>73</td><td>126,400,000</td><td>32</td><td>4,500</td><td>5,750</td></tr>
<tr><td>74</td><td>152,400,000</td><td>33</td><td>4,750</td><td>6,100</td></tr>
<tr><td>75</td><td>184,900,000</td><td>33</td><td>5,000</td><td>6,500</td></tr>
<tr><td>76</td><td>385,000,000</td><td>34</td><td>5,250</td><td>6,800</td></tr>
<tr><td>77</td><td>675,000,000</td><td>34</td><td>5,500</td><td>7,100</td></tr>
<tr><td>78</td><td>995,600,000</td><td>35</td><td>5,800</td><td>7,500</td></tr>
<tr><td>79</td><td>1,450,920,000</td><td>35</td><td>6,150</td><td>7,900</td></tr>
<tr><td>80</td><td>2,000,000,000</td><td>36</td><td>6,500</td><td>8,500</td></tr>
<tr><td>81</td><td>3,000,000,000</td><td>36</td><td>6,900</td><td>9,200</td></tr>
<tr><td>82</td><td>4,500,000,000</td><td>37</td><td>7,350</td><td>10,000</td></tr>
<tr><td>83</td><td>6,750,000,000</td><td>37</td><td>7,850</td><td>10,900</td></tr>
<tr><td>84</td><td>10,000,000,000</td><td>38</td><td>8,400</td><td>11,900</td></tr>
<tr><td>85</td><td>15,000,000,000</td><td>38</td><td>9,000</td><td>13,000</td></tr>
<tr><td>86</td><td>20,000,000,000</td><td>39</td><td>9,650</td><td>14,200</td></tr>
<tr><td>87</td><td>26,000,000,000</td><td>39</td><td>10,350</td><td>15,500</td></tr>
<tr><td>88</td><td>33,000,000,000</td><td>40</td><td>11,100</td><td>16,900</td></tr>
<tr><td>89</td><td>41,000,000,000</td><td>40</td><td>11,900</td><td>18,400</td></tr>
<tr><td>90</td><td>50,000,000,000</td><td>41</td><td>12,750</td><td>20,000</td></tr>
</table>
</div>
</div>
</div>
</div>
</div>
`
let lvlchart = document.createElement('div');
lvlchart.innerHTML = chart;
insertAfter(lvlchart, levelchart.lastElementChild);
}}
// itemlink modifications
if (document.URL.indexOf("itemlink") != -1 ) {
var itemID = window.location.search.replace(/\?id=/g,"").replace(/&owner=.*/g,"")
fetch("/item_rollover.php?id="+itemID+"_1")
.then(response => response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) <span style="color:#00FFFF/g);
if (holyaug == null)
holyaug = 0
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null)
arcaneaug = 0
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null)
fireaug = 0
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null)
kineticaug = 0
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null)
shadowaug = 0
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null)
chaosaug = 0
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null)
psaug = 0
var aug1holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug1arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug1fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug1kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug1shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug1chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug1ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
fetch("/item_rollover.php?id="+itemID+"_2")
.then(response => response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) <span style="color:#00FFFF/g);
if (holyaug == null)
holyaug = 0
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null)
arcaneaug = 0
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null)
fireaug = 0
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null)
kineticaug = 0
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null)
shadowaug = 0
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null)
chaosaug = 0
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null)
psaug = 0
var aug2holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug2arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug2fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug2kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug2shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug2chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug2ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
fetch("/item_rollover.php?id="+itemID+"_3")
.then(response => response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) <span style="color:#00FFFF/g);
if (holyaug == null)
holyaug = 0
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null)
arcaneaug = 0
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null)
fireaug = 0
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null)
kineticaug = 0
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null)
shadowaug = 0
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null)
chaosaug = 0
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null)
psaug = 0
var aug3holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug3arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug3fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug3kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug3shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug3chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug3ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
fetch("/item_rollover.php?id="+itemID+"_4")
.then(response => response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) <span style="color:#00FFFF/g);
if (holyaug == null)
holyaug = 0
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null)
arcaneaug = 0
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null)
fireaug = 0
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null)
kineticaug = 0
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null)
shadowaug = 0
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null)
chaosaug = 0
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null)
psaug = 0
var aug4holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug4arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug4fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug4kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug4shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug4chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug4ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
fetch("/item_rollover.php?id="+itemID+"_5")
.then(response => response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) <span style="color:#00FFFF/g);
if (holyaug == null)
holyaug = 0
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null)
arcaneaug = 0
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null)
fireaug = 0
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null)
kineticaug = 0
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null)
shadowaug = 0
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null)
chaosaug = 0
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null)
psaug = 0
var aug5holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug5arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug5fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug5kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug5shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug5chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug5ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
var aholy = aug1holy+aug2holy+aug3holy+aug4holy+aug5holy
var aarcane = aug1arcane+aug2arcane+aug3arcane+aug4arcane+aug5arcane
var afire = aug1fire+aug2fire+aug3fire+aug4fire+aug5fire
var akinetic = aug1kinetic+aug2kinetic+aug3kinetic+aug4kinetic+aug5kinetic
var ashadow = aug1shadow+aug2shadow+aug3shadow+aug4shadow+aug5shadow
var achaos = aug1chaos+aug2chaos+aug3chaos+aug4chaos+aug5chaos
var aps = aug1ps+aug2ps+aug3ps+aug4ps+aug5ps
var Gslot1 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(3)").outerHTML.replace(/<img src="\/images\/gemslot2\.jpg">/i,1).replace(/<img src="\/images\/gem_.*\.jpg">/i,0)
var Gslot2 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(4)").outerHTML.replace(/<img src="\/images\/gemslot2\.jpg">/i,1).replace(/<img src="\/images\/gem_.*\.jpg">/i,0)
var Gslot3 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(5)").outerHTML.replace(/<img src="\/images\/gemslot2\.jpg">/i,1).replace(/<img src="\/images\/gem_.*\.jpg">/i,0)
var Gslot4 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(6)").outerHTML.replace(/<img src="\/images\/gemslot2\.jpg">/i,1).replace(/<img src="\/images\/gem_.*\.jpg">/i,0)
var sum = Math.round(Gslot1+Gslot2+Gslot3+Gslot4)
var gems = '';
if (sum == "0")
gems = "4"
if (sum == "1")
gems = "3"
if (sum == "11")
gems = "2"
if (sum == "111")
gems = "1"
if (sum == "1111")
gems = "0"
var item = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(1)").outerHTML.replace(/<span style="color:#00FF00"> \(\+[0-9]+\)<\/span>/g,"").replaceAll(",","");
var atk = item.match(/\+([0-9]+) ATK/) ?? 0
var holy = item.match(/\+([0-9]+) <span style="color:#.*">Holy/) ?? 0
var arcane = item.match(/\+([0-9]+) <span style="color:#.*">Arcane/) ?? 0
var shadow = item.match(/\+([0-9]+) <span style="color:#.*">Shadow/) ?? 0
var fire = item.match(/\+([0-9]+) <span style="color:#.*">Fire/) ?? 0
var kinetic = item.match(/\+([0-9]+) <span style="color:#.*">Kinetic/) ?? 0
var chaos = item.match(/\+([0-9]+) <span style="color:#.*">Chaos/) ?? 0
var vile = item.match(/\+([0-9]+) vile energy/) ?? 0
var hp = item.match(/\+([0-9]+) HP/) ?? 0
var holyr = item.match(/\+([0-9]+) Holy Resist/) ?? 0
var arcaner = item.match(/\+([0-9]+) Arcane Resist/) ?? 0
var shadowr = item.match(/\+([0-9]+) Shadow Resist/) ?? 0
var firer = item.match(/\+([0-9]+) Fire Resist/) ?? 0
var kineticr = item.match(/\+([0-9]+) Kinetic Resist/) ?? 0
var chaosr = item.match(/\+([0-9]+) Chaos Resist/) ?? 0
var block = item.match(/\+([0-9]+)% block/) ?? 0
var eblock = item.match(/\+([0-9]+)% elemental block/) ?? 0
var rpt = item.match(/\+([0-9]+) rage per hr/) ?? 0
var ept = item.match(/\+([0-9]+) exp per hr/) ?? 0
var ramp = item.match(/\+([0-9]+)% rampage/) ?? 0
var ps = item.match(/\+([0-9]+)% perfect strike/) ?? 0
var mr = item.match(/\+([0-9]+) max rage/) ?? 0
var crit = item.match(/\+([0-9]+)% critical hit/) ?? 0
var edititem = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(1)");
if (aholy != 0){
edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#00FFFF">Holy/," +"+(parseInt(holy[1])-aholy)+" <font color=00FF00>(+"+aholy+")</font><font color=00FFFF> Holy</font>")}
if (aarcane != 0){
edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#FFFF00">Arcane/," +"+(parseInt(arcane[1])-aarcane)+" <font color=00FF00>(+"+aarcane+")</font><font color=FFFF00> Arcane</font>")}
if (afire != 0){
edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#FF0000">Fire/," +"+(parseInt(fire[1])-afire)+" <font color=00FF00>(+"+afire+")</font><font color=FF0000> Fire</font>")}
if (akinetic != 0){
edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#00FF00">Kinetic/," +"+(parseInt(kinetic[1])-akinetic)+" <font color=00FF00>(+"+akinetic+")</font<font color=00FF00> Kinetic</font>")}
if (ashadow != 0){
edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#7e01bc">Shadow/," +"+(parseInt(shadow[1])-ashadow)+" <font color=00FF00>(+"+ashadow+")</font><font color=7e01bc> Shadow</font>")}
if (achaos != 0){
edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#f441be">Chaos/," +"+(parseInt(chaos[1])-achaos)+" <font color=00FF00>(+"+achaos+")</font><font color=f441be> Chaos</font>")}
if (aps != 0){
edititem.innerHTML = edititem.innerHTML.replace(/% perfect strike/," <font color=00FF00>(+"+aps+")</font>% perfect strike")}
var g1 = '';
var g2 = '';
var g3 = '';
var g4 = '';
if (atk[1] > 0){
g1 += "+"+Math.round(atk[1]*1.15)+" ATK<br>"
g2 += "+"+Math.round(atk[1]*1.3225)+" ATK<br>"
g3 += "+"+Math.round(atk[1]*1.520875)+" ATK<br>"
g4 += "+"+Math.round(atk[1]*1.74900625)+" ATK<br>"}
if (holy[1]-aholy > 0){
g1 += " +"+(parseInt(holy[1]))+" <font color=00FFFF>Holy</font><br>"
g2 += " +"+(parseInt(holy[1]))+" <font color=00FFFF>Holy</font><br>"
g3 += " +"+(parseInt(holy[1]))+" <font color=00FFFF>Holy</font><br>"
g4 += " +"+(parseInt(holy[1]))+" <font color=00FFFF>Holy</font><br>"}
if (arcane[1]-aarcane > 0){
g1 += " +"+(parseInt(arcane[1]))+" <font color=FFFF00>Arcane</font><br>"
g2 += " +"+(parseInt(arcane[1]))+" <font color=FFFF00>Arcane</font><br>"
g3 += " +"+(parseInt(arcane[1]))+" <font color=FFFF00>Arcane</font><br>"
g4 += " +"+(parseInt(arcane[1]))+" <font color=FFFF00>Arcane</font><br>"}
if (shadow[1]-ashadow > 0){
g1 += " +"+(parseInt(shadow[1]))+" <font color=7E01BC>Shadow</font><br>"
g2 += " +"+(parseInt(shadow[1]))+" <font color=7E01BC>Shadow</font><br>"
g3 += " +"+(parseInt(shadow[1]))+" <font color=7E01BC>Shadow</font><br>"
g4 += " +"+(parseInt(shadow[1]))+" <font color=7E01BC>Shadow</font><br>"}
if (fire[1]-afire > 0){
g1 += " +"+(parseInt(fire[1]))+" <font color=FF0000>Fire</font><br>"
g2 += " +"+(parseInt(fire[1]))+" <font color=FF0000>Fire</font><br>"
g3 += " +"+(parseInt(fire[1]))+" <font color=FF0000>Fire</font><br>"
g4 += " +"+(parseInt(fire[1]))+" <font color=FF0000>Fire</font><br>"}
if (kinetic[1]-akinetic > 0){
g1 += " +"+(parseInt(kinetic[1]))+" <font color=00FF00>Kinetic</font><br>"
g2 += " +"+(parseInt(kinetic[1]))+" <font color=00FF00>Kinetic</font><br>"
g3 += " +"+(parseInt(kinetic[1]))+" <font color=00FF00>Kinetic</font><br>"
g4 += " +"+(parseInt(kinetic[1]))+" <font color=00FF00>Kinetic</font><br>"}
if (chaos[1]-achaos > 0){
g1 += " +"+(parseInt(chaos[1]))+" <font color=E93EB5>Chaos</font><br>"
g2 += " +"+(parseInt(chaos[1]))+" <font color=E93EB5>Chaos</font><br>"
g3 += " +"+(parseInt(chaos[1]))+" <font color=E93EB5>Chaos</font><br>"
g4 += " +"+(parseInt(chaos[1]))+" <font color=E93EB5>Chaos</font><br>"}
if (vile[1] > 0){
g1 += " +"+vile[1]+" vile energy<br>"
g2 += " +"+vile[1]+" vile energy<br>"
g3 += " +"+vile[1]+" vile energy<br>"
g4 += " +"+vile[1]+" vile energy<br>"}
if (hp[1] > 0){
g1 += "+"+Math.round(hp[1]*1.15)+" HP<br>"
g2 += "+"+Math.round(hp[1]*1.3225)+" HP<br>"
g3 += "+"+Math.round(hp[1]*1.520875)+" HP<br>"
g4 += "+"+Math.round(hp[1]*1.74900625)+" HP<br>"}
if (holyr[1] != undefined){
g1 += " +"+holyr[1]+" Holy Resist<br>"
g2 += " +"+holyr[1]+" Holy Resist<br>"
g3 += " +"+holyr[1]+" Holy Resist<br>"
g4 += " +"+holyr[1]+" Holy Resist<br>"}
if (arcaner[1] > 0){
g1 += " +"+arcaner[1]+" Arcane Resist<br>"
g2 += " +"+arcaner[1]+" Arcane Resist<br>"
g3 += " +"+arcaner[1]+" Arcane Resist<br>"
g4 += " +"+arcaner[1]+" Arcane Resist<br>"}
if (shadowr[1] > 0){
g1 += " +"+shadowr[1]+" Shadow Resist<br>"
g2 += " +"+shadowr[1]+" Shadow Resist<br>"
g3 += " +"+shadowr[1]+" Shadow Resist<br>"
g4 += " +"+shadowr[1]+" Shadow Resist<br>"}
if (firer[1] > 0){
g1 += " +"+firer[1]+" Fire Resist<br>"
g2 += " +"+firer[1]+" Fire Resist<br>"
g3 += " +"+firer[1]+" Fire Resist<br>"
g4 += " +"+firer[1]+" Fire Resist<br>"}
if (kineticr[1] > 0){
g1 += " +"+kineticr[1]+" Kinetic Resist<br>"
g2 += " +"+kineticr[1]+" Kinetic Resist<br>"
g3 += " +"+kineticr[1]+" Kinetic Resist<br>"
g4 += " +"+kineticr[1]+" Kinetic Resist<br>"}
if (chaosr[1] > 0){
g1 += " +"+chaosr[1]+" Chaos Resist<br>"
g2 += " +"+chaosr[1]+" Chaos Resist<br>"
g3 += " +"+chaosr[1]+" Chaos Resist<br>"
g4 += " +"+chaosr[1]+" Chaos Resist<br>"}
if (block[1] > 0){
g1 += "+"+block[1]+"% block<br>"
g2 += "+"+block[1]+"% block<br>"
g3 += "+"+block[1]+"% block<br>"
g4 += "+"+block[1]+"% block<br>"}
if (eblock[1] > 0){
g1 += "+"+eblock[1]+"% elemental block<br>"
g2 += "+"+eblock[1]+"% elemental block<br>"
g3 += "+"+eblock[1]+"% elemental block<br>"
g4 += "+"+eblock[1]+"% elemental block<br>"}
if (rpt[1] > 0){
g1 += "+"+Math.round(rpt[1]*1.15)+" rage per hour<br>"
g2 += "+"+Math.round(rpt[1]*1.3225)+" rage per hour<br>"
g3 += "+"+Math.round(rpt[1]*1.520875)+" rage per hour<br>"
g4 += "+"+Math.round(rpt[1]*1.74900625)+" rage per hour<br>"}
if (ept[1] > 0){
g1 += "+"+Math.round(ept[1]*1.15)+" exp per hour<br>"
g2 += "+"+Math.round(ept[1]*1.3225)+" exp per hour<br>"
g3 += "+"+Math.round(ept[1]*1.520875)+" exp per hour<br>"
g4 += "+"+Math.round(ept[1]*1.74900625)+" exp per hour<br>"}
if (ramp[1] > 0){
g1 += "+"+ramp[1]+"% rampage<br>"
g2 += "+"+ramp[1]+"% rampage<br>"
g3 += "+"+ramp[1]+"% rampage<br>"
g4 += "+"+ramp[1]+"% rampage<br>"}
if (ps[1] > 0){
g1 += "+"+ps[1]+"<br>% perfect strike<br>"
g2 += "+"+ps[1]+"<br>% perfect strike<br>"
g3 += "+"+ps[1]+"<br>% perfect strike<br>"
g4 += "+"+ps[1]+"<br>% perfect strike<br>"}
if (mr[1] > 0){
g1 += "+"+Math.round(mr[1]*1.15)+" max rage<br>"
g2 += "+"+Math.round(mr[1]*1.3225)+" max rage<br>"
g3 += "+"+Math.round(mr[1]*1.520875)+" max rage<br>"
g4 += "+"+Math.round(mr[1]*1.74900625)+" max rage<br>"}
if (crit[1] > 0){
g1 += "+"+crit[1]+"% critical hit<br>"
g2 += "+"+crit[1]+"% critical hit<br>"
g3 += "+"+crit[1]+"% critical hit<br>"
g4 += "+"+crit[1]+"% critical hit<br>"}
var openslot = document.querySelectorAll("img[src='/images/gemslot2.jpg']");
if (openslot[0] != null)
openslot[0].setAttribute(`onmouseover`, `popup(event,'<div id=gemcalc>`+g1+`</div>');`);
if (openslot[0] != null)
openslot[0].setAttribute(`onmouseout`, `kill()`);
if (openslot[1] != null)
openslot[1].setAttribute(`onmouseover`, `popup(event,'<div id=gemcalc>`+g2+`</div>')`);
if (openslot[1] != null)
openslot[1].setAttribute(`onmouseout`, `kill()`);
if (openslot[2] != null)
openslot[2].setAttribute(`onmouseover`, `popup(event,'<div id=gemcalc>`+g3+`</div>')`);
if (openslot[2] != null)
openslot[2].setAttribute(`onmouseout`, `kill()`);
if (openslot[3] != null)
openslot[3].setAttribute(`onmouseover`, `popup(event,'<div id=gemcalc>`+g4+`</div>')`);
if (openslot[3] != null)
openslot[3].setAttribute(`onmouseout`, `kill()`);
var itemNameColor = document.querySelector("#itemtable > tbody > tr:nth-child(1) > td").outerHTML.replace(/<td colspan="2" style="height:20px;font-size:12pt;text-shadow: #47462E 1px 1px 2px;color:#/g,"").replace(/" align="left">.*/g,"");
var itemRarity = '';
if (itemNameColor == "FFFFFF")
itemRarity = "Uncommon";
if (itemNameColor == "1eff00")
itemRarity = "Rare";
if (itemNameColor == "ffde5b")
itemRarity = "Elite";
if (itemNameColor == "0070ff")
itemRarity = "Godly";
if (itemNameColor == "CA1111")
itemRarity = "Brutal";
if (itemNameColor == "ff8000")
itemRarity = "King";
if (itemNameColor == "9000ba")
itemRarity = "Mythic"
var gemTxt = `
<td colspan="2" style="padding:2px;" valign="top"><div id="itemGemCalc">
<table width=300px border=1 bordercolor=#D4D4D4 id=gemcalc><tr><td>
Item Rarity: <font color=`+itemNameColor+`>`+itemRarity+`
</td><td>
Number of Gems: `+gems+`
</td></tr></table>
<div id=mouseovergem>Mouseover empty gem slot to see gemmed stats</div><p>
</div></td>
`
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
let menu = document.querySelector("#itemtable > tbody");
let tr = document.createElement('tr');
tr.innerHTML = gemTxt;
insertAfter(tr, menu.lastElementChild);
})})})})})}
// boss raid individual pages
if (document.URL.indexOf("boss_stats") != -1 ) {
let str = document.querySelector("#content-header-row > div > table")
str.innerHTML = str.innerHTML
.replace("Ancestral","<font color=#FF00FF>Ancestral")
.replace("Tomb","Tomb</font>")
.replace("Boon of Vision","<font color=#FF00FF>Boon of Madness</font>")
.replace("Tier 2 Booster Upgrade","<font color=#FF8000>Tier 2 Booster Upgrade</font>")
.replace("8-Bit Banana","<font color=#FF8000>8-Bit Banana</font>")
.replace("Augment of Vision","<font color=#FF8000>Augment of Vision</font>")
.replace("Transcended Extract","<font color=#FF8000>Transcended Extract</font>")
.replace("Augment of Madness","<font color=#FF8000>Augment of Madness</font>")
.replace("Prophecy Mail Reborn","<font color=#FFDE5B>Prophecy Mail Reborn</font>")
.replace("Cord of Freezing Winds Reborn","<font color=#FFDE5B>Cord of Freezing Winds Reborn</font>")
.replace("Soul of Blackhand Reborn","<font color=#FFDE5B>Soul of Blackhand Reborn</font>")
.replace("Trinket of Aridity Reborn","<font color=#FFDE5B>Trinket of Aridity Reborn</font>")
.replace("Interstellar Leggings Reborn","<font color=#FFDE5B>Interstellar Leggings Reborn</font>")
.replace("Myrmidon Helm Reborn","<font color=#FFDE5B>Myrmidon Helm Reborn</font>")
.replaceAll("Blackhand Reborn","<font color=#FFDE5B>Blackhand Reborn</font>")
.replace("Incredible Tower Shield Reborn","<font color=#FFDE5B>Incredible Tower Shield Reborn</font>")
.replace("Ring of the Sea Reborn","<font color=#FFDE5B>Ring of the Sea Reborn</font>")
.replace("Boots of the Eagle Reborn","<font color=#FFDE5B>Boots of the Eagle Reborn</font>")
.replace("Core of Exalted Perfection","<font color=#FFDE5B>Core of Exalted Perfection</font>")
.replace("Greathelm of Exalted Perfection","<font color=#FFDE5B>Greathelm of Exalted Perfection</font>")
.replace("Brooch of Exalted Perfection","<font color=#FFDE5B>Brooch of Exalted Perfection</font>")
.replace("Launcher of Exalted Perfection","<font color=#FFDE5B>Launcher of Exalted Perfection</font>")
.replace("Cuirass of Exalted Perfection","<font color=#FFDE5B>Cuirass of Exalted Perfection</font>")
.replace("Boon of Exalted Perfection","<font color=#FFDE5B>Boon of Exalted Perfection</font>")
.replace("Link of Exalted Perfection","<font color=#FFDE5B>Link of Exalted Perfection</font>")
.replace("Scales of Exalted Perfection","<font color=#FFDE5B>Scales of Exalted Perfection</font>")
.replace("Twirl of Exalted Perfection","<font color=#FFDE5B>Twirl of Exalted Perfection</font>")
.replace("Spurs of Exalted Perfection","<font color=#FFDE5B>Spurs of Exalted Perfection</font>")
var deadCheck = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child(1) > td:nth-child(3)").innerHTML;
if (deadCheck > 0){
var bossTableX = document.querySelector("#content-header-row > div > table");
var bossTableRowsX = bossTableX.rows.length;
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
var bossName = document.querySelector("#content-header-row > h1").innerHTML
var lootCount = '';
if (bossName == "Cosmos, Great All Being")
lootCount = "50"
if (bossName == "Death, Reaper of Souls")
lootCount = "80"
if (bossName == "Maekrix, Dreaded Striker")
lootCount = "73"
if (bossName == "Blackhand Reborn")
lootCount = "61"
if (bossName == "Zyrak, Vision of Madness")
lootCount = "65"
if (bossName == "Arkron, God of Trials")
lootCount = "160"
for (let rownumX = 1; rownumX < bossTableRowsX; rownumX++) {
GM_addStyle ( `
td:nth-of-type(3){display: none !important;}
#content-header-row > div > table > thead > tr > th:nth-child(3){width: 60% !important;}
.table td{border: 1px SOLID #0F0F0F !important;}
#content-header-row > div > table > tbody > tr > td > a > font {color:#FFFFFF !important;}
`);
var crewName = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+") > td:nth-child(1) > a > font").innerHTML.replace("'","");
var percentage = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+") > td:nth-child(2)").innerHTML.replace(/.*\(/i,"").replace("%)","");
let bossLootCnt = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+") > td:nth-child(3)").innerHTML
let bossLoot = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+") > td:nth-child(3)").outerHTML
bossLoot = `<table id=bossloottable><tr><td width=50px><center><span id=bossloot style='background-color: #D4D4D4; color: #202020;'><b>`+bossLootCnt+`</b><br></span><a onmouseover="popup(event,'`+crewName+`s expected drops')" onmouseout="kill()"><font size=1 color=#D4D4D4>(`+Math.round(percentage/100*lootCount)+`)</td><td> `+bossLoot.replace(/<td onmouseover="popup\(event,'/g,"").replace(/<br>','808080'\)" onmouseout="kill\(\)>.*<\/td>/g,"").replaceAll("<br>",", ").replaceAll(/No Items','808080'\)" onmouseout="kill\(\)">0/g,"").replaceAll(/, ','808080'\)" onmouseout="kill\(\)">[0-9]+/g,"");
let menu = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+")");
let td = document.createElement('td');
td.innerHTML = bossLoot;
insertAfter(td, menu.lastElementChild);
}}}
if (document.URL.indexOf("boss_stats") != -1 ) {
let bossName = document.querySelector("#content-header-row > h1").innerHTML
let lootCount = '';
if (bossName == "Cosmos, Great All Being")
lootCount = "50"
if (bossName == "Death, Reaper of Souls")
lootCount = "78"
if (bossName == "Maekrix, Dreaded Striker")
lootCount = "73"
if (bossName == "Blackhand Reborn")
lootCount = "61"
if (bossName == "Zyrak, Vision of Madness")
lootCount = "64"
if (bossName == "Arkron, God of Trials")
lootCount = "160"
var bossHP = '';
if (bossName == "Cosmos, Great All Being")
bossHP = "100000000000"
if (bossName == "Death, Reaper of Souls")
bossHP = "290000000000"
if (bossName == "Maekrix, Dreaded Striker")
bossHP = "320000000000"
if (bossName == "Blackhand Reborn")
bossHP = "570000000000"
if (bossName == "Zyrak, Vision of Madness")
bossHP = "1200000000000"
if (bossName == "Arkron, God of Trials")
bossHP = "900000000000"
var bossTable = document.querySelector("#content-header-row > div > table");
var bossTableRows = bossTable.rows.length;
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
var aliveCheck = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child(1) > td:nth-child(3)").innerHTML;
if (aliveCheck < 1){
let menu = document.querySelector("#content-header-row > div > table > thead > tr");
let td1 = document.createElement('td');
td1.innerHTML = `<div id=estdrop><a onmouseover="popup\(event,'Estimating the number of items each crew will receive'\)" onmouseout="kill\(\)"><b>ESTIMATED DROPS</div>`;
insertAfter(td1, menu.lastElementChild);
let td4 = document.createElement('td');
td4.innerHTML = `<div id=estdrop><a onmouseover="popup\(event,'Mouseover column to see last raid'\)" onmouseout="kill\(\)"><b>RAID STATUS</div>`;
insertAfter(td4, menu.lastElementChild);
function calcTime(city, offset) {
d = new Date();
utc = d.getTime() + (d.getTimezoneOffset() * 60000);
nd = new Date(utc + (3600000*offset));
return nd.toLocaleString();
}
var OWtime = Date.parse((calcTime('Outwar', '-5.0')));
for (let rownum = 1; rownum < bossTableRows; rownum++) {
GM_addStyle ( `
td:nth-of-type(3){display: none !important;}
#content-header-row > div > table > thead > tr > th:nth-child(3) > a > b > font{color: #fcfcfc !important;}
.table td{border: 1px SOLID #0F0F0F !important;}
#content-header-row > div > table > thead{border: 0px SOLID !important;}
#estdrop{margin-top:7px !important;}
`);
var crewID = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(1)").innerHTML.replaceAll(/"><font.*/g,"").replaceAll(/<a href="crew_profile\.php\?id=/g,"");
fetch("crew_raidresults.php?all_results=Display+all+raid+results&crewid="+crewID)
.then(response => response.text())
.then((response) => {
var match = 'valign="top">(.*)<\/td.*[\n\r].*'+bossName
var lastRaid = response.match(match)
var lastRaidprint = ''
if (lastRaid != null)
lastRaidprint = Date.parse(lastRaid[1].replaceAll("-","/").replace(/\/22 /g,"/2022, ").replace("am",":00 AM").replace("pm",":00 PM").replace(/ 0/i," "));
var sinceLast = OWtime-lastRaidprint
var crewName = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(1) > a > font").innerHTML.replace("'","");
var crewID = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(1)").innerHTML.replaceAll(/<a href="crew_profile\.php\?id=/g,"").replaceAll(/"><font color="#CC0000".*/g,"");
var activeRaids = '';
if (sinceLast < 150000)
activeRaids = `<font color=#fcfcfc><a href=crew_raidresults.php?most_recent=MoxxiMod+raid+results&crewid=`+crewID+` onmouseover="popup\(event,'<b>`+crewName+`</b><br>Last raid vs `+bossName+`:<br>`+Math.round(sinceLast/60000)+` minutes ago<br><font color=#fcfcfc>(click to see raid results)'\)" onmouseout="kill\(\)">Actively Raiding`
if (sinceLast > 149999)
activeRaids = `<a onmouseover="popup\(event,'<b>`+crewName+`</b><br>Last raid vs `+bossName+`:<br>`+Math.round(sinceLast/60000)+` minutes ago'\)" onmouseout="kill\(\)"><font color=#D4D4D4>Not Raiding`
let td3 = document.createElement('td');
td3.innerHTML = activeRaids;
insertAfter(td3, menu.lastElementChild);
})
bossTable.rows[0].cells[2].innerHTML = `<a onmouseover="popup\(event,'Estimating the total damage when the boss dies'\)" onmouseout="kill\(\)"><b>ESTIMATED DAMAGE`
let percentage = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2)").innerHTML.replace(/.*\(/i,"").replace("%)","");
var damage = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2)").innerHTML.replace(/ \(.*%\)/g,"").replaceAll(",","");
let menu = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+")");
let td1 = document.createElement('td');
td1.innerHTML = Math.round(lootCount*(percentage/100));
insertAfter(td1, menu.lastElementChild);
const reducer = (accumulator, curr) => accumulator + curr
var BaseDmgArray = [];
var table = document.querySelector("#content-header-row > div > table").innerHTML
var BaseMatch = table.matchAll(/<td>(.*) \(/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 = "<br>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;}
#bosslootdiv > table > tbody > tr > td {padding: 20px !important;vertical-align: text-top !important;background:#0F0F0F;}
#bosslootdiv{margin-left:15px;width: 480px;overflow-x: auto;overflow-y: hidden;white-space: nowrap;background:#0F0F0F;font-size: 0.78em;}
#divHeader{display:none !important;}
`);
var loottable = `
<table>
<tr>
<td>
<b>COSMOS<br></b>
Demonic Teleporter x1<br>
Recharge the Fury x4<br>
Cosmos Talisman x10<br>
Tome of Daily Grind x5<br>
Key to Knights Horror x9<br>
Astral Shard x4<br>
Quest Shard x5<br>
Recharge Totem x3<br>
Star Power x4<br>
Ticket to the Mystifying Carnival x3<br>
Containment Orb x2<br>
Orb of the Scepter x1<br>
Amulet Chest (50) x2
</td>
<td>
<b>DEATH<br></b>
Recharge Totem x3<br>
Recharge the Fury x10<br>
Standard Issue Neuralyzer x6<br>
Death Talisman x12<br>
Pirate Treasure Map x6<br>
Key of the Elements x6<br>
Advanced Neuralyzer x2<br>
Trinket Items x10<br>
Elemental Vigor Orb x2<br>
Elemental Assault Orb x2<br>
Elemental Defense Orb x2<br>
Amulet Chest (50) x4<br>
<font color=#fff000>Chancellor Item x20<br>
<font color=#fff000>Spiral Gear x10
</td>
<td>
<b>MAEKRIX<br></b>
Red Dragon Items x9<br>
Astral Totem x10<br>
Maekrix Talisman x12<br>
Key to the Alsayic Ruins (Solo) x2<br>
Juggernaut Talisman x8<br>
Advanced Neuralyzer x2<br>
Irthys Vigor Orb x3<br>
Irthys Assault Orb x3<br>
Irthys Defense Orb x3<br>
Add Augment Slot x4<br>
Remove Augment x8<br>
Amulet Chest (50) x6<br>
<font color=#FFF000>Nobel Gear x10
</td>
<td>
<b>BLACKHAND<br></b>
Augment of the Reborn Knight x1<br>
Blackhand Reborn Items x10<br>
Core of Blackhand x2<br>
Essence of Reincarnation x1<br>
Blackhand Talisman x4<br>
Profound Ward x10<br>
8-Bit Banana x1<br>
Buckler of Insanity x3<br>
Hauberk of Lunacy x3<br>
Charm of Havoc x3<br>
Unstoppable Concoction x10<br>
Advanced Neuralyzer x2<br>
Power Potion Pack x2<br>
Flask of Endurance x5<br>
Magic Gem x1<br>
<font color=#FFF000>Perfection Gear x10
</td>
<td>
<b>ZYRAK<br></b>
Augment of Madness x1<br>
Unstable Jewel x6<br>
Veldarabloom x3<br>
Scripture of Zyrak x3<br>
Pulsating Stone x2<br>
Bottled Chaos x1<br>
Thunder Ball x10<br>
Force of Veldara x10<br>
Interstellar Vessel x6<br>
Vault Tear x6<br>
Vial of Insanity x6<br>
Demonic Madness x3<br>
Infinite Tower Spheroid x1<br>
Transcended Extract x1<br>
Tier 2 Booster Upgrade x1<br>
<font color=#FFF000>Exalted Gear x10<br>
<font color=#FFF000>Boon of Vision x1<br>
<font color=#FFF000>Ancestral Tomb x3
</table>
`
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);}
var bosspage = document.querySelector("#divCollections > div.row")
let bossdiv = document.createElement('div');
bossdiv.innerHTML = loottable;
bossdiv.setAttribute("id", "bosslootdiv")
bossdiv.setAttribute("class", "card component-card_4 mb-3")
insertAfter(bossdiv, bosspage.lastElementChild);
var bossCount = $('#divCollections > div.row > div').length
fetch("crew_profile")
.then(response => response.text())
.then((response) => {
var myCrew = response.match(/<h2>.*<\/h2>/g)
var myCrewID = response.match(/href="\/crew_raidresults\.php\?crewid=(.*)">Raid Results<\/a>/i)
var bossHead = document.querySelector("#divHeader > h3")
bossHead.innerHTML = "<a href=crew_raidresults.php?most_recent=MoxxiMod+raid+results&crewid="+myCrewID[1]+"> Moxxi Mod Raid Results</a>"
})
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 class="w-100">(.*)<\/h1>/i)
if (bossName != null){
var bossHP = '';
if (bossName[1] == "Cosmos, Great All Being")
bossHP = "100000000000"
if (bossName[1] == "Death, Reaper of Souls")
bossHP = "290000000000"
if (bossName[1] == "Maekrix, Dreaded Striker")
bossHP = "320000000000"
if (bossName[1] == "Blackhand Reborn")
bossHP = "570000000000"
if (bossName[1] == "Zyrak, Vision of Madness")
bossHP = "1200000000000"
if (bossName[1] == "Arkron, God of Trials")
bossHP = "900000000000"
var crew1 = response.match(/<font color="#CC0000">(.*)<\/font>.*[\n\r].*<td>(.*) \(.*\)<\/font>/i);
const reducer = (accumulator, curr) => accumulator + curr
var BaseDmgArray = [];
var BaseMatch = response.matchAll(/<td>(.*) \(/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)
var cosmosPerc = ((bossHP-SumOfBase)/bossHP*100).toFixed(3)
var cosmosRemain = Math.round(SumOfBase*cosmosPerc/(100-cosmosPerc))
document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-text").innerHTML = "<hr><b>Total Damage Dealt:</b> "+SumOfBase.toLocaleString("en-US")+"<hr><b>Leading Crew:</b><br>"+crew1[1]+"<br>"+crew1[2]+"<hr><b>Health Remaining:</b> "+cosmosRemain.toLocaleString("en-US")+'<br><a href='+document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation > a")+'>'+cosmosPerc+"%</a>"
document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > h3").innerHTML = '<a href='+document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation > a")+'>'+bossName[1]+'</a>'
document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation").innerHTML = ''
}})};}}
// moxximod raid results menu and styling
if (document.URL.indexOf("crew_raidresults") != -1 ) {
document.querySelector("#content-header-row > table > tbody > tr > td > form > p > input:nth-child(3)").setAttribute("value", "MoxxiMod raid results");
};
if (document.URL.indexOf("most_recent=MoxxiMod") != -1 ) {
GM_addStyle ( `#content-header-row > table > tbody > tr > td > div > center > div > table{background:#0B0B0B !important;}
td:nth-of-type(3){display: none;}
td:nth-of-type(4){display: none;}
td:nth-of-type(5){display: none;}
`);
var changeHeader0 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table")
changeHeader0.rows[0].cells[0].innerHTML = `<a onmouseover="popup\(event,'Raid time'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>TIME`
var changeHeader1 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table")
changeHeader1.rows[0].cells[1].innerHTML = `<a onmouseover="popup\(event,'Raid god, mob or boss'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>RAID`
// moxximod raid results header row
function insertAfter2(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
let rrHead11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead11 = document.createElement('td');
tdHead11.innerHTML = `<a onmouseover="popup\(event,'Total chars in the raid<br>(number of chars who died)'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>CHARS`;
insertAfter2(tdHead11, rrHead11.lastElementChild);
let rrHead1 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead1 = document.createElement('td');
tdHead1.innerHTML = `<a onmouseover="popup\(event,'Total amount of attack damage<br>Mouseover to see details'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>DMG`;
insertAfter2(tdHead1, rrHead1.lastElementChild);
let rrHead2 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead2 = document.createElement('td');
tdHead2.innerHTML = `<a onmouseover="popup\(event,'Average amount of attack damage per char'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>AVG`;
insertAfter2(tdHead2, rrHead2.lastElementChild);
let rrHead6 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead6 = document.createElement('td');
tdHead6.innerHTML = `<a onmouseover="popup\(event,'Average block rate of all chars'\)" onmouseout="kill\(\)"><font color="ff9e00"><b>BLOCK`;
insertAfter2(tdHead6, rrHead6.lastElementChild);
let rrHead7 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead7 = document.createElement('td');
tdHead7.innerHTML = `<a onmouseover="popup\(event,'Average ele block rate of all chars'\)" onmouseout="kill\(\)"><font color="00ff0b"><b>BLOCK`;
insertAfter2(tdHead7, rrHead7.lastElementChild);
let rrHead13 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead13 = document.createElement('td');
tdHead13.innerHTML = `<a onmouseover="popup\(event,'Average ele shield rate of all chars'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>SHIELD`;
insertAfter2(tdHead13, rrHead13.lastElementChild);
let rrHead14 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead14 = document.createElement('td');
tdHead14.innerHTML = `<a onmouseover="popup\(event,'Total number of individual attacks executed'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>ATKS`;
insertAfter2(tdHead14, rrHead14.lastElementChild);
let rrHead10 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead10 = document.createElement('td');
tdHead10.innerHTML = `<a onmouseover="popup\(event,'Total number of rounds'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>RNDS`;
insertAfter2(tdHead10, rrHead10.lastElementChild);
let rrHead12 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead12 = document.createElement('td');
tdHead12.innerHTML = `<a onmouseover="popup\(event,'Was SIN applied during the raid?'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>SIN`;
insertAfter2(tdHead12, rrHead12.lastElementChild);
let rrHead5 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead5 = document.createElement('td');
tdHead5.innerHTML = `<a onmouseover="popup\(event,'Remaining health of the mob'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>HEALTH`;
insertAfter2(tdHead5, rrHead5.lastElementChild);
let rrHead4 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead4 = document.createElement('td');
tdHead4.innerHTML = `<a onmouseover="popup\(event,'Items dropped from raid'\)" onmouseout="kill\(\)"><font color=#c2c2c2><b>LOOT`;
insertAfter2(tdHead4, rrHead4.lastElementChild);
// moxximod raid results data scrape
var rrTable = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table");
var rrRowCount = 1+rrTable.rows.length;
for (let rownum = 2; rownum < rrRowCount; rownum++) {
let raidLink11 = '';
if (document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a") != null)
raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a");
let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")")
let chars11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(3)").innerHTML;
let raidNameCell = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2)");
let raidName = '';
if (raidNameCell != null)
raidNameCell.innerHTML = '<a href='+raidLink11+'>'+raidNameCell.innerHTML.replaceAll(/,.*/g,"").replaceAll(/of.*/g,"").replaceAll("The","").replaceAll(/the.*/g,"").replaceAll(/the.*/g,"")+'</a>';
let timeStampCell = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(1)");
let timeStampName = '';
if (timeStampCell != null)
timeStampCell.innerHTML = timeStampCell.innerHTML.replaceAll(/[0-9]+-[0-9]+-[0-9]+/g,"");
GM_xmlhttpRequest ( {
method: 'GET',
url: raidLink11,
onload: function (responseDetails) {
var raidDmg11 = /Damage: ([0-9,]*)/;
var printDmg11 = raidDmg11.exec(responseDetails.responseText);
var raidDrops11 = /popup\(event,'<b>(.*)<\/b>'\)" onmouseout="kill\(\)">[0-9]+ items<\/a>/i;
var printDrops11 = raidDrops11.exec(responseDetails.responseText);
var drops11 = '';
if (printDrops11 == null)
drops11 = `<b>No items found`
if (printDrops11 != null)
drops11 = printDrops11[1]
var raidHealth11 = /([0-9]+)%<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]<span id=/i;
var printHealth11 = raidHealth11.exec(responseDetails.responseText);
var health11 = '';
if (printHealth11[1] < 1)
health11 = `<font color=#02B602><b>`+printHealth11[1]+`%</font>`
if (printHealth11[1] > 0)
health11 = `<font color=#FF0000><b>`+printHealth11[1]+`%</font>`
fetch(raidLink11)
.then(response => response.text())
.then((response) => {
var attacks11 = response.match(/Base: [0-9]+/g).length;
var blocks11 = response.match(/images\/block\.jpg/g);
var eleblocks11 = response.match(/images\/block2\.jpg/g);
var shields11 = response.match(/_ele_shield\.jpg/g);
var dead11 = response.match(/images\/dead\.jpg/g);
var rounds11 = response.match(/\/img\/skin\/Bar_separator_little\.png/g).length;
var sincheck11 = response.match(/color:#CC0000;"><b>(.*)<\/b>/i);
const reducer = (accumulator, curr) => accumulator + curr
var BaseDmgArray = [];
var BaseMatch = response.matchAll(/onmouseover="popup\(event,.*Base: (.*)<div/g);
for (const BaseMatchLoop of BaseMatch) {
let BaseObj = [parseInt(BaseMatchLoop[1].replace(",",""))];
for (const BaseDmg of BaseObj) {
BaseDmgArray.push(BaseDmg);}}
var BaseNumbers = BaseDmgArray.map(Number)
var BaseDmgCheck = '';
if (BaseNumbers != "")
BaseDmgCheck = BaseNumbers
if (BaseNumbers == "")
BaseDmgCheck = [0]
var SumOfBase = BaseDmgCheck.reduce(reducer).toLocaleString("en-US");
var printBase = "<font color=#FFFFFF><b>+"+SumOfBase+" base<br>"
var FireDmgArray = [];
var FireMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) fire/g);
for (const FireMatchLoop of FireMatch) {
let FireObj = [parseInt(FireMatchLoop[1].replace(",",""))];
for (const FireDmg of FireObj) {
FireDmgArray.push(FireDmg);}}
var FireNumbers = FireDmgArray.map(Number)
var FireDmgCheck = '';
if (FireNumbers != "")
FireDmgCheck = FireNumbers
if (FireNumbers == "")
FireDmgCheck = [0]
var SumOfFire = FireDmgCheck.reduce(reducer).toLocaleString("en-US");
var printFire = "<font color=#ff0000><b>+"+SumOfFire+" fire<br>"
var ShadowDmgArray = [];
var ShadowMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) shadow/g);
for (const ShadowMatchLoop of ShadowMatch) {
let ShadowObj = [parseInt(ShadowMatchLoop[1].replace(",",""))];
for (const ShadowDmg of ShadowObj) {
ShadowDmgArray.push(ShadowDmg);}}
var ShadowNumbers = ShadowDmgArray.map(Number)
var ShadowDmgCheck = '';
if (ShadowNumbers != "")
ShadowDmgCheck = ShadowNumbers
if (ShadowNumbers == "")
ShadowDmgCheck = [0]
var SumOfShadow = ShadowDmgCheck.reduce(reducer).toLocaleString("en-US");
var printShadow = "<font color=#9f02d3><b>+"+SumOfShadow+" shadow<br>"
var HolyDmgArray = [];
var HolyMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) holy/g);
for (const HolyMatchLoop of HolyMatch) {
let HolyObj = [parseInt(HolyMatchLoop[1].replace(",",""))];
for (const HolyDmg of HolyObj) {
HolyDmgArray.push(HolyDmg);}}
var HolyNumbers = HolyDmgArray.map(Number)
var HolyDmgCheck = '';
if (HolyNumbers != "")
HolyDmgCheck = HolyNumbers
if (HolyNumbers == "")
HolyDmgCheck = [0]
var SumOfHoly = HolyDmgCheck.reduce(reducer).toLocaleString("en-US");
var printHoly = "<font color=#00FFFF><b>+"+SumOfHoly+" holy<br>"
var ArcaneDmgArray = [];
var ArcaneMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) arcane/g);
for (const ArcaneMatchLoop of ArcaneMatch) {
let ArcaneObj = [parseInt(ArcaneMatchLoop[1].replace(",",""))];
for (const ArcaneDmg of ArcaneObj) {
ArcaneDmgArray.push(ArcaneDmg);}}
var ArcaneNumbers = ArcaneDmgArray.map(Number)
var ArcaneDmgCheck = '';
if (ArcaneNumbers != "")
ArcaneDmgCheck = ArcaneNumbers
if (ArcaneNumbers == "")
ArcaneDmgCheck = [0]
var SumOfArcane = ArcaneDmgCheck.reduce(reducer).toLocaleString("en-US");
var printArcane = "<font color=#FFFF00><b>+"+SumOfArcane+" arcane<br>"
var KineticDmgArray = [];
var KineticMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) kinetic/g);
for (const KineticMatchLoop of KineticMatch) {
let KineticObj = [parseInt(KineticMatchLoop[1].replace(",",""))];
for (const KineticDmg of KineticObj) {
KineticDmgArray.push(KineticDmg);}}
var KineticNumbers = KineticDmgArray.map(Number)
var KineticDmgCheck = '';
if (KineticNumbers != "")
KineticDmgCheck = KineticNumbers
if (KineticNumbers == "")
KineticDmgCheck = [0]
var SumOfKinetic = KineticDmgCheck.reduce(reducer).toLocaleString("en-US");
var printKinetic = "<font color=#00FF00><b>+"+SumOfKinetic+" kinetic<br>"
var VileDmgArray = [];
var VileMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) vile/g);
for (const VileMatchLoop of VileMatch) {
let VileObj = [parseInt(VileMatchLoop[1].replace(",",""))];
for (const VileDmg of VileObj) {
VileDmgArray.push(VileDmg);}}
var VileNumbers = VileDmgArray.map(Number)
var VileDmgCheck = '';
if (VileNumbers != "")
VileDmgCheck = VileNumbers
if (VileNumbers == "")
VileDmgCheck = [0]
var SumOfVile = VileDmgCheck.reduce(reducer).toLocaleString("en-US");
var printVile = "<font color=#cccccc><b>+"+SumOfVile+" vile energy<br>"
var ChaosDmgArray = [];
var ChaosMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) chaos/g);
for (const ChaosMatchLoop of ChaosMatch) {
let ChaosObj = [parseInt(ChaosMatchLoop[1].replace(",",""))];
for (const ChaosDmg of ChaosObj) {
ChaosDmgArray.push(ChaosDmg);}}
var ChaosNumbers = ChaosDmgArray.map(Number)
var ChaosDmgCheck = '';
if (ChaosNumbers != "")
ChaosDmgCheck = ChaosNumbers
if (ChaosNumbers == "")
ChaosDmgCheck = [0]
var SumOfChaos = ChaosDmgCheck.reduce(reducer).toLocaleString("en-US");
var printChaos = "<font color=#f441be><b>+"+SumOfChaos+" chaos"
var totdead11 = '';
if (dead11 != null)
totdead11 = (dead11.length).toFixed(0)
if (dead11 == null)
totdead11 += "0"
var shieldrate11 = '';
if (shields11 != null)
shieldrate11 = (shields11.length/attacks11*100).toFixed(1)
if (shields11 == null)
shieldrate11 += "0.0"
var sin11 = '';
if (sincheck11[1] != "0")
sin11 += "No"
if (sincheck11[1] == "0")
sin11 += "Yes"
var blockrate11 = '';
if (blocks11 != null)
blockrate11 += (blocks11.length/attacks11*100).toFixed(1)
if (blocks11 == null)
blockrate11 += "0.0"
var eleblockrate11 = '';
if (eleblocks11 != null)
eleblockrate11 = (eleblocks11.length/attacks11*100).toFixed(1)
if (eleblocks11 == null)
eleblockrate11 += "0.0"
let td112 = document.createElement('td');
td112.innerHTML = chars11+" (<span>🕱</span>"+totdead11+")";
insertAfter2(td112, row11.lastElementChild);
var damage11 = printDmg11[1];
let td11 = document.createElement('td');
td11.innerHTML = `<span class="dmgbox-text" onmouseover="popup(event,'</center>`+printBase+printFire+printShadow+printHoly+printArcane+printKinetic+printVile+printChaos+`');" onmouseout="kill();">`+damage11;
insertAfter2(td11, row11.lastElementChild);
var cells11 = row11.getElementsByTagName("td");
let td12 = document.createElement('td');
var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText);
td12.textContent = td12comma.toLocaleString("en-US");
insertAfter2(td12, row11.lastElementChild);
let td61 = document.createElement('td');
td61.innerHTML = blockrate11+"%";
insertAfter2(td61, row11.lastElementChild);
let td71 = document.createElement('td');
td71.innerHTML = eleblockrate11+"%";
insertAfter2(td71, row11.lastElementChild);
let td111 = document.createElement('td');
td111.innerHTML = shieldrate11+"%";
insertAfter2(td111, row11.lastElementChild);
let td13 = document.createElement('td');
td13.innerHTML = attacks11;
insertAfter2(td13, row11.lastElementChild);
let td91 = document.createElement('td');
td91.innerHTML = rounds11;
insertAfter2(td91, row11.lastElementChild);
let td101 = document.createElement('td');
td101.innerHTML = sin11;
insertAfter2(td101, row11.lastElementChild);
let td51 = document.createElement('td');
td51.innerHTML = health11;
insertAfter2(td51, row11.lastElementChild);
let td41 = document.createElement('td');
td41.innerHTML = drops11.replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"<br>");
insertAfter2(td41, row11.lastElementChild);
});}})}}
// world
function doc_keyUp(e) {
if (e.key === '1') {
document.querySelector("#roomDetails > ul > li:nth-child(1) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (e.key === '2') {
document.querySelector("#roomDetails > ul > li:nth-child(2) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (e.key === '3') {
document.querySelector("#roomDetails > ul > li:nth-child(3) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (e.key === '4') {
document.querySelector("#roomDetails > ul > li:nth-child(4) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (e.key === '5') {
document.querySelector("#roomDetails > ul > li:nth-child(5) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (e.key === '6') {
document.querySelector("#roomDetails > ul > li:nth-child(6) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (e.key === '7') {
document.querySelector("#roomDetails > ul > li:nth-child(7) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (e.key === '8') {
document.querySelector("#roomDetails > ul > li:nth-child(8) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (e.key === '9') {
document.querySelector("#roomDetails > ul > li:nth-child(9) > div > div.ml-3.d-block.align-self-center > a > img").click();}}
document.addEventListener('keyup', doc_keyUp, false);
if (window.location.href.indexOf("outwar.com/world") != -1 ) {
let observer = new MutationObserver(mutationRecords => {
attackframe()
});
observer.observe(roomid_display, {
childList: true,
subtree: true,
characterDataOldValue: true
});
function attackframe(){
$('a[target="_blank"]').prop("target", "attack");
};}
if (document.URL.indexOf("plrattack") != -1 ) {
$("#sidebar").hide()
$("body > center > div.sub-header-container").hide()
$("body > center > div.header-container.fixed-top").hide()
$("#ranks-filters > form > div").hide()
GM_addStyle ( `
#container{background:#0B0B0B !important;}
#content > div.layout-px-spacing{margin-top: -130px !important;background:#0B0B0B !important;}
.mr-3, .mx-3 {margin-right: 0rem!important;}
#result_notice_window{
font-size: 18pt;
display: none;
text-align: center;
padding: 5px;
width: 340px;
border: 2px solid #cccccc;
color: #cc0000;
background-color: black;
position: absolute;
left:470px !important;
top: 0px !important;}
body > center > div.sub-header-container2{display:none !important;}
` );}
if ( document.URL.indexOf("somethingelse") != -1 ) {
GM_addStyle ( `
body > center > div.sub-header-container{display:none !important;}
#container > div.sidebar-wrapper.sidebar-theme{display:none !important;}
#recentraid{display:none !important;}
#content > div.layout-px-spacing{margin-top:-82px !important;}
#content-header-row > div > div{height:494px !important;}
` );}
if (window.location.href.indexOf("outwar.com/world") != -1 ) {
var theImage8;
theImage8 = document.querySelector("#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-content > div.room-top")
theImage8.innerHTML =
'<div id="attack"><iframe src="" name="attack" id="attack" style="border:1px #202020 SOLID;" scrolling="no" frameborder="0" height="0px" width="470px" height="500px"></iframe></div>'}
if (window.location.href.indexOf("outwar.com/world") != -1 ) {
document.querySelector("#roomDetails").onclick = function() {$("iframe").height(500)}}
if (window.location.href.indexOf("outwar.com/world") != -1 ) {
GM_addStyle ( `
.layout-spacing,#content-header-row > div.col-xl-4.col-lg-12.col-md-12.col-sm-12.col-12.layout-spacing.px-1 > div{width:350px !important;}
#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div,#content-header-row > div.col-xl-4.col-lg-12.col-md-12.col-sm-12.col-12.layout-spacing.px-1 > div,#content-header-row > div.col-xl-3.col-lg-6.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div{min-height:700px !important;}
#roomDetails > ul > li > div > div.mr-3 > img {display:none !important;}
#ranks > li > div > div.mr-3 > div > div.rank-row-image > a{width: 0px !important;}
#ranks > li > div > div.media-body{text-align: left !important;}
.mr-3, .mx-3 {margin-right: 0rem!important;}
#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-content > div.room-middle{display:none !important;}
.spawnRow{padding-top:0px !important;padding-bottom:0px !important;}
#roomDetails > ul > li {
display: block !important;
list-style-type: disc !important;
margin-block-start: 0em !important;
margin-block-end: 0em !important;
margin-inline-start: 0px !important;
margin-inline-end: 0px !important;
padding-inline-start: 0px !important;
}
#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-content.pt-0 > div{margin-top:30px !important;}
#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1{margin-left:15px !important;margin-right:-22px !important;}
body > center > div.sub-header-container2{display:none !important;}
#Xmoxxivision{position:fixed !important; left: 1px !important; bottom: 200px !important;padding:10px !important;box-shadow:2px 2px 5px #000000, -2px -2px 5px #000000 !important; background: #202020 !important; z-index:10000 !important;}
` );}
if ( document.URL.indexOf("plrattack") != -1 ) {
var attackerHP = document.querySelector("#content-header-row > center > script").innerHTML.match(/var attacker_health_start = (.*);/i)
var attackerHPprint = parseInt(attackerHP[1])
var mobHP = document.querySelector("#content-header-row > center > script").innerHTML.match(/var defender_health_start = (.*);/i)
var mobHPprint = parseInt(mobHP[1])
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
var playerhealth = (parseInt(document.querySelector("#attacker_health").outerHTML.match(/width: .*px/g).toString().replace("width: ","").replace("px",""))/245*100).toFixed(1);
var printplayerhealth = '';
if (playerhealth == "0.0")
printplayerhealth = "0.0%<br><font color=#ff0000 size=5 style='background-color:#202020;padding:0px;'><b>YOU LOSE</b></font>"
if (playerhealth != "0.0")
printplayerhealth = playerhealth+"% ("+Math.round(attackerHPprint*playerhealth/100).toLocaleString("en-US")+" HP)"
document.querySelector("#combat_log").innerHTML += "Player Health: "+printplayerhealth+"<br>"
});
});
var observer2 = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
var defenderhealth = (parseInt(document.querySelector("#defender_health").outerHTML.match(/width: .*px/g).toString().replace("width: ","").replace("px",""))/245*100).toFixed(1);
var printmobhealth = '';
if (defenderhealth == "0.0")
printmobhealth = "0.0%<br><font color=#00FF00 size=5 style='background-color:#202020;padding:0px;'><b>YOU WIN</b></font>"
if (defenderhealth != "0.0")
printmobhealth = defenderhealth+"% ("+Math.round(mobHPprint*defenderhealth/100).toLocaleString("en-US")+" HP)"
document.querySelector("#combat_log").innerHTML += "Mob Health: "+printmobhealth+"<br>";
});
});
var attacker_health = document.querySelector("#attacker_health");
observer.observe(attacker_health, { attributes : true, attributeFilter : ['style'] });
var defender_health = document.querySelector("#defender_health");
observer2.observe(defender_health, { attributes : true, attributeFilter : ['style'] });
GM_addStyle ( `
#content-header-row > center > table{display:none !important;}
#result_notice_window{display:none !important;}
#battle_result{background:none !important; margin-top:0px !important;width:400px !important;font-size: 12px !important;}
#content > div.footer-wrapper{display:none !important;}
body > center{background:#0B0B0B !important;}
#rightbar{display:none !important;}
#recentraid{display:none !important;}
body img[src*="goldcoin.gif"] {
display:none !important;}
#combat_log{min-height:100px !important;overflow:auto !important;max-height:350px !important;padding:10px !important;}
.ps__thumb-x,.ps__rail-x,.ps--active-x>.ps__rail-x, .ps--active-y>.ps__rail-y{
display: none !important;
}` );}
// redefined
if ( document.URL.indexOf("scratch_ticket") != -1 ) {
var theImage2;
theImage2 = document.querySelector("#content > div.layout-px-spacing")
theImage2.innerHTML = '<div id="contentframe" style="position:fixed; top: 100px; left: -65px;">' +
'<iframe src="https://www.redefined.ro/?Quests" style="border:0px #ffffff none;" name="redefined" scrolling="yes" frameborder="0" marginheight="0px" marginwidth="0px" height="800px" width="1600px" allowfullscreen></iframe>' +
'</div>'}
// sess id
var byptlink = document.querySelector("#accordionExample > a");
var sessid = byptlink.href.replace(/https:\/\/rampidgaming.outwar.com\/stripe_buy\?game=ow&outwar=0&wsrv=\$subDomain&lvl=\$user\[level]&rg_sess_id=/, ' ');
var bypplink = document.querySelector("#components > li:nth-child(12) > a")
// custom side menu
var theImage;
theImage = document.querySelector("#sidebar");
theImage.innerHTML = '<div class="sidebar-wrapper sidebar-theme">'+
'<nav id="sidebar">'+
'<div class="shadow-bottom"></div>'+
'<ul class="list-unstyled menu-categories ps" id="accordionExample">'+
'<li class="menu">'+
'<a href="#rga" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fa fa-address-card"></i>'+
'<span> RGA</span>'+
'</div>'+
'<div>'+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>'+
'</div>'+
'</a>'+
'<ul class="collapse submenu list-unstyled" id="rga" data-parent="#accordionExample">'+
'<input type="text" value='+sessid+' maxlength="18" size="18" id="sessidbox">'+
'<li><a href="/earnfreepoints"> <font color=#f441be>MOXXI VISION</font></a></li>'+
'<li><a href="/myaccount.php?ac_serverid=2"> TORAX CHARS</a></li>'+
'<li><a href="/myaccount.php?ac_serverid=1"> SIGIL CHARS</a></li>'+
'<li><a href="/accountinfo.php"> ACCOUNT</a></li>'+
'<li><A href="/editcharacters.php?page=3"> TRUSTEES</a></li>'+
'<li><a href="/support.php"> OW SUPPORT</a></li>'+
'<li><a href="?cmd=logout"> LOGOUT</a></li>'+
'</ul>'+
'</li>'+
'<li class="menu">'+
'<a href="/home" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fa fa-home"></i>'+
'<span> HOME</span>'+
'</div>'+
'</a>'+
'</li>'+
'<li class="menu">'+
'<a href="#server" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fas fa-server fa-fw"></i>'+
'<span> SERVER</span>'+
'</div>'+
'<div>'+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>'+
'</div>'+
'</a>'+
'<ul class="collapse submenu list-unstyled" id="server" data-parent="#accordionExample">'+
'<li><a href="/attack_search"> SEARCH</a></li>'+
'<li><a href="/newrankings"> RANKINGS</a></li>'+
'<li><a href="/gladiator"> GLADIATORS</a></li>'+
'<li><a href="/event?eventid=woz"> WAR OF ZHUL</a></li>'+
'<li><a href="/event?eventid=top"> TRIAL OF POWER</a></li>'+
'<li><a href="/kotw"> KOTW</a></li>'+
'<li><a href="/news"> NEWS</a></li>'+
'</ul>'+
'</li>'+
'<li class="menu">'+
'<a href="#components" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fas fa-user fa-fw"></i>'+
'<span> CHARACTER</span>'+
'</div>'+
'<div>'+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>'+
'</div>'+
'</a>'+
'<ul class="collapse submenu list-unstyled" id="components" data-parent="#accordionExample">'+
'<li><a href="/profile"> PROFILE</a></li>'+
'<li><a href="/ow_messagecenter"> MESSAGE CENTER</a></li>'+
'<li><a href="/cast_skills"> SKILLS</a></li>'+
'<li><a href="/allies"> MY ALLIES</a></li>'+
'<li><a href="/underlings"> UNDERLINGS</a></li>'+
'<li><a href="/user_preferences"> PREFERENCES</a></li>'+
'</ul>'+
'</li>'+
'<li class="menu">'+
'<a href="#elements" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fa fa-shopping-cart fa-fw"></i>'+
'<span> ECONOMY</span>'+
'</div>'+
'<div>'+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>'+
'</div>'+
'</a>'+
'<ul class="collapse submenu list-unstyled" id="elements" data-parent="#accordionExample">'+
'<li><a href="/treasury?type=-1"> BUY ITEMS</a></li>'+
'<li><a href="/mytreasury"> SELL ITEMS</a></li>'+
'<li><a href="/supplies"> SUPPLIES</a></li>'+
'<li><a href="/pointtransfer"> TRANSFER PNTS</a></li>'+
'<li><a href="' + bypplink.href +'">PREFERRED PLAYER</a></li>'+
'<li><a href="/metamask"> METAMASK NFT</a></li>'+
'</ul>'+
'</li>'+
'<li class="menu">'+
'<a href="#forms" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fas fa-shield fa-fw"></i>'+
'<span> CREW</span>'+
'</div>'+
'<div>'+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>'+
'</div>'+
'</a>'+
'<ul class="collapse submenu list-unstyled" id="forms" data-parent="#accordionExample">'+
'<li><a href="/crew_home"> CREW HOME</a></li>'+
'<li><a href="/crew_profile"> CREW PROFILE</a></li>'+
'<li><a href="/crew_bossspawns"> RAID BOSSES</a></li>'+
'<li><a href="/crew_vault"> CREW VAULT</a></li>'+
'<li><a href="/godstatus"> GOD STATUS</a></li>'+
'<li><a href="/crewinvites"> CREW INVITES</a></li>'+
'<li><a href="/crew_leavecrew"> LEAVE CREW</a></li>'+
'</ul>'+
'</li>'+
'<li class="menu">'+
'<a href="#pvp" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fas fa-shield-alt fa-fw"></i>'+
'<span> PVP</span>'+
'</div>'+
'<div>'+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>'+
'</div>'+
'</a>'+
'<ul class="collapse submenu list-unstyled" id="pvp" data-parent="#accordionExample">'+
'<li><a href="/attacklog"> ATTACK LOG</a></li>'+
'<li><a href="/pvptourney"> OPEN TOURNEY</a></li>'+
'<li><a href="/closedpvp"> PVP BRAWL</a></li>'+
'<li><a href="/bounty"> BOUNTY BOARD</a></li>'+
'<li><a href="/crew_hitlist"> HITLIST</a></li>'+
'</ul>'+
'</li>'+
'<li class="menu">'+
'<a href="#datatables" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fas fa-shopping-bag fa-fw"></i>'+
'<span> ITEMS</span>'+
'</div>'+
'<div>'+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>'+
'</div>'+
'</a>'+
'<ul class="collapse submenu list-unstyled" id="datatables" data-parent="#accordionExample">'+
'<li><a href="/vault"> VAULT</a></li>'+
'<li><a href="/blacksmith"> BLACKSMITH</a></li>'+
'<li><a href="/augmentequip"> ADD AUGMENTS</a></li>'+
'<li><a href="/itemtransfer"> ITEM TRANSFER</a></li>'+
'<li><a href="/dungeons"> DUNGEONS</a></li>'+
'<li><a href="/cauldron"> CAULDRON</a></li>'+
'<li><a href="/challenge"> CHALLENGE SETS</a></li>'+
'</ul>'+
'</li>'+
'<li class="menu">'+
'<a href="#resources" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fas fa-book fa-fw"></i>'+
'<span> QUESTS</span>'+
'</div>'+
'<div>'+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>'+
'</div>'+
'</a>'+
'<ul class="collapse submenu list-unstyled" id="resources" data-parent="#accordionExample">'+
'<li><a href="/scratch_ticket"> REDEFINED</a></li>'+
'<li><a href="/weeklyquests"> BOOSTERS</a></li>'+
'<li><a href="/questlog"> QUEST LOG</a></li>'+
'<li><a href="/collections"> COLLECTIONS</a></li>'+
'<li><a href="/challenge"> CHALLENGES</a></li>'+
'</ul>'+
'</li>'+
'<li class="menu">'+
'<a href="/world" class="dropdown-toggle">'+
'<div class="">'+
'<i class="fas fa-globe fa-fw"></i>'+
'<span> WORLD</span>'+
'</div>'+
'</a>'+
'</li>' +
'<p><br>' +
'<div class=search>' +
'<form method="post" action="playersearch.php" target="_parent">' +
'<div class="col-12 px-2">' +
'<input id="t-text" type="text" name="search" placeholder="player search" class="form-control" required="">' +
'</div>' +
'</form>' +
'</div>' +
'<div class="row mt-4">' +
'</div>'+
'<form method="post" action="crewsearch.php" target="_parent">' +
'<div class="col-12 px-2">' +
'<input id="t-text" type="text" name="search" placeholder="crew search" class="form-control" required="">' +
'</div>' +
'</form>' +
'<p><br><a href=/crew_apply>MoxxiMod v5.7</a>' +
'</div>' +
'<div class="row mt-4">' +
'</div></div>' +
'</p></div>'
var servername = window.location.hostname.split(".")[0];
setTimeout(function() {
$("span:contains('SERVER')").text(servername);
}, 10);
// currency toolbar
GM_xmlhttpRequest ( {
method: 'GET',
url: '/ajax/backpackcontents.php?tab=quest',
onload: function (responseDetails) {
const ammyID = /Amulet of Achievement" data-itemqty="([0-9]*)"/g;
const ammyRes = ammyID.exec(responseDetails.responseText);
const badgeID = /Badge Reputation" data-itemqty="([0-9]*)"/g;
const badgeRes = badgeID.exec(responseDetails.responseText);
fetch('ajax/challenge_status.php')
.then(response => response.text())
.then((response) => {
var claimed = response.match(/tokens":"(.*)","p_tokens"/i)
var freeTok = '';
if (claimed[1] < 30)
freeTok = claimed[1]
if (claimed[1] > 29)
freeTok = "<font color=#ff0000>"+claimed[1]+"</font>"
var ammyPrint = '';
if (ammyRes != null)
ammyPrint = ammyRes[1]
if (ammyRes == null)
ammyPrint = "0"
var badgePrint = '';
if (badgeRes != null)
badgePrint = badgeRes[1]
if (badgeRes == null)
badgePrint ="0"
var ammyCnt = ammyPrint
var ammy = ammyCnt;
var badgeCnt = badgePrint
var badge = '';
if (badgeCnt < 15)
badge = badgeCnt
if (badgeCnt > 14)
badge = '<font color=#00CC00>'+badgeCnt+'</font>'
var currency = '$';
if (badgeCnt < 15)
currency += "$"
if (badgeCnt > 14)
currency += '<font color=#00CC00>$</font>'
if (claimed[1] < 30)
currency += "$"
if (claimed[1] > 29)
currency += "<font color=#ff0000>$</font>"
var goldPrint = document.body.innerHTML.match(/<tr><td><b>Gold:<\/b><\/td><td>(.*)<\/td><\/tr>/i);
var pbPrint = document.body.innerHTML.match(/<tr><td><b>Points:<\/b><\/td><td><font size=2 color=#00FF00>(.*)<\/font><\/td><\/tr>/i);
var prPrint = document.body.innerHTML.match(/<tr><td><b>Premium:<\/b><\/td><td><font size=2 color=#00FF00>(.*)\.<\/font>/i);
var tkPrint = document.body.innerHTML.match(/<tr><td><b>Tokens:<\/b><\/td><td><font size=2 color=#00FF00>(.*)<\/font>/i);
var skPrint = document.body.innerHTML.match(/<tr><td><b>Skill:<\/b><\/td><td>(.*)<\/td><\/tr>/i);
const theImage = document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li:nth-child(4)");
theImage.innerHTML = `<div class="dropdown"><a href="`+byptlink.href+`" onmouseover="statspopup(event,'<table><tr><td><b>Points:</b></td><td>`+pbPrint[1]+`</td></tr><tr><td><b>Premium:</b></td><td>`+prPrint[1]+`</td></tr><tr><td><b>Free Tokens:</b></td><td>`+freeTok+`</td></tr><tr><td><b>Prem Tokens:</b></td><td>`+(tkPrint[1]-claimed[1])+`</td></tr><tr><td><b>Skill Points:</b></td><td>`+skPrint[1]+`</td></tr><tr><td><b>Badge Reps:</b></td><td>`+badge+`</td></tr><tr><td><b>Amulets:</b></td><td>`+ammy+`</td></tr><tr><td><b>Gold:</b></td><td>`+goldPrint[1]+`</td></tr></table><p><font color=#fcfcfc><center>click to buy points')" onmouseout="kill()"><button class="dropbtn"><font size=1>`+currency+`</button></a></div>`
}
)}} );
function insertAfter2(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
let menu = document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav");
let li = document.createElement('li');
li.textContent = '';
insertAfter2(li, menu.children[2]);
// moxximod page
if ( document.URL.indexOf("crew_apply") != -1 ) {
var theImage11;
theImage11 = document.querySelector("#content")
theImage11.innerHTML =
'<div id=moxxi_mod_page>' +
'<img src=https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/mm_logo.png width=50% padding=20px><p>' +
'<a href=https://discord.com/invite/f35cccbWU8?utm_source=Discord%20Widget&utm_medium=Connect target=_blank><img src=https://studiomoxxi.com/moxximod/discord.png width=30%></a><p>' +
'MoxxiMod is a userscript written to improve the gaming user interface and player experience<p>' +
'The code is a combination of CSS (cascading style sheets) and JS (javascript)<p>' +
'<b>MoxxiMod is 100% free</b><p>' +
'If you want to support, please send points to <font color=A30020>Moxxi</font><p>' +
'For help with setup or to report a bug, join our Discord server<p>' +
'<div id=moxxi_mod_tys>' +
'<p>BIG THANK YOU FOR THE TECHNICAL DEV SUPPORT<p>Beast666007, Bello, CarminT' +
'<p>AND THANK YOU TO THE BETA TESTERS<p>Rhino, Andreas, Brillo, Dkgoon<br>StarFox, Kevin, Kriminal, Shawn<br>Tyler, Xafloc, Jalek, Rodeo<br>StarPower, TeddyPain, TheStud'+
'</div>'
}
// toolbar skills
GM_xmlhttpRequest ( {
method: 'GET',
url: '/profile',
onload: function (responseDetails) {
const skill0 = /<img align="absmiddle" border="0" src="\/images\/skills\/skill_2952\.gif".*/i;
const lingloy = skill0.exec(responseDetails.responseText);
const skill1 = /<img align="absmiddle" border="0" src="\/images\/skills\/circumspect\.png".*/i;
const circ = skill1.exec(responseDetails.responseText);
const skill2 = /<img align="absmiddle" border="0" src="\/images\/skills\/markdown\.png".*/i;
const markdown = skill2.exec(responseDetails.responseText);
const skill3 = /<img align="absmiddle" border="0" src="\/images\/skills\/hitman\.png".*/i;
const hitman = skill3.exec(responseDetails.responseText);
const skill4 = /<img align="absmiddle" border="0" src="\/images\/skills\/haste\.png".*/i;
const haste = skill4.exec(responseDetails.responseText);
const skill5 = /<img align="absmiddle" border="0" src="\/images\/skills\/streetsmarts\.png".*/i;
const street = skill5.exec(responseDetails.responseText);
const skill6 = /<img align="absmiddle" border="0" src="\/images\/skills\/onguard\.png".*/i;
const onguard = skill6.exec(responseDetails.responseText);
const skill7 = /<img align="absmiddle" border="0" src="\/images\/skills\/\.\.\/items\/itemz80\.gif".*/i;
const questexp = skill7.exec(responseDetails.responseText);
const skill8 = /<img align="absmiddle" border="0" src="\/images\/skills\/killingspree\.png".*/i;
const spree = skill8.exec(responseDetails.responseText);
const skill9 = /<img align="absmiddle" border="0" src="\/images\/skills\/masterferoskill\.png".*/i;
const masterF = skill9.exec(responseDetails.responseText);
const skil20 = /<img align="absmiddle" border="0" src="\/images\/skills\/masterpresskill\.png".*/i;
const masterP = skil20.exec(responseDetails.responseText);
const skil21 = /<img align="absmiddle" border="0" src="\/images\/skills\/masteraffskill\.png".*/i;
const masterA = skil21.exec(responseDetails.responseText);
const skil22 = /<img align="absmiddle" border="0" src="\/images\/skills\/\.\.\/items\/itemz82\.jpg".*/i;
const chaosMaj = skil22.exec(responseDetails.responseText);
const skil23 = /<img align="absmiddle" border="0" src="\/images\/skills\/\.\.\/items\/itemz91\.jpg".*/i;
const chaosMin = skil23.exec(responseDetails.responseText);
const skil24 = /<img align="absmiddle" border="0" src="\/images\/items\/itemz28\.jpg".*/i;
const endFlask = skil24.exec(responseDetails.responseText);
const skil25 = /<img align="absmiddle" border="0" src="\/images\/skills\/blessingfromabove\.png".*/i;
const bfa = skil25.exec(responseDetails.responseText);
var skills = '';
if (lingloy != null)
skills += lingloy+'<br>';
if (circ != null)
skills += circ+'<br>';
if (markdown != null)
skills += markdown+'<br>';
if (hitman != null)
skills += hitman+'<br>';
if (haste != null)
skills += haste+'<br>';
if (street != null)
skills += street+'<br>';
if (onguard != null)
skills += onguard+'<br>';
if (questexp != null)
skills += questexp+'<br>';
if (spree != null)
skills += spree+'<br>';
if (masterF != null)
skills += masterF+'<br>';
if (masterP != null)
skills += masterP+'<br>';
if (masterA != null)
skills += masterA+'<br>';
if (chaosMin != null)
skills += chaosMin+'<br>';
if (chaosMaj != null)
skills += chaosMaj+'<br>';
if (bfa != null)
skills += bfa+'<br>';
if (endFlask != null)
skills += endFlask+'<br>';
if (skills == "")
skills += "void"
// skills tooltab
if (skills != "void"){
$("body").append ( `
<div id="rightbar">
<center>
<a href=cast_skills>SKILLS</a><p>
`+skills+`
</div>
` );}
// recent raid tooltab
if (document.location.href.indexOf('characters') === -1){
fetch('/profile')
.then(response => response.text())
.then((response) => {var myCrewID = response.match(/<a href="\/crew_profile\?id=.*">/).toString().replace(/<a href="\/crew_profile\?id=/,"").replace(/">/,"")
var raidLink ='/crew_raidresults.php?all_results=Display+all+raid+results&crewid='+myCrewID
fetch(raidLink)
.then(response => response.text())
.then((response) => {
var myLastRaid = '';
if (response.match(/<a href="raidattack\.php\?raidid=.*">View<\/a>/) != null)
myLastRaid = response.match(/<a href="raidattack\.php\?raidid=.*">View<\/a>/).toString().replace(/<a href="/,"/").replace(/">View<\/a>/,"")
if (response.match(/<a href="raidattack\.php\?raidid=.*">View<\/a>/) == null)
myLastRaid = "void"
if (myLastRaid != "void"){
fetch(myLastRaid)
.then(response => response.text())
.then((response) => {
var raidMob = response.match(/<h4 class="text-center d-flex align-items-center justify-content-center">(.*)<\/h4>.*[\n\r].*[\n\r].*<div class="defenderimage skinborder d-flex justify-content-center align-items-center mb-3">.*[\n\r](.*)/i)
var crewName = response.match(/.*<b>(.*) has (.*)!<\/b>/i)
var raidLootx = response.match(/onmouseover="popup\(event,'<b>(.*)<\/b>/i)
var raidLoot = '';
if (response.match(/onmouseover="popup\(event,'<b>(.*)<\/b>/i) != null)
raidLoot = response.match(/onmouseover="popup\(event,'<b>(.*)<\/b>/i)
if (response.match(/onmouseover="popup\(event,'<b>(.*)<\/b>/i) == null)
raidLoot = "void"
var raidLoot2 = '';
if (raidLoot != "void")
raidLoot2 = raidLoot[1].toString().replace(/<\/b>'\)" onmouseout="kill\(\)">.*/i,"").replaceAll(/<br>/g,", ")
if (raidLoot == "void")
raidLoot2 = "Nothing"
var raidResult = '';
if (crewName[2] == "lost")
raidResult = "<font color=#FF0000>lost</font> to"
if (crewName[2] == "won")
raidResult = "<font color=#00FF00>defeated</font>"
$("body").append ( `
<div id="recentraid">
<center>
<a href=`+raidLink+`>RAIDS</a><p>
<a href=`+myLastRaid+` onmouseover="popup(event,'<b>`+crewName[1]+`</b> `+raidResult+` `+raidMob[1]+`<br><b>Found:</b> `+raidLoot2+`<br><font color=#FFFF00>(click to view the raid)</a>')" onmouseout="kill()">`+raidMob[2]+`
</div>
` );
})}})})}}})
// extra
if (document.URL.indexOf("726169") != -1 ) {
GM_addStyle ( `
#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(2) > div > div > div:nth-child(2) > img{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/disa_head.png") !important;}` );
};
if (document.URL.indexOf("707553") != -1 ) {
GM_addStyle ( `
#divProfile > div:nth-child(2) > div > div > div.col-xl-8.col-md-7 > div > div:nth-child(1) > div > img{content: url("https://media.discordapp.net/attachments/479930026767155200/1001894796316651561/20220727_125134.gif") !important;height:500px !important;}` );
};
if (document.URL.indexOf("crew_profile?id=13775") != -1 ) {
GM_addStyle ( `
#content-header-row > div > div.widget-content.widget-content-area.br-6{background-image: url('https://images.freeimages.com/images/large-previews/084/open-mouth-1439955.jpg') !important;}
`)}
// server switch link
var server = window.location.href;
var server2 = server.replace(/\.outwar\.com.*/, '');
var server3 = server2.replace(/http.*:\/\//, '');
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/myaccount.php?ac_serverid=2',
onload: function (responseDetails) {
const toraxGet = /https:\/\/torax\.outwar\.com\/world\?suid=[0-9]+&serverid=2/i;
const toraxGetPrint = toraxGet.exec(responseDetails.responseText);
var trade1 = /<a href="trade.*<img border="0" height="13" src="http:\/\/torax\.outwar\.com\/images\/toolbar\/Trade\.png" alt="Trade"><\/a>/i;
var trade2 = trade1.exec(responseDetails.responseText);
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/myaccount.php?ac_serverid=1',
onload: function (responseDetails) {
const sigilGet = /https:\/\/sigil\.outwar\.com\/world\?suid=[0-9]+&serverid=1/i;
const sigilGetPrint = sigilGet.exec(responseDetails.responseText);
var trade3 = /<a href="trade.*<img border="0" height="13" src="http:\/\/torax\.outwar\.com\/images\/toolbar\/Trade\.png" alt="Trade"><\/a>/i;
var trade4 = trade1.exec(responseDetails.responseText);
var torax = "torax";
var sigil = "sigil";
var servSwitch = '';
if (server3 != torax)
servSwitch += toraxGetPrint+"#";
if (server3 != sigil)
servSwitch += sigilGetPrint+"#";
let serverGo1 = servSwitch.replace("null", "");
let serverGo2 = serverGo1.replace("world", "home");
var otherServ = '';
if (server3 != torax)
otherServ = torax;
if (server3 != sigil)
otherServ = sigil;
// toolbar supplies notification
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://outwar.com/supplies',
onload: function (responseDetails) {
const supplies = /<img border="0" src="images\/suppliestriangle\.gif" width="11" height="11">[\n\r](.*)%<\/td>/i;
const suppliesPrint = supplies.exec(responseDetails.responseText);
let result;
if (suppliesPrint[1] < 100) {
result = 'positive';
} else {
result = null;
}
var suppliesPOP = '';
if (result != null)
suppliesPOP += `<a href=/supplies><img src=https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/suppliespop.png width=25px height=25px onmouseover="popup(event,'<b><font color=#FFFFFF>SUPPLIES: `+suppliesPrint[1]+`%<br></b><font color=#fcfcfc>(click to buy more)')" onmouseout="kill()"></a>`;
// toolbar strength notification
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://outwar.com/profile',
onload: function (responseDetails) {
const strength = /event,'Strength: ([0-9]+)'/i;
const strengthPrint = strength.exec(responseDetails.responseText);
let resultStr;
if (strengthPrint[1] < 100) {
resultStr = 'positive';
} else {
resultStr = null;
}
var strengthtb = '';
if (resultStr != null)
strengthtb += `<img src=https://torax.outwar.com/images/items/pot6.jpg width=25px height=25px onmouseover="popup(event,'<b><font color=#FFFFFF>STRENGTH: `+strengthPrint[1]+`%<br></b>')" onmouseout="kill()">`;
// toolbar gladiator notification
fetch('/gladiator')
.then(response => response.text())
.then((response) => {
var zerxCheck = response.match(/<a href="gladiator\?mobid=3991">View Leaderboard<\/a>.*Will retreat in/i)
var vorkCheck = response.match(/<a href="gladiator\?mobid=4391">View Leaderboard<\/a>.*Will retreat in/i)
var tevaCheck = response.match(/<a href="gladiator\?mobid=4029">View Leaderboard<\/a>.*Will retreat in/i)
var vork = '';
if (vorkCheck != null)
vork += `<a href=/gladiator?mobid=4391><img src=https://outwar.com/images/mobs/velgladiator.jpg width=25px height=25px onmouseover="popup(event,'<b>Vork is Available</b><br><font color=#fcfcfc>(click to view)')" onmouseout="kill()"></a>`;
var zerx = '';
if (zerxCheck != null)
zerx += `<a href=/gladiator?mobid=3991><img src=https://outwar.com/images/mobs/mobc34.jpg width=25px height=25px onmouseover="popup(event,'<b> Zerx is Available</b><br><font color=#fcfcfc>(click to view)')" onmouseout="kill()"></a>`;
var teva = '';
if (tevaCheck != null)
teva += `<a href=/gladiator?mobid=4029><img src=https://torax.outwar.com/images/mobs/topgladiator.jpg width=25px height=25px onmouseover="popup(event,'<b> Teva is Available</b><br><font color=#fcfcfc>(click to view)')" onmouseout="kill()"></a>`;
// toolbar brawl notification
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://outwar.com/closedpvp',
onload: function (responseDetails) {
const brawlCheck = /images\/atk_player_icon\.jpg/i;
const brawlPrint = brawlCheck.exec(responseDetails.responseText);
var brawl = '';
if (brawlPrint != null)
brawl += `<a href=/closedpvp><img src=https://images.emojiterra.com/google/android-pie/512px/1f94a.png width=25px height=25px onmouseover="popup(event,'<b>PVP Brawl is Active</b><br><font color=#fcfcfc>(Click to view)')" onmouseout="kill()"></a>`;
// toolbar boss notification
fetch('/crew_bossspawns')
.then(response => response.text())
.then((response) => {
const cosmos = response.match(/images\/CosmosGreatAllBeing\.jpg/i);
const death = response.match(/images\/DeathReaperOfSouls\.jpg/i);
const maekrix = response.match(/images\/MaekrixDreadedStriker\.jpg/i);
const blackhand = response.match(/images\/BlackhandReborn\.png/i);
const zyrak = response.match(/images\/velserverboss\.jpg/i);
const arkon = response.match(/images\/Arkron\.jpg/i);
const cosmosh = response.match(/Cosmos, Great All Being.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i);
const deathh = response.match(/Death, Reaper of Souls.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i);
const maekrixh = response.match(/Maekrix, Dreaded Striker.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i);
const blackhandh = response.match(/Blackhand Reborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i);
const zyrakh = response.match(/Zyrak, Vision of Madness.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i);
const arkonh = response.match(/Arkron, God of Trials.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i);
const cosmoss = response.match(/Cosmos, Great All Being.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i);
const deaths = response.match(/Death, Reaper of Souls.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i);
const maekrixs = response.match(/Maekrix, Dreaded Striker.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i);
const blackhands = response.match(/Blackhand Reborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i);
const zyraks = response.match(/Zyrak, Vision of Madness.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i);
const arkons = response.match(/Arkron, God of Trials.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i);
var boss = '';
if (cosmos != null)
boss += cosmoss[1]+`<img src="http://www.outwar.com/`+cosmos+`" width="25px" height="25px" onmouseover="popup(event,'<b>Cosmos, Great All Being</b><br>Health: `+cosmosh[1]+`<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`;
if (death != null)
boss += deaths[1]+`<img src="http://www.outwar.com/`+death+`" width="25px" height="25px" onmouseover="popup(event,'<b>Death, Reaper of Souls</b><br>Health: `+deathh[1]+`<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`;
if (maekrix != null)
boss += maekrixs[1]+`<img src="http://www.outwar.com/`+maekrix+`" width="25px" height="25px" onmouseover="popup(event,'<b>Maekrix, Dreaded Striker</b><br>Health: `+maekrixh[1]+`<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`;
if (blackhand != null)
boss += blackhands[1]+`<img src="http://www.outwar.com/`+blackhand+`" width="25px" height="25px" onmouseover="popup(event,'<b>Blackhand Reborn</b><br>Health: `+blackhandh[1]+`<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`;
if (zyrak != null)
boss += zyraks[1]+`<img src="http://www.outwar.com/`+zyrak+`" width="25px" height="25px" onmouseover="popup(event,'<b>Zyrak, Vision of Madness</b><br>Health: `+zyrakh[1]+`<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`;
if (arkon != null)
boss += arkons[1]+`<img src="http://www.outwar.com/`+arkon+`" width="25px" height="25px" onmouseover="popup(event,'<b>Arkron, God of Trials</b><br>Health: `+arkonh[1]+`<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`;
// toolbar god notification
fetch('/raidtools')
.then(response => response.text())
.then((response) => {
const god1imgPRINT = response.match(/onclick="sendTeleportRequest.*(images.*)" border.*/i);
const god1txtPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*Teleport to (.*)<\/font>/i);
const god2imgPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*(images.*)" border.*/i);
const god2txtPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i);
const god3imgPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i);
const god3txtPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i);
const god4imgPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i);
const god4txtPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i);
const god5imgPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i);
const god5txtPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i);
const god6imgPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i);
const god6txtPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i);
const god7imgPRINT = response.match(/onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i);
const god7txtPRINT = response.match(/onclick="sendTeleportRequest.*[\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].*Teleport to (.*)<\/font>/i);
var gods = '';
if (god1imgPRINT != null)
gods += `<img src="http://www.outwar.com/`+god1imgPRINT[1]+`" width="25px" height="25px" onmouseover="popup(event,'<b>`+god1txtPRINT[1]+` has spawned!</b>')" onmouseout="kill()">`;
if (god2imgPRINT != null)
gods += `<img src="http://www.outwar.com/`+god2imgPRINT[1]+`" width="25px" height="25px" onmouseover="popup(event,'<b>`+god2txtPRINT[1]+` has spawned!</b>')" onmouseout="kill()">`;
if (god3imgPRINT != null)
gods += `<img src="http://www.outwar.com/`+god3imgPRINT[1]+`" width="25px" height="25px" onmouseover="popup(event,'<b>`+god3txtPRINT[1]+` has spawned!</b>')" onmouseout="kill()">`;
if (god4imgPRINT != null)
gods += `<img src="http://www.outwar.com/`+god4imgPRINT[1]+`" width="25px" height="25px" onmouseover="popup(event,'<b>`+god4txtPRINT[1]+` has spawned!</b>')" onmouseout="kill()">`;
if (god5imgPRINT != null)
gods += `<img src="http://www.outwar.com/`+god5imgPRINT[1]+`" width="25px" height="25px" onmouseover="popup(event,'<b>`+god5txtPRINT[1]+` has spawned!</b>')" onmouseout="kill()">`;
if (god6imgPRINT != null)
gods += `<img src="http://www.outwar.com/`+god6imgPRINT[1]+`" width="25px" height="25px" onmouseover="popup(event,'<b>`+god6txtPRINT[1]+` has spawned!</b>')" onmouseout="kill()">`;
if (god7imgPRINT != null)
gods += `<img src="http://www.outwar.com/`+god7imgPRINT[1]+`" width="25px" height="25px" onmouseover="popup(event,'<b>`+god7txtPRINT[1]+` has spawned!</b>')" onmouseout="kill()">`;
// trade notification
var trade5 = '';
if (trade2 != null)
trade5 = trade2.toString().replace(`a href="`,`a onmouseover="popup\(event,'Active trade on your RGA'\);" onmouseout="kill\(\);" href="`)
if (trade4 != null)
trade5 = trade4.toString().replace(`a href="`,`a onmouseover="popup\(event,'Active trade on your RGA'\);" onmouseout="kill\(\);" href="`)
// toolbar veiled mob notifcation
fetch("ajax_changeroomb")
.then(response => response.text())
.then((response) => {
var vmob = response.match(/"name":"Veiled Guard","level":"85"/i)
var vspawn = '';
if (vmob != null)
vspawn += `<img src="https://torax.outwar.com/images/mobs/veiledguard.png" width="25px" height="25px" onmouseover="popup(event,'<b>Veiled Guard is available!</b>')" onmouseout="kill()"></a>`
// all toolbar
document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li.nav-item.more-dropdown.little-space.hide-on-mob.progress-top").innerHTML =
'<table><tr>'+
'<td><div id=toolbar1>toolbar1</div></td>'+
'<td><div id=toolbar2>toolbar2</div></td>'+
'</tr></table>'
document.querySelector("#toolbar1").innerHTML =
'<table><tr><td>' +
`<div class="dropdown"><a href=`+serverGo2+` onmouseover="popup(event,'switch to `+otherServ+`')" onmouseout="kill()"><button class="dropbtn"><font size=1>SERVER</button></a></div>` +
'</td><td>'+
'</td><td>'+
'<div class="dropdown">' +
'<button class="dropbtn"><font size=1>FAST TRAVEL</button></a>' +
'<div class="dropdown-content">' +
'<a href="/world.php?room=26137">ASTRAL RIFT</a>' +
'<a href="/world.php?room=25989">CHALLENGES</a>' +
'<a href="/world.php?room=24284">DEATHBAT GRAVEYARD</a>' +
'<a href="/world.php?room=4249">EOB SANDS</a>' +
'<a href="/world.php?room=42550">MADNESS VAULT</a>' +
'<a href="/world.php?room=23311">MOUNTAIN CAVE</a>' +
'<a href="/world.php?room=23471">PRISTINE DEPTHS</a>' +
'<a href="/world.php?room=11">ROOM 11</a>' +
'<a href="/world.php?room=6640">SCIENTIFIC DISTRICT</a>' +
'<a href="/world.php?room=17321">UNDERGROUND Q SEC BASE</a>' +
'<a href="/world.php?room=10697">VALLEY OF DEATH</a>' +
'<a href="/world.php?room=25994">WARDENS SANCTUARY</a>' +
'<a href="/wilderness">WILDERNESS</a>' +
'</div>' +
'</div>' +
'</td></tr></table>'
document.querySelector("#toolbar2").innerHTML =
'<div id=toolbaralerts>'+
gods+boss+zerx+vork+teva+suppliesPOP+strengthtb+brawl+trade5+vspawn
'</div>'
})})})}})})}})}});
// homepage rankings
if ( document.URL.indexOf("outwar.com/home") != -1 ) {
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(2) > div > div:nth-child(1)");
existingNode.parentNode.insertBefore(newNode, sp2);
}
fetch('/crew_profile')
.then(response => response.text())
.then((response) => {var crewName = response.match(/<h4><img src="\/img\/CrewPoints\.png" onmouseover="popup\(event,'.*Crew Points'\);" onmouseout="kill\(\);"> .*<\/h4>/).toString().replace(/<h4><img src="\/img\/CrewPoints\.png" onmouseover="popup\(event,'.* Crew Points'\);" onmouseout="kill\(\);"> /,"").replace(/<\/h4>/,"")
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(2) > div")
var homepageEQ =
'<div id="char_rankings"><table><tr>' +
'<td>CHAR: POWER<div id="rankings_home"></div></td>' +
'<td>CHAR: ELE DMG<div id="rankings_charele"></div></td>' +
'<td>CHAR: CHAOS DMG<div id="rankings_charchaos"></div></td>'+
'</tr></table></div>' +
'<p><div id="crew_rankings"><table><tr>' +
'<td>CREW: POWER<div id="rankings_crewpow"></div></td>' +
'<td>CREW: ELE DMG<div id="rankings_crewele"></div></td>' +
'<td>CREW: CHAOS DMG<div id="rankings_crewchaos"></div></td>' +
'</tr></table></div>'
var myName = document.querySelector("#select2-charselectdropdown-container").innerHTML
let div = document.createElement('div');
div.innerHTML += homepageEQ;
insertBefore(div, menu.children[0]);
if ( document.URL.indexOf("outwar.com/home") != -1 ) {
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/ajax/rankings?type=crew_power',
onload: function (responseDetails) {
const EQ = /\{.*/i;
const EQprint = EQ.exec(responseDetails.responseText);
var isLoading = false;
function selectCategory(category, title, isCrew) {
if(isLoading)
return;
$('#rank-title').html(title);
$('#ranks').hide();
$('#ranks').html('');
$('#last-updated').html('');
isLoading = true;
$.getJSON('/ajax/rankings.php?type=' + category, function(data) {
var isOdd = true;
$.each(data.results, function(key, value) {
if(isCrew) {
var profileUrl = 'crew_profile?id=' + value.id;
}
else {
var profileUrl = 'characters/' + value.id;
}
var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even';
var stat = '0';
if(value.stat ) {
stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
}
var html = '<li class="list-group-item list-group-item-action ranksulli">'
+ '<div class="media">'
+ '<div class="mr-3">'
+ '<div class="rank-row top">'
+ '<table><tr><td width=40px class=homerankings><div class="rank-row-number"><span>' + value.rank + '</span></div></td><td width=215px>'
+ '<div class="rank-row-image">'
+ '<a href="' + profileUrl + '">'
+ '</a>'
+ '</div></div></div>'
+ '<div class="media-body">'
+ '<a href="' + profileUrl + '">' + value.name + '</a></td><td>'+ stat +'</h5></td></tr></table>'
+ '</div>'
+ '</li>'
var rankSearch1 = document.querySelector("#rankings_home")
rankSearch1.innerHTML = rankSearch1.innerHTML.replace(myName,"<div id=myRank>"+myName+"</div>")
$('#rankings_home').append(html);
isOdd = !isOdd;
});
isLoading = false;
$('#last-updated').html('<br>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);
});
});
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/ajax/rankings?type=char_elepower',
onload: function (responseDetails) {
const EQ = /\{.*/i;
const EQprint = EQ.exec(responseDetails.responseText);
var isLoading = false;
function selectCategory(category, title, isCrew) {
if(isLoading)
return;
$('#rank-title').html(title);
$('#ranks').hide();
$('#ranks').html('');
$('#last-updated').html('');
isLoading = true;
$.getJSON('/ajax/rankings.php?type=char_elepower', function(data) {
var isOdd = true;
$.each(data.results, function(key, value) {
if(isCrew) {
var imgurl = data.baseimageurl + "/" + value.pic;
var profileUrl = 'crew_profile?id=' + value.id;
}
else {
var imgurl = data.baseimageurl + "/uploaded/" + value.pic;
var profileUrl = 'characters/' + value.id;
}
if(value.pic == '' || value.pic == null)
imgurl = '/images/gangster1.jpg';
var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even';
var stat = '0';
if(value.stat ) {
stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
}
var html = '<li class="list-group-item list-group-item-action ranksulli">'
+ '<div class="media">'
+ '<div class="mr-3">'
+ '<div class="rank-row top">'
+ '<table><tr><td width=40px class=homerankings><div class="rank-row-number"><span>' + value.rank + '</span></div></td><td width=215px>'
+ '<div class="rank-row-image">'
+ '<a href="' + profileUrl + '">'
+ '</a>'
+ '</div></div></div>'
+ '<div class="media-body">'
+ '<a href="' + profileUrl + '">' + value.name + '</a></td><td>'+ stat +'</h5></td></tr></table>'
+ '</div>'
+ '</li>'
var rankSearch1 = document.querySelector("#rankings_charele")
rankSearch1.innerHTML = rankSearch1.innerHTML.replace(myName,"<div id=myRank>"+myName+"</div>")
$('#rankings_charele').append(html);
isOdd = !isOdd;
});
isLoading = false;
$('#last-updated').html('<br>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);
});
});
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/ajax/rankings?type=crew_power',
onload: function (responseDetails) {
const EQ = /\{.*/i;
const EQprint = EQ.exec(responseDetails.responseText);
var isLoading = false;
function selectCategory(category, title, isCrew) {
if(isLoading)
return;
$('#rank-title').html(title);
$('#ranks').hide();
$('#ranks').html('');
$('#last-updated').html('');
isLoading = true;
$.getJSON('/ajax/rankings.php?type=crew_power', function(data) {
var isOdd = true;
$.each(data.results, function(key, value) {
if(isCrew) {
var imgurl = data.baseimageurl + "/" + value.pic;
var profileUrl = 'crew_profile?id=' + value.id;
}
else {
var imgurl = data.baseimageurl + "/uploaded/" + value.pic;
var profileUrl = 'crew_profile?id=' + value.id;
}
if(value.pic == '' || value.pic == null)
imgurl = '/images/gangster1.jpg';
var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even';
var stat = '0';
if(value.stat ) {
stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
}
var html = '<li class="list-group-item list-group-item-action ranksulli">'
+ '<div class="media">'
+ '<div class="mr-3">'
+ '<div class="rank-row top">'
+ '<table><tr><td width=40px class=homerankings><div class="rank-row-number"><span>' + value.rank + '</span></div></td><td width=215px>'
+ '<div class="rank-row-image">'
+ '<a href="' + profileUrl + '">'
+ '</a>'
+ '</div></div></div>'
+ '<div class="media-body">'
+ '<a href="' + profileUrl + '">' + value.name + '</a></td><td>'+ stat +'</h5></td></tr></table>'
+ '</div>'
+ '</li>'
var rankSearch1 = document.querySelector("#rankings_crewpow")
rankSearch1.innerHTML = rankSearch1.innerHTML.replace(crewName,"<div id=myRank>"+crewName+"</div>")
$('#rankings_crewpow').append(html);
isOdd = !isOdd;
});
isLoading = false;
$('#last-updated').html('<br>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);
});
});
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/ajax/rankings?type=crew_elepower',
onload: function (responseDetails) {
const EQ = /\{.*/i;
const EQprint = EQ.exec(responseDetails.responseText);
var isLoading = false;
function selectCategory(category, title, isCrew) {
if(isLoading)
return;
$('#rank-title').html(title);
$('#ranks').hide();
$('#ranks').html('');
$('#last-updated').html('');
isLoading = true;
$.getJSON('/ajax/rankings.php?type=crew_elepower', function(data) {
var isOdd = true;
$.each(data.results, function(key, value) {
if(isCrew) {
var imgurl = data.baseimageurl + "/" + value.pic;
var profileUrl = 'crew_profile?id=' + value.id;
}
else {
var imgurl = data.baseimageurl + "/uploaded/" + value.pic;
var profileUrl = 'crew_profile?id=' + value.id;
}
if(value.pic == '' || value.pic == null)
imgurl = '/images/gangster1.jpg';
var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even';
var stat = '0';
if(value.stat ) {
stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
}
var html = '<li class="list-group-item list-group-item-action ranksulli">'
+ '<div class="media">'
+ '<div class="mr-3">'
+ '<div class="rank-row top">'
+ '<table><tr><td width=40px class=homerankings><div class="rank-row-number"><span>' + value.rank + '</span></div></td><td width=215px>'
+ '<div class="rank-row-image">'
+ '<a href="' + profileUrl + '">'
+ '</a>'
+ '</div></div></div>'
+ '<div class="media-body">'
+ '<a href="' + profileUrl + '">' + value.name + '</a></td><td>'+ stat +'</h5></td></tr></table>'
+ '</div>'
+ '</li>'
var rankSearch1 = document.querySelector("#rankings_crewele")
rankSearch1.innerHTML = rankSearch1.innerHTML.replace(crewName,"<div id=myRank>"+crewName+"</div>")
$('#rankings_crewele').append(html);
isOdd = !isOdd;
});
isLoading = false;
$('#last-updated').html('<br>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);
});
});
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/ajax/rankings?type=char_chaos',
onload: function (responseDetails) {
const EQ = /\{.*/i;
const EQprint = EQ.exec(responseDetails.responseText);
var isLoading = false;
function selectCategory(category, title, isCrew) {
if(isLoading)
return;
$('#rank-title').html(title);
$('#ranks').hide();
$('#ranks').html('');
$('#last-updated').html('');
isLoading = true;
$.getJSON('/ajax/rankings.php?type=char_chaos', function(data) {
var isOdd = true;
$.each(data.results, function(key, value) {
if(isCrew) {
var imgurl = data.baseimageurl + "/" + value.pic;
var profileUrl = 'crew_profile?id=' + value.id;
}
else {
var imgurl = data.baseimageurl + "/uploaded/" + value.pic;
var profileUrl = 'characters/' + value.id;
}
if(value.pic == '' || value.pic == null)
imgurl = '/images/gangster1.jpg';
var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even';
var stat = '0';
if(value.stat ) {
stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
}
var html = '<li class="list-group-item list-group-item-action ranksulli">'
+ '<div class="media">'
+ '<div class="mr-3">'
+ '<div class="rank-row top">'
+ '<table><tr><td width=40px class=homerankings><div class="rank-row-number"><span>' + value.rank + '</span></div></td><td width=215px>'
+ '<div class="rank-row-image">'
+ '<a href="' + profileUrl + '">'
+ '</a>'
+ '</div></div></div>'
+ '<div class="media-body">'
+ '<a href="' + profileUrl + '">' + value.name + '</a></td><td>'+ stat +'</h5></td></tr></table>'
+ '</div>'
+ '</li>'
var rankSearch1 = document.querySelector("#rankings_charchaos")
rankSearch1.innerHTML = rankSearch1.innerHTML.replace(myName,"<div id=myRank>"+myName+"</div>")
$('#rankings_charchaos').append(html);
isOdd = !isOdd;
});
isLoading = false;
$('#last-updated').html('<br>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);
});
});
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/ajax/rankings?type=crew_chaos',
onload: function (responseDetails) {
const EQ = /\{.*/i;
const EQprint = EQ.exec(responseDetails.responseText);
var isLoading = false;
function selectCategory(category, title, isCrew) {
if(isLoading)
return;
$('#rank-title').html(title);
$('#ranks').hide();
$('#ranks').html('');
$('#last-updated').html('');
isLoading = true;
$.getJSON('/ajax/rankings.php?type=crew_chaos', function(data) {
var isOdd = true;
$.each(data.results, function(key, value) {
if(isCrew) {
var imgurl = data.baseimageurl + "/" + value.pic;
var profileUrl = 'crew_profile?id=' + value.id;
}
else {
var imgurl = data.baseimageurl + "/uploaded/" + value.pic;
var profileUrl = 'crew_profile?id=' + value.id;
}
if(value.pic == '' || value.pic == null)
imgurl = '/images/gangster1.jpg';
var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even';
var stat = '0';
if(value.stat ) {
stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
}
var html = '<li class="list-group-item list-group-item-action ranksulli">'
+ '<div class="media">'
+ '<div class="mr-3">'
+ '<div class="rank-row top">'
+ '<table><tr><td width=40px class=homerankings><div class="rank-row-number"><span>' + value.rank + '</span></div></td><td width=215px>'
+ '<div class="rank-row-image">'
+ '<a href="' + profileUrl + '">'
+ '</a>'
+ '</div></div></div>'
+ '<div class="media-body">'
+ '<a href="' + profileUrl + '">' + value.name + '</a></td><td>'+ stat +'</h5></td></tr></table>'
+ '</div>'
+ '</li>'
var rankSearch1 = document.querySelector("#rankings_crewchaos")
rankSearch1.innerHTML = rankSearch1.innerHTML.replace(crewName,"<div id=myRank>"+crewName+"</div>")
$('#rankings_crewchaos').append(html);
isOdd = !isOdd;
});
isLoading = false;
$('#last-updated').html('<br>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 = /<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">[\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 =
'<div ID=EQhome style="position:relative; width:300px; height:385px; background-image:url(https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/thedude_dark.png)">' +
EQprint +
'</div>'
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 = /<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">[\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 =
'<div id=EQworld style="position:relative; width:300px; height:385px; background-image:url(https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/thedude_dark.png)">' +
EQprint +
'</div>'
}})};
if ( document.URL.indexOf("treasury") != -1 ) {
GM_xmlhttpRequest ( {
method: 'GET',
url: 'https://torax.outwar.com/profile',
onload: function (responseDetails) {
const EQ = /<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">[\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 EQtreas = document.querySelector("#content-header-row > div.col-8.col-lg-3.pl-3.pl-xl-0.pr-1 > div > div.widget-heading");
EQtreas.innerHTML =
'<div id=EQtreas style="position:relative; width:300px; height:385px; background-image:url(https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/thedude_dark.png)">' +
EQprint +
'</div>'
}})}
// crew raid menus
var crewID1 = '';
if (document.documentElement.innerHTML.match(/href="\/crew_raidresults\.php\?crewid=(.*)">Raid Results<\/a>/i) != null)
crewID1 = document.documentElement.innerHTML.match(/href="\/crew_raidresults\.php\?crewid=(.*)">Raid Results<\/a>/i);
var crewID2 = document.documentElement.innerHTML.match(/tradeWith=(.*)"><svg/i);
if ( document.URL.indexOf("crew_profile") != -1 ) {
$('a[href="crew_raidresults.php?crewid='+crewID2[1]+'&most_recent=1"]').prop('href', 'https://torax.outwar.com/crew_raidresults.php?most_recent=MoxxiMod+raid+results&crewid='+crewID2[1]);
$('a[href="crew_raidresults.php?crewid='+crewID2[1]+'&most_recent=1"]').text("Bed 2");}
var crewmenu =
'<div class="btn-group" role="group">' +
'<button id="btnGroupDefault" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' +
'Moxxi Mod Raids <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>' +
'</button>' +
'<div class="dropdown-menu" aria-labelledby="btnGroupDefault" style="will-change: transform;">' +
'<a class="dropdown-item" href="/crew_raidresults.php?most_recent=MoxxiMod+raid+results&crewid='+crewID1[1]+'">Moxxi Mod Raid Results</a>' +
'<a class="dropdown-item" href="/crew_raidresults.php?all_results=Display+all+raid+results&crewid='+crewID1[1]+'">All Raid Results</a>' +
'<a class="dropdown-item" href="/crew_raidresults.php?wins=Display+only+victorious+raids&crewid='+crewID1[1]+'">Only Victorious Raids</a>' +
'</div>' +
'</div>'
if ( document.URL.indexOf("crew_") != -1 ) {
function insertAfter9(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);
}
var rrHead = document.querySelector("#content-header-row > div > div > div.btn-group.mb-3.mr-2");
let tdHead = document.createElement('div');
tdHead.innerHTML = crewmenu;
if (rrHead != null)
insertAfter9(tdHead, rrHead.children[2]);}
}})}})