`+actions+`
`+title[2]+` | `+storage[1]+` / `+storage[2]+` items | `+title[1]+` points | Sort by: Alpha / Newest
`+items+"
"
document.getElementById("selectall_eth").addEventListener("click", selectall_eth, false);
function selectall_eth(){
$("img[src*='images/items/arheart.jpg']").trigger("click");
$("img[src*='images/items/saveitem30.jpg']").trigger("click");
$("img[src*='images/items/arqitem2.jpg']").trigger("click");
$("img[src*='images/items/arqitem3.jpg']").trigger("click");
$("img[src*='images/items/saveitem18.jpg']").trigger("click")}
document.getElementById("selectall_nl").addEventListener("click", selectall_nl, false);
function selectall_nl(){
$("img[src*='images/items/5002.gif']").trigger("click");
$("img[src*='images/items/5003.gif']").trigger("click");
$("img[src*='images/items/5004.gif']").trigger("click");
$("img[src*='images/items/5005.gif']").trigger("click");
$("img[src*='images/items/5006.gif']").trigger("click");
$("img[src*='images/items/5007.gif']").trigger("click");
$("img[src*='images/items/5008.gif']").trigger("click");
$("img[src*='images/items/5009.gif']").trigger("click");
$("img[src*='images/items/5010.gif']").trigger("click");
$("img[src*='images/items/5011.gif']").trigger("click")}
document.getElementById("selectall_sw").addEventListener("click", selectall_sw, false);
function selectall_sw(){
$("img[src*='images/items/UberChallengeCore.gif']").trigger("click");
$("img[src*='images/items/UberChallengeHead.gif']").trigger("click");
$("img[src*='images/items/UberChallengeNeck.gif']").trigger("click");
$("img[src*='images/items/UberChallengeWep.gif']").trigger("click");
$("img[src*='images/items/UberChallengeChest.gif']").trigger("click");
$("img[src*='images/items/UberChallengeShield.gif']").trigger("click");
$("img[src*='images/items/UberChallengeBelt.gif']").trigger("click");
$("img[src*='images/items/UberChallengePants.gif']").trigger("click");
$("img[src*='images/items/UberChallengeRing.gif']").trigger("click");
$("img[src*='images/items/UberChallengeFeet.gif']").trigger("click")}
document.getElementById("selectall_per").addEventListener("click", selectall_per, false);
function selectall_per(){
$("img[src*='images/items/PerfCore.gif']").trigger("click");
$("img[src*='images/items/PerfHead.gif']").trigger("click");
$("img[src*='images/items/PerfNeck.gif']").trigger("click");
$("img[src*='images/items/PerfWeapon.gif']").trigger("click");
$("img[src*='images/items/PerfChest.gif']").trigger("click");
$("img[src*='images/items/PerfShield.gif']").trigger("click");
$("img[src*='images/items/PerfBelt.gif']").trigger("click");
$("img[src*='images/items/PerfPants.gif']").trigger("click");
$("img[src*='images/items/PerfRing.gif']").trigger("click");
$("img[src*='images/items/PerfFeet.gif']").trigger("click")}
document.getElementById("selectall_ep").addEventListener("click", selectall_ep, false);
function selectall_ep(){
$("img[src*='images/items/exaltedcore.gif']").trigger("click");
$("img[src*='images/items/exaltedhelm.gif']").trigger("click");
$("img[src*='images/items/exaltedneck.gif']").trigger("click");
$("img[src*='images/items/exaltedwep.gif']").trigger("click");
$("img[src*='images/items/exaltedchest.gif']").trigger("click");
$("img[src*='images/items/exaltedshield.gif']").trigger("click");
$("img[src*='images/items/exaltedbelt.gif']").trigger("click");
$("img[src*='images/items/exaltedpants.gif']").trigger("click");
$("img[src*='images/items/exaltedring.gif']").trigger("click");
$("img[src*='images/items/exaltedboots.gif']").trigger("click")}
document.getElementById("selectall_fa").addEventListener("click", selectall_fa, false);
function selectall_fa(){
$("img[src*='images/item_holy.gif']").trigger("click");
$("img[src*='images/item_arcane.gif']").trigger("click");
$("img[src*='images/item_shadow.gif']").trigger("click");
$("img[src*='images/item_fire.gif']").trigger("click");
$("img[src*='images/item_kinetic.gif']").trigger("click")}
document.getElementById("selectall_dr").addEventListener("click", selectall_dr, false);
function selectall_dr(){
$("img[src*='images/items/dset_head.gif']").trigger("click");
$("img[src*='images/items/dset_feet.gif']").trigger("click");
$("img[src*='images/items/dset_belt.gif']").trigger("click");
$("img[src*='images/items/dset_pants.gif']").trigger("click");
$("img[src*='images/items/dset_ring.gif']").trigger("click");
$("img[src*='images/items/dset_shield.gif']").trigger("click");
$("img[src*='images/items/dset_body.gif']").trigger("click");
$("img[src*='images/items/dset_weapon.gif']").trigger("click");
$("img[src*='images/items/dset_neck.gif']").trigger("click")}
document.getElementById("selectall_lf").addEventListener("click", selectall_lf, false);
function selectall_lf(){
$("img[src*='images/eearth.gif']").trigger("click");
$("img[src*='images/eair.gif']").trigger("click");
$("img[src*='images/ewater.gif']").trigger("click");
$("img[src*='images/efire.gif']").trigger("click");
$("img[src*='images/edeath.gif']").trigger("click");
$("img[src*='images/items/lifeforce_']").trigger("click")}
document.getElementById("selectall_sg").addEventListener("click", selectall_sg, false);
function selectall_sg(){
$("img[src*='images/soulgem']").trigger("click")}
document.getElementById("selectall_wilk").addEventListener("click", selectall_wilk, false);
function selectall_wilk(){
$("img[src*='images/items/itema46.jpg']").trigger("click");
$("img[src*='images/items/itemz51.jpg']").trigger("click");
$("img[src*='images/items/itemz110.gif']").trigger("click");
$("img[src*='images/items/arqitem1.jpg']").trigger("click");
$("img[src*='images/items/storeitem4.jpg']").trigger("click");
$("img[src*='images/items/itema52.jpg']").trigger("click")}
document.getElementById("selectall_wle").addEventListener("click", selectall_wle, false);
function selectall_wle(){
$("img[src*='images/items/InquisitorsHarpoon2.jpg']").trigger("click");
$("img[src*='images/items/RingofWonders.jpg']").trigger("click");
$("img[src*='images/items/redkingbelt.jpg']").trigger("click");
$("img[src*='images/items/blackkingchest.jpg']").trigger("click")}
document.getElementById("selectall_wlp").addEventListener("click", selectall_wlp, false);
function selectall_wlp(){
$("img[src*='images/items/Pot_ShadowVile.jpg']").trigger("click");
$("img[src*='images/items/Pot_ArcaneVile.jpg']").trigger("click");
$("img[src*='images/items/Pot_FireVile.jpg']").trigger("click");
$("img[src*='images/items/Pot_KineticVile.jpg']").trigger("click");
$("img[src*='images/items/Pot_NatasVile.jpg']").trigger("click");
$("img[src*='images/items/Pot_WhiteVile.jpg']").trigger("click")}
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 = ""
$("#aname").change(function(){
var dd = document.querySelector("#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(5) > div:nth-child(1) > select");
var awardto_name = document.querySelector("#aname").value
for (var i = 0; i < dd.options.length; i++) {if (dd.options[i].text.toLowerCase() === awardto_name.toLowerCase()) {dd.selectedIndex = i;}}
});
var chardrop = document.querySelector("#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(5) > div:nth-child(1) > select")
let char0 = document.createElement('option');
char0.innerHTML = ``
char0.setAttribute("value","0")
chardrop.insertBefore(char0, chardrop.firstElementChild);
document.querySelector("#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(5) > div:nth-child(1) > select").value = "0"
if (document.querySelector("#content-header-row > div.row > div") != null){
if (document.querySelector("#content-header-row > div.row > div").innerHTML.match("Arena Teleporter awarded") != null){
document.querySelector("#content-header-row > div.row > div").innerHTML += `CHAOS TELEPORTERS `
document.getElementById("cv_chaostele").addEventListener("click", chaostele)
}}
document.querySelector("#click").addEventListener("click", click, false);
function click(){
html2canvas(document.querySelector('#cvitems'), {
letterRendering: 1,
allowTaint: true,
onrendered: function(canvas) {
var ctx = canvas.getContext("2d");
ctx.textBaseline = "top";
ctx.font = "14px sans-serif";
ctx.fillStyle = "rgba(0, 0, 0, 0.7)";
ctx.fillRect(0, 0, 517, 19);
ctx.fillStyle = "#FF0000";
ctx.fillText("IMAGE CREATED WITH MOXXIMOD for OUTWAR: WWW.STUDIOMOXXI.COM", 6, 4);
return Canvas2Image.saveAsPNG(canvas);
}})}
}
if (document.querySelector("#content-header-row > form > div.row.mt-3.w-100") == null){
GM_addStyle (`#eq_photo{position:absolute;left:15px;top:17px;z-index:9999;opacity:0.5;filter:grayscale(1);}`);
document.querySelector("#content-header-row > form > div").setAttribute("id","cv")
$("#cv").append(`
`)
document.querySelector("#click").addEventListener("click", click, false);
function click(){
html2canvas(document.querySelector('#cv'), {
letterRendering: 1,
allowTaint: true,
onrendered: function(canvas) {
var ctx = canvas.getContext("2d");
ctx.textBaseline = "top";
ctx.font = "19px sans-serif";
ctx.fillStyle = "rgba(0, 0, 0, 1.0)";
ctx.fillRect(0, 52, 1400, 22);
ctx.fillStyle = "#FF0000";
ctx.fillText("IMAGE CREATED WITH MOXXIMOD for OUTWAR: WWW.STUDIOMOXXI.COM", 300, 55);
return Canvas2Image.saveAsPNG(canvas);
}})}
}
}
function exrga(){
GM_setValue("origincharid",charid)
GM_addStyle (`
#export{position:fixed;top:10%;height:135px;width:600px;background:#000000;left:25%;z-index:9999;box-shadow: 0 6px 10px 0 rgba(0,0,0,1),0 1px 18px 0 rgba(0,0,0,1),0 3px 5px -1px rgba(0,0,0,1);overflow: hidden;color:#FFFFFF;padding:20px;}
#export_screen{position:fixed;top:0;left:0;height:100%;width:100%;z-index:99999;background: rgb(60,56,60,0.75)}
img.loading{height:75px;width:75px;}
`)
$("body").append(`
`)
fetch("myaccount")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const chars = doc.querySelector("#zero-config").innerHTML.matchAll(/suid=([0-9]+)&serverid=[0-9]+">PLAY!/g)
for (const match of chars) {Array.from(charids += ","+match[1])}
var array = charids.split(',').map(Number);
var nan = array.shift()
var count = array.length;
var data = '';
for (var i = 0; i < count; i++) {
fetch("profile?suid="+array[i]).then(profile => profile.text()).then((profile) => {
data += profile.match(//i)[1]+","
data += profile.match(/CHARACTER CLASS.*[\n\r].*Level ([0-9]+)(.*)<\/b><\/td>/i)[1]+","
data += profile.match(/TOTAL EXPERIENCE.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/TOTAL POWER.*[\n\r].*(.*)<\/font><\/b><\/td>/i)[1].replaceAll(",","")+","
data += profile.match(/ELEMENTAL ATTACK.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/ELEMENTAL RESIST.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/ATTACK.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/HIT POINTS.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/CHAOS DAMAGE.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/Maximum:<\/b><\/td> (.*?)<\/td><\/tr>/i)[1].replaceAll(",","")+","
var corei = (profile.match(/.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","").match(/src="([^"]*)"/i)[1]+","
var corel = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","").match(/id=([0-9]+)/i)[1]+","
data += corei
data += corel
var head = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += head.match(/src="([^"]*)"/i)[1]+","
data += head.match(/id=([0-9]+)/i)[1]+","
var neck = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += neck.match(/src="([^"]*)"/i)[1]+","
data += neck.match(/id=([0-9]+)/i)[1]+","
var weapon = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += weapon.match(/src="([^"]*)"/i)[1]+","
data += weapon.match(/id=([0-9]+)/i)[1]+","
var body = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += body.match(/src="([^"]*)"/i)[1]+","
data += body.match(/id=([0-9]+)/i)[1]+","
var shield = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += shield.match(/src="([^"]*)"/i)[1]+","
data += shield.match(/id=([0-9]+)/i)[1]+","
var belt = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += belt.match(/src="([^"]*)"/i)[1]+","
data += belt.match(/id=([0-9]+)/i)[1]+","
var pants = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += pants.match(/src="([^"]*)"/i)[1]+","
data += pants.match(/id=([0-9]+)/i)[1]+","
var ring = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += ring.match(/src="([^"]*)"/i)[1]+","
data += ring.match(/id=([0-9]+)/i)[1]+","
var foot = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += foot.match(/src="([^"]*)"/i)[1]+","
data += foot.match(/id=([0-9]+)/i)[1]+","
var gem = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += gem.match(/src="([^"]*)"/i)[1]+","
data += gem.match(/id=([0-9]+)/i)[1]+","
var rune = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += rune.match(/src="([^"]*)"/i)[1]+","
data += rune.match(/id=([0-9]+)/i)[1]+","
var orbs = profile.match(/
.*[\n\r].*<\/div>/i).toString()
var orb1img = (((orbs.match(/src="([^"]*)"/g) || [`src="0"`,`src="0"`,`src="0"`]).toString()).match(/"[^"]*"/g)[0] || `"0"`).replaceAll("http://torax.","").replaceAll("http://sigil.","").replaceAll(`"`,``)
var orb1id = (orbs.match(/id=[0-9]+/g) || ["id=0","id=0","id=0"]).toString().match(/[0-9]+/g)[0] || 0
var orb2img = (((orbs.match(/src="([^"]*)"/g) || [`src="0"`,`src="0"`,`src="0"`]).toString()).match(/"[^"]*"/g)[1] || `"0"`).replaceAll("http://torax.","").replaceAll("http://sigil.","").replaceAll(`"`,``)
var orb2id = (orbs.match(/id=[0-9]+/g) || ["id=0","id=0","id=0"]).toString().match(/[0-9]+/g)[1] || 0
var orb3img = (((orbs.match(/src="([^"]*)"/g) || [`src="0"`,`src="0"`,`src="0"`]).toString()).match(/"[^"]*"/g)[2] || `"0"`).replaceAll("http://torax.","").replaceAll("http://sigil.","").replaceAll(`"`,``)
var orb3id = (orbs.match(/id=[0-9]+/g) || ["id=0","id=0","id=0"]).toString().match(/[0-9]+/g)[2] || 0
data += orb1img+","
data += orb1id+","
data += orb2img+","
data += orb2id+","
data += orb3img+","
data += orb3id+","
var badge = (profile.match(/
.*[\n\r]
/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","")
data += badge.match(/src="([^"]*)"/i)[1]+","
data += badge.match(/id=([0-9]+)/i)[1]+","
var progress = data.match(/,/g).length
if (progress == count*42){
exportdata = data.slice(0, -1)
document.querySelector("#export").innerHTML = `
COPY EXIT `
task30();
document.getElementById ("exportcopy").addEventListener("click", exportcopy, false); function exportcopy(){document.querySelector("#exlink").select();document.execCommand('copy');document.querySelector("#msg").innerHTML="copied link to clipboard"}
document.getElementById ("exportexit").addEventListener("click", exportexit, false); function exportexit(){window.location.replace(window.location.pathname+"?suid="+GM_getValue("origincharid"))
}
} }) } }) }
GM_addStyle (`
#rgamove{position:fixed;top:10%;height:520px;background:#000000;left:25%;z-index:9999;box-shadow: 0 6px 10px 0 rgba(0,0,0,1),0 1px 18px 0 rgba(0,0,0,1),0 3px 5px -1px rgba(0,0,0,1);color:#FFFFFF;overflow-y: auto;}
#rgadata > tbody > tr > td{padding:5px;border:1px SOLID #1C1D1F;}
#rgadata{margin:10px;margin-top:50px;}
#fullscreen{position:fixed;top:0;left:0;height:100%;width:100%;z-index:99999;background: rgb(60,56,60,0.75)}
.rga-move,#rgamovenum{background:#FFFFFF;border:0px;color:#000000;font-size:12px;padding:0.4375rem;border-radius:0.5rem;margin:2px;}
#mover_buttons{position:fixed;top:10%;left:25%;z-index:999999;background:#000000;margin-left:10px;margin-top:10px;}
`)
function rgamove(){
GM_setValue("origincharid",charid)
var charids = '';
fetch("myaccount").then(res => res.text()).then((responseText) => {
const chars = new DOMParser().parseFromString(responseText, 'text/html').querySelector("#zero-config").innerHTML.matchAll(/suid=([0-9]+)&serverid=[0-9]+">PLAY!/g)
for (const match of chars) {charids += ``+match[1]+` `}
$("body").append(`
EXIT GO TO ROOM
`)
var count = (document.querySelector("#rgadata").rows.length)+1
for (let row = 2; row < count; row++) {
fetch("profile?suid="+document.querySelector("#rgadata > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("ajax_changeroomb?suid="+document.querySelector("#rgadata > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(changeroom => changeroom.text()).then((changeroom) => {
var circ = ''; if ((new DOMParser().parseFromString(profile, 'text/html').querySelector("#divSkillsCast").innerHTML.match(/skills\/(circumspect)/i) || ["","no"])[1] == "no"){circ = "NO"} else {circ = "YES"}
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(0).html(profile.match(/(.*)<\/font>/i)[1])
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(1).html(circ)
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(2).html(changeroom.match(/"name":"([^"]*)"/i)[1])
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(3).html(changeroom.match(/"curRoom":"([0-9]+)"/i)[1])
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(4).html(` tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`)
})})}
refresh(); function refresh(){
var count = (document.querySelector("#rgadata").rows.length)+1
for (let row = 2; row < count; row++) {
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(2).html(` `)
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(3).html(` `)
fetch("ajax_changeroomb?suid="+document.querySelector("#rgadata > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(changeroom => changeroom.text()).then((changeroom) => {
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(2).html(changeroom.match(/"name":"([^"]*)"/i)[1])
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(3).html(changeroom.match(/"curRoom":"([0-9]+)"/i)[1])
if (changeroom.match(/"curRoom":"([0-9]+)"/i)[1] == document.querySelector("#rgamovenum").value.replaceAll(/[A-Za-z]+/g,"").replaceAll(" ","").replaceAll(",","")){$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(3).css('color', 'lime')}
if (changeroom.match(/"curRoom":"([0-9]+)"/i)[1] != document.querySelector("#rgamovenum").value.replaceAll(/[A-Za-z]+/g,"").replaceAll(" ","").replaceAll(",","")){$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(3).css('color', 'white')}
})} setTimeout(function(){refresh();},2000)}
document.getElementById ("multimove").addEventListener("click", multimove, false);
$('#checkall').click(function(){if (this.checked) {$(".moveme").attr("checked",true)} else {$(".moveme").attr("checked",false)}})
document.getElementById ("rgamoveexit").addEventListener("click", rgamoveexit, false); function rgamoveexit(){window.location.replace(window.location.pathname+"?suid="+GM_getValue("origincharid"))}})}
function multimove(){
var multimove_ar = []; $("input:checkbox[class=moveme]:checked").each(function(){multimove_ar.push($(this).val());var multimove_id = multimove_ar.join(",")});
var multimove_room = document.querySelector("#rgamovenum").value.replaceAll(/[A-Za-z]+/g,"").replaceAll(" ","").replaceAll(",","")
gotormnum = rganame+"|"+server+"|"+multimove_room+"|"+multimove_ar
document.querySelector("#multimove").outerHTML = `GO TO ROOM `
task25()}
function rgasearch(){
GM_addStyle (`
#searchPop{position:fixed;top:80px;left:250px;width:475px;height:40px;z-index:9999;font-size:18px;}
#results > tbody > tr > td{padding:3px;font-size:14px;background:#FFFFFF;color:#000000;border:1px #000000 SOLID;}
#searchTable{height:130px;overflow-x:auto;text-transform: uppercase;letter-spacing:1px;background:#000000;padding:5px;box-shadow: 0 6px 10px 0 rgba(0,0,0,1),0 1px 18px 0 rgba(0,0,0,1),0 3px 5px -1px rgba(0,0,0,1)}
#results{display:none;}
input.search{width:450px;margin:5px;height:25px;padding:5px;height:60px;font-size:24px;letter-spacing:2px;}
input.search::placeholder{font-size:18px;padding-left:5px;}
`)
$("body").append(``)
$("#rgaSearch").keyup(function(event) {if (event.keyCode === 13) { $("#rgasearch_go").click();}});
document.getElementById ("rgasearch_go").addEventListener("click", rgasearch_go, false);
document.getElementById ("closeSearch").addEventListener("click", closeSearch, false); function closeSearch(){$("#searchPop").remove();}
document.querySelector("#rgaSearch").select();
}
function rgasearch_go(){
var searchtable = '';
fetch("ajax/accounts")
.then(res => res.text())
.then((res) => {
const chars = res.matchAll(/"id":"([0-9]+)","name":"([^"]*)"/g)
for (const match of chars) {searchtable += ``+match[1]+` `+match[2]+` `}
document.querySelector("#searchTable").innerHTML = `
searching for `+document.querySelector("#rgaSearch").value+`
char id char name QNTY
`+searchtable+`
`
var count = (document.querySelector("#results").rows.length)+1
var log = 0
for (let row = 2; row < count; row++) {
fetch("ajax/backpackcontents.php?suid="+document.querySelector("#results > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&tab=potion").then(potion => potion.text()).then((potion) => {
fetch("ajax/backpackcontents.php?suid="+document.querySelector("#results > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&tab=regular").then(regular => regular.text()).then((regular) => {
fetch("ajax/backpackcontents.php?suid="+document.querySelector("#results > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&tab=quest").then(quest => quest.text()).then((quest) => {
fetch("ajax/backpackcontents.php?suid="+document.querySelector("#results > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&tab=key").then(key => key.text()).then((key) => {
var regex = new RegExp(`img data-itemidqty="[0-9]+" data-name="`+document.querySelector("#search4").innerHTML.replace("searching for ","")+`"`,"g")
var search_quantity =
parseInt((regular.match(regex) || `data-itemidqty="0"`).toString().match(/data-itemidqty="([0-9]+)"/i)[1]) +
parseInt((quest.match(regex) || `data-itemidqty="0"`).toString().match(/data-itemidqty="([0-9]+)"/i)[1]) +
parseInt((potion.match(regex) || `data-itemidqty="0"`).toString().match(/data-itemidqty="([0-9]+)"/i)[1]) +
parseInt((key.match(regex) || `data-itemidqty="0"`).toString().match(/data-itemidqty="([0-9]+)"/i)[1])
$("#results > tbody > tr:nth-child("+row+") > td.quantity").eq(0).html(search_quantity)
log += 1; if (log == count-2){
GM_addStyle (`
#results{display:revert;}
#searchTable{overflow-x:auto;height:500px;}
`)
$("#loadimg").remove();
document.querySelector("#search4").innerHTML = `results for `+document.querySelector("#search4").innerHTML.replace("searching for ","")}
}
)})})})}})}
GM_addStyle (`
#update{position:fixed;top:10%;height:280px;background:#000000;left:25%;z-index:9999;box-shadow: 0 6px 10px 0 rgba(0,0,0,1),0 1px 18px 0 rgba(0,0,0,1),0 3px 5px -1px rgba(0,0,0,1);overflow: hidden;color:#FFFFFF;padding:1rem;}
#upgradeTable > tbody > tr > td{padding:5px;border:1px SOLID #1C1D1F;}
#upgradeTable > tbody > tr > td > img{width:30px;height:30px;}
#upgradeTable{margin:10px;}
#upgrade_pop{position:fixed;top:0;left:0;height:100%;width:100%;z-index:99999;background: rgb(60,56,60,0.75);}
`)
function upgradeRGA(){
var charids = '';
var loop = 0;
fetch("myaccount").then(res => res.text()).then((responseText) => {
const chars = new DOMParser().parseFromString(responseText, 'text/html').querySelector("#zero-config").innerHTML.matchAll(/suid=([0-9]+)&serverid=[0-9]+">PLAY!/g)
for (const match of chars) {charids += ``+match[1]+` name gem rune badge `}
$("body").append(`
EXIT
GO
CHAR ID NAME GEM RUNE BADGE
`+charids+`
`)
var count = (document.querySelector("#upgradeTable").rows.length)+1
for (let row = 2; row < count; row++) {
fetch("profile?id="+document.querySelector("#upgradeTable > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
var circ = ''; if ((new DOMParser().parseFromString(profile, 'text/html').querySelector("#divSkillsCast").innerHTML.match(/skills\/(circumspect)/i) || ["","no"])[1] == "no"){circ = "NO"} else {circ = "YES"}
$("#upgradeTable > tbody > tr:nth-child("+row+") > td.data").eq(0).html(profile.match(/(.*)<\/font>/i)[1])
$("#upgradeTable > tbody > tr:nth-child("+row+") > td.data").eq(1).html("gem")
$("#upgradeTable > tbody > tr:nth-child("+row+") > td.data").eq(2).html("rune")
$("#upgradeTable > tbody > tr:nth-child("+row+") > td.data").eq(3).html("badge")
loop += 1
if (loop == (count-2)){GM_addStyle(`#loading{display:none;}#update{height:50%;overflow: auto;}`)}
document.getElementById ("upgrade_exit").addEventListener("click", upgrade_exit, false);
function upgrade_exit(){$( "#upgrade_pop" ).remove();}
document.getElementById ("upgrade_go").addEventListener("click", upgrade_go, false);
function upgrade_go(){}
})}})
}
GM_addStyle (`
#chaostele{position:fixed;top:10%;height:220px;background:#000000;left:25%;z-index:9999;box-shadow: 0 6px 10px 0 rgba(0,0,0,1),0 1px 18px 0 rgba(0,0,0,1),0 3px 5px -1px rgba(0,0,0,1);overflow: hidden;color:#FFFFFF;}
#chaosdata > tbody > tr > td{padding:5px;border:1px SOLID #1C1D1F;}
#chaosdata > tbody > tr > td > img{width:30px;height:30px;}
#chaosdata{margin:10px;}
#chaos_telescreen{position:fixed;top:0;left:0;height:100%;width:100%;z-index:99999;background: rgb(60,56,60,0.75)}
`)
function chaostele(){
GM_setValue("origincharid",charid)
var charids = '';
fetch("myaccount").then(res => res.text()).then((responseText) => {
const chars = new DOMParser().parseFromString(responseText, 'text/html').querySelector("#zero-config").innerHTML.matchAll(/suid=([0-9]+)&serverid=[0-9]+">PLAY!/g)
for (const match of chars) {charids += ``+match[1]+` name backpack skills rage `}
$("body").append(`CHAR ID NAME TELE CIRC RAGE `+charids+`
EXIT
USE TELEPORTERS
`)
var count = (document.querySelector("#chaosdata").rows.length)+1
for (let row = 2; row < count; row++) {
fetch("profile?suid="+document.querySelector("#chaosdata > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("ajax/backpackcontents?suid="+document.querySelector("#chaosdata > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&tab=key").then(backpack => backpack.text()).then((backpack) => {
var circ = ''; if ((new DOMParser().parseFromString(profile, 'text/html').querySelector("#divSkillsCast").innerHTML.match(/skills\/(circumspect)/i) || ["","no"])[1] == "no"){circ = "NO"} else {circ = "YES"}
var tele = ''; if ((backpack.match(/data-name="(Arena Teleporter)"/i) || ["","none"])[1] == "Arena Teleporter"){tele = ` `} else {tele = ""}
if (tele == ""){document.querySelector("#chaosdata > tbody > tr:nth-child("+row+")").setAttribute("style","display:none")}
$("#chaosdata > tbody > tr:nth-child("+row+") > td.chaosdata").eq(0).html(profile.match(/(.*)<\/font>/i)[1])
$("#chaosdata > tbody > tr:nth-child("+row+") > td.chaosdata").eq(1).html(tele)
$("#chaosdata > tbody > tr:nth-child("+row+") > td.chaosdata").eq(2).html(circ)
$("#chaosdata > tbody > tr:nth-child("+row+") > td.chaosdata").eq(3).html(profile.match(/(.*)<\/span>/i)[1])
var teleqnt = (document.querySelector("#chaosdata").innerHTML.match(/ /g) || []).length
var rowqnt = $('#chaosdata tbody tr:visible').length-1
if (teleqnt-rowqnt == 0){GM_addStyle(`#chaostele > center > img{display:none;}#chaostele{height:50%;overflow: auto;}`)}
document.getElementById ("chaosteleexit").addEventListener("click", chaosteleexit, false); function chaosteleexit(){window.location.replace(window.location.pathname+"?suid="+GM_getValue("origincharid"))}
document.getElementById("useteleporters").addEventListener("click", task22)
})})}})
}
if (document.URL.indexOf("trade") == -1) {GM_setValue("auto_add",false)}
if (document.URL.indexOf("trade") != -1 && error == false) {
if (document.querySelector("#content-header-row > div > div").innerHTML.match("This trade has been completed") == null) {
GM_addStyle (`
#divTrade > div > h1 {display:none !important;}
#divTrade > div {margin-bottom:0.75rem !important;}
#divTrade > div > div > img{max-width:60px !important;max-height:45px !important;width:60px;height:45px;position:relative;margin-top:18px;margin-bottom:8px;background:#000000;}
#divTrade > div > div > p{background:#000000;font-size:11px !important;padding:1px !important;position:relative;top:0px;height:20px;width:60px;left:0px;border:2px SOLID #2B2B2B;}
div.tools{display:inline-block;margin-left:20px;margin-right:20px;width:250px;}
`)
var qnt;
if (GM_getValue("trade_qnt") == undefined){
qnt = 1}
if (GM_getValue("trade_qnt") != undefined){
qnt = GM_getValue("trade_qnt")}
var set_qnt = `
Set default trade quantity
SET
`
setTimeout(function() {
document.querySelector("#trade_qntbtn").addEventListener("click", trade_qnt, false);
},500)
function trade_qnt(){
GM_setValue("trade_qnt", document.querySelector("#trade_qnt").value)
qnt = GM_getValue("trade_qnt")
location.reload();
}
$("#divTradeData").after(set_qnt);
if (GM_getValue("auto_add") == true){
document.querySelector("#autoadd").innerHTML = `Automatically addTURN OFF `
document.querySelector("#autoaddbtn").addEventListener("click", autoadd_off, false);
} else {
document.querySelector("#autoadd").innerHTML = `Automatically addTURN ON `
document.querySelector("#autoaddbtn").addEventListener("click", autoadd_on, false);}
function autoadd_on(){GM_setValue("auto_add",true);location.reload();}
function autoadd_off(){GM_setValue("auto_add",false);location.reload();}
var observer_trade = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
document.querySelector("#cauldronqtyspinner").setAttribute("autocomplete","off")
document.querySelector("#cauldronqtyspinner").value = qnt
document.querySelector("#cauldronqtyspinner").focus()
if (GM_getValue("auto_add") == true){setTimeout(function() {document.querySelector("#treasurybuy").click()},300)}
});
});
var target = document.getElementById('cauldronqty');
observer_trade.observe(target, {
attributes: true,
attributeFilter: ['class']
});
if (document.querySelector("#content-header-row > div > div > strong") == null){
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;}`)
var cat21 = document.querySelector("#divTrade > div:nth-child(21)").innerHTML
if (cat21.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(21){display:none !important;}`)
var cat22 = document.querySelector("#divTrade > div:nth-child(22)").innerHTML
if (cat22.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(22){display:none !important;}`)
}}
var otherName = document.querySelector("#divTradeTheirOffer").innerHTML.match(/(.*?)'s Offer/i)[1]
console.log(window.location.search.match(/isCrewTrade=1/i))
if (window.location.search.match(/isCrewTrade=1/i) == null && GM_getValue("tradeeq") == true) {
GM_addStyle (`
#otherEQ{position:absolute !important;right:150px !important;top:65px !important;-webkit-transform:scale(0.65);-moz-transform:scale(0.65);-ms-transform:scale(0.65);transform:scale(0.65);}
#divTradeTheirOffer > div.divBlackBox.statbox.widget.box.box-shadow{width:68%;right:100px;}
`)
$("body").append(`
`)
fetch("profile?transnick="+otherName)
.then(res => res.text())
.then((responseText) => {
var otherEQ = new DOMParser().parseFromString(responseText, 'text/html').querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(2) > div > div")
if (otherEQ != null){ document.querySelector("#otherEQ").innerHTML = otherEQ.innerHTML }
})}}
if (document.URL.indexOf("godstatus") != -1 && error == false) {
GM_addStyle (`
`)
var Agnar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/.*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(/ .*Agnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Valzek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Arcon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Firan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Kinark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Shayar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Holgor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Envar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Banok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Rezun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Rillax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Villax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Dexor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Gregov.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Murfax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Thanox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Skarthul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Straya.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Dlanod.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Viserion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Balerion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Xynak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Crolvak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Esquin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Raiyar, the Shadow Master.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Bolkor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Nafir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Yirkon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Keeper of Nature.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Akkel.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Nayark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Apparition.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Zikkir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Volgan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Jorun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Tarkin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*Sarcrina.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Sarcrina = document.querySelector("#content-header-row > div > table").innerHTML.match(/ .*Sarcrina.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Karvaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Felroc.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Kretok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Drake.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Captain.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Q-SEC.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Dragonite.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Beast.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Slug.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Sylvanna.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Lacuste.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Anvilfist.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Gorganus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Ormsul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Skybrine.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Windstrike.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Grivvek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Varsanor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Crantos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Emerald.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Murderface.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Detox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Samatha.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Anguish.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Numerocure.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Hackerphage.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Howldroid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Slashbrood.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Neudeus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Baron.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Freezebreed.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Rotborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Melt.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Lady Chaos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Gnorb.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Nessam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Crane.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Pinosis.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Tsort.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Shadow<\/a>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Xordam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Ebliss.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Brutalitar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Dreg.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Ashnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Zhul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Ganja.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Sibannac.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Smoot.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Bloodchill.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Nabak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Shuk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Varan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Narada.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Ariella.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Suka.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Ganeshan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Garland.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Tylos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Threk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Jazzmin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Sigil.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Synge.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Rancid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Terrance.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Zertan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Quiver.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Wanhiroeaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Vitkros.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Hyrak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Mistress.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` div > table").innerHTML.match(/ .*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(/ .*Traxodon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll(" ","").replaceAll(" "," ").replace(` h2")
var style2 = "height:492px;width:492px;opacity:100%;border-radius:30px;background:transparent;margin:16px;"
var style3 = "height:324px;width:324px;opacity:100%;border-radius:30px;background:transparent;margin:14px;"
var style4 = "height:241px;width:241px;opacity:100%;border-radius:30px;background:transparent;margin:12px;"
var style5 = "height:192px;width:192px;opacity:100%;border-radius:30px;background:transparent;margin:10px;"
var style6 = "height:160px;width:160px;opacity:100%;border-radius:30px;background:transparent;margin:8px;"
var style7 = "height:138px;width:138px;opacity:100%;border-radius:30px;background:transparent;margin:6px;"
var godtabs = `
GODS DEFEATED IN THE LAST 24 HOURS
`+Agnar+`
`+Valzek+`
`+Arcon+`
`+Firan+`
`+Kinark+`
`+Shayar+`
`+Holgor+`
`+Envar+`
`+Banok+`
`+Rezun+`
`+Rillax+`
`+Villax+`
`+Dexor+`
`+Gregov+`
`+Murfax+`
`+Thanox+`
`+Skarthul+`
`+Straya+`
`+Dlanod+`
`+Viserion+`
`+Balerion+`
`+Xynak+`
`+Crolvak+`
`+Esquin+`
`+Raiyar+`
`+Bolkor+`
`+Nafir+`
`+Yirkon+`
`+Keeper+`
`+Akkel+`
`+Nayark+`
`+Apparition+`
`+Zikkir+`
`+Volgan+`
`+Jorun+`
`+Tarkin+`
`+Sarcrina+`
`+Karvaz+`
`+Felroc+`
`+Kretok+`
`+Drake+`
`+Captain+`
`+Qsec+`
`+Dragonite+`
`+Beast+`
`+Slug+`
`+Sylvanna+`
`+Lacuste+`
`+Anvilfist+`
`+Gorganus+`
`+Ormsul+`
`+Skybrine+`
`+Windstrike+`
`+Grivvek+`
`+Varsanor+`
`+Crantos+`
`+Emerald+`
`+Murderface+`
`+Detox+`
`+Samatha+`
`+Anguish+`
`+Hackerphage+`
`+Howldroid+`
`+Slashbrood+`
`+Neudeus+`
`+Baron+`
`+Freezebreed+`
`+Rotborn+`
`+Melt+`
`+Chaos+`
`+Numerocure+`
`+Gnorb+`
`+Nessam+`
`+Crane+`
`+Pinosis+`
`+Tsort+`
`+Shadow+`
`+Xordam+`
`+Ebliss+`
`+Brutalitar+`
`+Dreg+`
`+Ashnar+`
`+Zhul+`
`+Ganja+`
`+Sibannac+`
`+Smoot+`
`+Bloodchill+`
`+Nabak+`
`+Shuk+`
`+Varan+`
`+Narada+`
`+Ariella+`
`+Suka+`
`+Ganeshan+`
`+Wanhiroeaz+`
`+Vitkros+`
`+Hyrak+`
`+Mistress+`
`+Traxodon+`
`+Garland+`
`+Tylos+`
`+Threk+`
`+Jazzmin+`
`+Sigil+`
`+Synge+`
`+Rancid+`
`+Terrance+`
`+Zertan+`
`+Quiver+`
`
header.innerHTML = godtabs
}
if (document.URL.indexOf("itemlink") != -1 && error == false) {
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}`);
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]+) response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(3)").outerHTML.replace(/ /i,1).replace(/ /i,0)
var Gslot2 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(4)").outerHTML.replace(/ /i,1).replace(/ /i,0)
var Gslot3 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(5)").outerHTML.replace(/ /i,1).replace(/ /i,0)
var Gslot4 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(6)").outerHTML.replace(/ /i,1).replace(/ /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(/ \(\+[0-9]+\)<\/span>/g,"").replaceAll(",","");
var atk = item.match(/\+([0-9]+) ATK/) ?? 0
var holy = item.match(/\+([0-9]+) Holy/) ?? 0
var arcane = item.match(/\+([0-9]+) Arcane/) ?? 0
var shadow = item.match(/\+([0-9]+) Shadow/) ?? 0
var fire = item.match(/\+([0-9]+) Fire/) ?? 0
var kinetic = item.match(/\+([0-9]+) Kinetic/) ?? 0
var chaos = item.match(/\+([0-9]+) 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(/ \+.* Holy/," +"+(parseInt(holy[1])-aholy)+" (+"+aholy+") Holy ")}
if (aarcane != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* Arcane/," +"+(parseInt(arcane[1])-aarcane)+" (+"+aarcane+") Arcane ")}
if (afire != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* Fire/," +"+(parseInt(fire[1])-afire)+" (+"+afire+") Fire ")}
if (akinetic != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* Kinetic/," +"+(parseInt(kinetic[1])-akinetic)+" (+"+akinetic+") Kinetic ")}
if (ashadow != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* Shadow/," +"+(parseInt(shadow[1])-ashadow)+" (+"+ashadow+") Shadow ")}
if (achaos != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* Chaos/," +"+(parseInt(chaos[1])-achaos)+" (+"+achaos+") Chaos ")}
if (aps != 0){edititem.innerHTML = edititem.innerHTML.replace(/% perfect strike/," (+"+aps+") % perfect strike")}
var g1 = '';
var g2 = '';
var g3 = '';
var g4 = '';
if (atk[1] > 0){
g1 += "+"+Math.round(atk[1]*1.15)+" ATK "
g2 += "+"+Math.round(atk[1]*1.3225)+" ATK "
g3 += "+"+Math.round(atk[1]*1.520875)+" ATK "
g4 += "+"+Math.round(atk[1]*1.74900625)+" ATK "}
if (holy[1]-aholy > 0){
g1 += " +"+(parseInt(holy[1]))+" Holy "
g2 += " +"+(parseInt(holy[1]))+" Holy "
g3 += " +"+(parseInt(holy[1]))+" Holy "
g4 += " +"+(parseInt(holy[1]))+" Holy "}
if (arcane[1]-aarcane > 0){
g1 += " +"+(parseInt(arcane[1]))+" Arcane "
g2 += " +"+(parseInt(arcane[1]))+" Arcane "
g3 += " +"+(parseInt(arcane[1]))+" Arcane "
g4 += " +"+(parseInt(arcane[1]))+" Arcane "}
if (shadow[1]-ashadow > 0){
g1 += " +"+(parseInt(shadow[1]))+" Shadow "
g2 += " +"+(parseInt(shadow[1]))+" Shadow "
g3 += " +"+(parseInt(shadow[1]))+" Shadow "
g4 += " +"+(parseInt(shadow[1]))+" Shadow "}
if (fire[1]-afire > 0){
g1 += " +"+(parseInt(fire[1]))+" Fire "
g2 += " +"+(parseInt(fire[1]))+" Fire "
g3 += " +"+(parseInt(fire[1]))+" Fire "
g4 += " +"+(parseInt(fire[1]))+" Fire "}
if (kinetic[1]-akinetic > 0){
g1 += " +"+(parseInt(kinetic[1]))+" Kinetic "
g2 += " +"+(parseInt(kinetic[1]))+" Kinetic "
g3 += " +"+(parseInt(kinetic[1]))+" Kinetic "
g4 += " +"+(parseInt(kinetic[1]))+" Kinetic "}
if (chaos[1]-achaos > 0){
g1 += " +"+(parseInt(chaos[1]))+" Chaos "
g2 += " +"+(parseInt(chaos[1]))+" Chaos "
g3 += " +"+(parseInt(chaos[1]))+" Chaos "
g4 += " +"+(parseInt(chaos[1]))+" Chaos "}
if (vile[1] > 0){
g1 += " +"+vile[1]+" vile energy "
g2 += " +"+vile[1]+" vile energy "
g3 += " +"+vile[1]+" vile energy "
g4 += " +"+vile[1]+" vile energy "}
if (hp[1] > 0){
g1 += "+"+Math.round(hp[1]*1.15)+" HP "
g2 += "+"+Math.round(hp[1]*1.3225)+" HP "
g3 += "+"+Math.round(hp[1]*1.520875)+" HP "
g4 += "+"+Math.round(hp[1]*1.74900625)+" HP "}
if (holyr[1] != undefined){
g1 += " +"+holyr[1]+" Holy Resist "
g2 += " +"+holyr[1]+" Holy Resist "
g3 += " +"+holyr[1]+" Holy Resist "
g4 += " +"+holyr[1]+" Holy Resist "}
if (arcaner[1] > 0){
g1 += " +"+arcaner[1]+" Arcane Resist "
g2 += " +"+arcaner[1]+" Arcane Resist "
g3 += " +"+arcaner[1]+" Arcane Resist "
g4 += " +"+arcaner[1]+" Arcane Resist "}
if (shadowr[1] > 0){
g1 += " +"+shadowr[1]+" Shadow Resist "
g2 += " +"+shadowr[1]+" Shadow Resist "
g3 += " +"+shadowr[1]+" Shadow Resist "
g4 += " +"+shadowr[1]+" Shadow Resist "}
if (firer[1] > 0){
g1 += " +"+firer[1]+" Fire Resist "
g2 += " +"+firer[1]+" Fire Resist "
g3 += " +"+firer[1]+" Fire Resist "
g4 += " +"+firer[1]+" Fire Resist "}
if (kineticr[1] > 0){
g1 += " +"+kineticr[1]+" Kinetic Resist "
g2 += " +"+kineticr[1]+" Kinetic Resist "
g3 += " +"+kineticr[1]+" Kinetic Resist "
g4 += " +"+kineticr[1]+" Kinetic Resist "}
if (chaosr[1] > 0){
g1 += " +"+chaosr[1]+" Chaos Resist "
g2 += " +"+chaosr[1]+" Chaos Resist "
g3 += " +"+chaosr[1]+" Chaos Resist "
g4 += " +"+chaosr[1]+" Chaos Resist "}
if (block[1] > 0){
g1 += "+"+block[1]+"% block "
g2 += "+"+block[1]+"% block "
g3 += "+"+block[1]+"% block "
g4 += "+"+block[1]+"% block "}
if (eblock[1] > 0){
g1 += "+"+eblock[1]+"% elemental block "
g2 += "+"+eblock[1]+"% elemental block "
g3 += "+"+eblock[1]+"% elemental block "
g4 += "+"+eblock[1]+"% elemental block "}
if (rpt[1] > 0){
g1 += "+"+Math.round(rpt[1]*1.15)+" rage per hour "
g2 += "+"+Math.round(rpt[1]*1.3225)+" rage per hour "
g3 += "+"+Math.round(rpt[1]*1.520875)+" rage per hour "
g4 += "+"+Math.round(rpt[1]*1.74900625)+" rage per hour "}
if (ept[1] > 0){
g1 += "+"+Math.round(ept[1]*1.15)+" exp per hour "
g2 += "+"+Math.round(ept[1]*1.3225)+" exp per hour "
g3 += "+"+Math.round(ept[1]*1.520875)+" exp per hour "
g4 += "+"+Math.round(ept[1]*1.74900625)+" exp per hour "}
if (ramp[1] > 0){
g1 += "+"+ramp[1]+"% rampage "
g2 += "+"+ramp[1]+"% rampage "
g3 += "+"+ramp[1]+"% rampage "
g4 += "+"+ramp[1]+"% rampage "}
if (ps[1] > 0){
g1 += "+"+ps[1]+" % perfect strike "
g2 += "+"+ps[1]+" % perfect strike "
g3 += "+"+ps[1]+" % perfect strike "
g4 += "+"+ps[1]+" % perfect strike "}
if (mr[1] > 0){
g1 += "+"+Math.round(mr[1]*1.15)+" max rage "
g2 += "+"+Math.round(mr[1]*1.3225)+" max rage "
g3 += "+"+Math.round(mr[1]*1.520875)+" max rage "
g4 += "+"+Math.round(mr[1]*1.74900625)+" max rage "}
if (crit[1] > 0){
g1 += "+"+crit[1]+"% critical hit "
g2 += "+"+crit[1]+"% critical hit "
g3 += "+"+crit[1]+"% critical hit "
g4 += "+"+crit[1]+"% critical hit "}
var openslot = document.querySelectorAll("img[src='/images/gemslot2.jpg']");
if (openslot[0] != null){openslot[0].setAttribute(`onmouseover`, `popup(event,'`+g1+`
');`);}
if (openslot[0] != null){openslot[0].setAttribute(`onmouseout`, `kill()`);}
if (openslot[1] != null){openslot[1].setAttribute(`onmouseover`, `popup(event,'`+g2+`
')`);}
if (openslot[1] != null){openslot[1].setAttribute(`onmouseout`, `kill()`);}
if (openslot[2] != null){openslot[2].setAttribute(`onmouseover`, `popup(event,'`+g3+`
')`);}
if (openslot[2] != null){openslot[2].setAttribute(`onmouseout`, `kill()`);}
if (openslot[3] != null){openslot[3].setAttribute(`onmouseover`, `popup(event,'`+g4+`
')`);}
if (openslot[3] != null){openslot[3].setAttribute(`onmouseout`, `kill()`);}
var itemNameColor = document.querySelector("#itemtable > tbody > tr:nth-child(1) > td").outerHTML.replace(/ .*/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 = `
Item Rarity: `+itemRarity+`
Number of Gems: `+gems+`
Mouseover empty gem slot to see gemmed stats
`
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);
})})})})})}
GM_addStyle (`
#sidebar{display:revert !important;}
`)
var menu_1 = ''; if (GM_getValue("menu_1") == undefined){menu_1 = `
MY RGA
MOXXIVISION
MOXXIMOD
LOGOUT `} else {menu_1 = GM_getValue("menu_1")}
var menu_2 = ''; if (GM_getValue("menu_2") == undefined){menu_2 = `
PROFILE
MESSAGES
SKILLS
MY ALLIES
UNDERLINGS
PREFERENCES `} else {menu_2 = GM_getValue("menu_2")}
var menu_3 = ''; if (GM_getValue("menu_3") == undefined){menu_3 = `
BUY ITEMS
SELL ITEMS
SUPPLIES
TRANSFER PNTS `} else {menu_3 = GM_getValue("menu_3")}
var menu_4 = ''; if (GM_getValue("menu_4") == undefined){menu_4 = `
SEARCH
RANKINGS
GLADIATORS
WAR OF ZHUL
TRIAL OF POWER
KOTW
NEWS `} else {menu_4 = GM_getValue("menu_4")}
var menu_5 = ''; if (GM_getValue("menu_5") == undefined){menu_5 = `
CREW HOME
CREW PROFILE
RAID BOSSES
CREW VAULT
GOD STATUS
CREW INVITES
LEAVE CREW `} else {menu_5 = GM_getValue("menu_5")}
var menu_6 = ''; if (GM_getValue("menu_6") == undefined){menu_6 = `
ATTACK LOG
OPEN TOURNEY
PVP BRAWL
BOUNTY BOARD
CREW HITLIST
MY HITLIST `} else {menu_6 = GM_getValue("menu_6")}
var menu_7 = ''; if (GM_getValue("menu_7") == undefined){menu_7 = `
VAULT
BLACKSMITH
ADD AUGMENTS
ITEM TRANSFER
DUNGEONS
CAULDRON `} else {menu_7 = GM_getValue("menu_7")}
var menu_8 = ''; if (GM_getValue("menu_8") == undefined){menu_8 = `
BOOSTERS
QUEST LOG
COLLECTIONS
CHALLENGES `} else {menu_8 = GM_getValue("menu_8")}
var buy_points_link = document.querySelector("#accordionExample > a").outerHTML.replace(``,"").replace(` `,"")
var rganame = buy_points_link.match(/rg_sess_id=.*/i).toString().replace(`">`,"").replace(`rg_sess_id=`,"")
var char_id = document.querySelector("#charselectdropdown").innerHTML.match(/TRIAL OF PWR<\/span>/i) != null){
}
document.querySelector("#sidebar").innerHTML = `
`
$("#id_lookup").on("submit", function(event){
event.preventDefault();
var name = $("#id_input").val();
window.location.href = "profile.php?id="+name;
});
if (document.URL.indexOf("crew_profile") != -1 && error == false) {
GM_addStyle ( `
#crewprofile > tbody > tr > td {vertical-align: top !important;padding:10px !important;}
td.crewstat {width:250px !important;height:60px !important;}
#leftcolumn > tbody > tr > td > div > center > img{height:600px !important;}
#crewlinks > div > center > button{margin:5px !important;}
#leader > a{color:#7D839C !important;}
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
`)
var mycrewmenu = ''; if(document.querySelector("#content-header-row > div:nth-child(2)") != null) {mycrewmenu = document.querySelector("#content-header-row > div:nth-child(2)").innerHTML.replace(/.*<\/h4>/i,"").replace(/.*<\/marquee>/i,"").replace(``,"")}
var crewpro = document.querySelector("#content-header-row")
var cid = crewpro.innerHTML.match(/tradeWith=([0-9]+)/i)[1]
if (document.querySelector("#content-header-row > div.row") != null) {window.location.href=`crew_profile.php?id=`+cid}
var crewpic = crewpro.innerHTML.match(/
[\n\r](.*)/i)[1].replace(/
/i,"").replace(/ width="" height="">/i,"")
var crewname = crewpro.innerHTML.match(/
.*<\/h2>/i)
var crewdesc = crewpro.innerHTML.match(/((.|\n)*)
/i)[1]
var crewupgrades = crewpro.innerHTML.match(/
CREW UPGRADES<\/h5>((.|\n)*)/i)[1].replace(/
(CREW ALLIES<\/h5>(.|\n)*)
[\n\r]
[\n\r]
CREW ENEMIES<\/h5>/i)[1]
var crewenemies = crewpro.innerHTML.match(/(CREW ENEMIES<\/h5>(.|\n)*)/i)[1]
var members = document.querySelector("div.table-responsive").innerHTML.replace("
Rank ","
Rank▾ ").replace("
Name ","
Name▾ ").replace("
Level ","
Lvl▾ ")
var createdon = crewpro.innerHTML.match(/
Created On:<\/b>(.*)<\/li>/i)[1]
var leader = crewpro.innerHTML.match(/Leader:<\/b>(.*)<\/li>/i)[1]
var totmembers = crewpro.innerHTML.match(/Total Members:<\/b>(.*)<\/li>/i)[1]
var avglevel = crewpro.innerHTML.match(/Average Level:<\/b>(.*)<\/li>/i)[1]
GM_addStyle ( `
.propic{background: #0E1726 url(`+crewpic+`); background-repeat: no-repeat;background-size: cover;background-position: center !important;}
`)
var links = '';
if (crewpro.innerHTML.match("Declare an Enemy") != null){links += `+ENEMY `}
if (crewpro.innerHTML.match("Secure Relations") != null){links += `-ENEMY `}
if (crewpro.innerHTML.match("Form Alliance") != null){links += `+ALLY `}
if (crewpro.innerHTML.match("Break Alliance") != null){links += `-ALLY `}
if (mycrewmenu == ""){links += `
RAIDS
TRADE
","").replace("","")+`>TREAS
TROPHY
`}
crewpro.innerHTML = `
LOADING
`+crewallies+`
`+crewenemies+`
`+crewname+`
`+crewdesc+`
`+crewupgrades+`
LOADING
`+members+`
`
if (mycrewmenu == ""){document.querySelector("#crewlinks").innerHTML = `
`+links+` `}
if (mycrewmenu != ""){document.querySelector("#mycrewmenu").innerHTML = `
`+mycrewmenu+` `}
document.querySelector("#click").addEventListener("click", click, false);
function click(){
html2canvas(document.querySelector('#crewstats'), {
letterRendering: 1,
allowTaint: true,
onrendered: function(canvas) {
var ctx = canvas.getContext("2d");
ctx.textBaseline = "top";
ctx.font = "14px sans-serif";
ctx.fillStyle = "rgba(0, 0, 0, 0.7)";
ctx.fillRect(0, 0, 517, 19);
ctx.fillStyle = "#FF0000";
ctx.fillText("IMAGE CREATED WITH MOXXIMOD for OUTWAR: WWW.STUDIOMOXXI.COM", 6, 4);
return Canvas2Image.saveAsPNG(canvas);
}})}
var charsTable = document.querySelector("#content-header-row > div > table > tbody");
var charsTableRows = charsTable.rows.length;
GM_addStyle ( `
.equipment{display:none !important;}
.item{display:none !important;}
.skills{display:none !important;}
.stats{display:none !important;}
td.column{border:0px !important;}
td.column > img {height:30px !important; width:30px !important;}
td.skills > img {height:18px !important; width:18px !important;}
#members{display: none !important;}
#crew_profile_loading{position:fixed !important;bottom:25px !important;left:5px !important;z-index:100 !important;}
#tabbuts{margin-bottom:1rem !important;}
`)
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);}
let memHeader = document.querySelector("#content-header-row > div > table > thead > tr");
let TD1 = document.createElement('th');
TD1.innerHTML = `POWER▾`;
TD1.setAttribute("class","stats column")
insertAfter(TD1, memHeader.lastElementChild);
let TD2 = document.createElement('th');
TD2.innerHTML = `ELE▾`;
TD2.setAttribute("class","stats column")
insertAfter(TD2, memHeader.lastElementChild);
let TD3 = document.createElement('th');
TD3.innerHTML = `ATK▾`;
TD3.setAttribute("class","stats column")
insertAfter(TD3, memHeader.lastElementChild);
let TD4 = document.createElement('th');
TD4.innerHTML = `HP▾`;
TD4.setAttribute("class","stats column")
insertAfter(TD4, memHeader.lastElementChild);
let TD5 = document.createElement('th');
TD5.innerHTML = `CHAOS▾`;
TD5.setAttribute("class","stats column")
insertAfter(TD5, memHeader.lastElementChild);
let TD6 = document.createElement('th');
TD6.innerHTML = `WILDR▾`;
TD6.setAttribute("class","stats column")
insertAfter(TD6, memHeader.lastElementChild);
let TD7 = document.createElement('th');
TD7.innerHTML = `GROWTH▾`;
TD7.setAttribute("class","stats column")
insertAfter(TD7, memHeader.lastElementChild);
let TD8 = document.createElement('th');
TD8.innerHTML = `CORE`;
TD8.setAttribute("class","equipment column")
insertAfter(TD8, memHeader.lastElementChild);
let TD9 = document.createElement('th');
TD9.innerHTML = `HEAD`;
TD9.setAttribute("class","equipment column")
insertAfter(TD9, memHeader.lastElementChild);
let TD10 = document.createElement('th');
TD10.innerHTML = `NECK`;
TD10.setAttribute("class","equipment column")
insertAfter(TD10, memHeader.lastElementChild);
let TD11 = document.createElement('th');
TD11.innerHTML = `WEAP`;
TD11.setAttribute("class","equipment column")
insertAfter(TD11, memHeader.lastElementChild);
let TD12 = document.createElement('th');
TD12.innerHTML = `BODY`;
TD12.setAttribute("class","equipment column")
insertAfter(TD12, memHeader.lastElementChild);
let TD13 = document.createElement('th');
TD13.innerHTML = `SHLD`;
TD13.setAttribute("class","equipment column")
insertAfter(TD13, memHeader.lastElementChild);
let TD14 = document.createElement('th');
TD14.innerHTML = `BELT`;
TD14.setAttribute("class","equipment column")
insertAfter(TD14, memHeader.lastElementChild);
let TD15 = document.createElement('th');
TD15.innerHTML = `PANT`;
TD15.setAttribute("class","equipment column")
insertAfter(TD15, memHeader.lastElementChild);
let TD16 = document.createElement('th');
TD16.innerHTML = `RING`;
TD16.setAttribute("class","equipment column")
insertAfter(TD16, memHeader.lastElementChild);
let TD17 = document.createElement('th');
TD17.innerHTML = `FOOT`;
TD17.setAttribute("class","equipment column")
insertAfter(TD17, memHeader.lastElementChild);
let TD18 = document.createElement('th');
TD18.innerHTML = `GEM`;
TD18.setAttribute("class","item column")
insertAfter(TD18, memHeader.lastElementChild);
let TD19 = document.createElement('th');
TD19.innerHTML = `RUNE`;
TD19.setAttribute("class","item column")
insertAfter(TD19, memHeader.lastElementChild);
let TD20 = document.createElement('th');
TD20.innerHTML = `ORB`;
TD20.setAttribute("class","item column")
insertAfter(TD20, memHeader.lastElementChild);
let TD25 = document.createElement('th');
TD25.innerHTML = `ORB`;
TD25.setAttribute("class","item column")
insertAfter(TD25, memHeader.lastElementChild);
let TD26 = document.createElement('th');
TD26.innerHTML = `ORB`;
TD26.setAttribute("class","item column")
insertAfter(TD26, memHeader.lastElementChild);
let TD21 = document.createElement('th');
TD21.innerHTML = `BADGE`;
TD21.setAttribute("class","item column")
insertAfter(TD21, memHeader.lastElementChild);
let TD22 = document.createElement('th');
TD22.innerHTML = `BOOSTER`;
TD22.setAttribute("class","item column")
insertAfter(TD22, memHeader.lastElementChild);
let TD23 = document.createElement('th');
TD23.innerHTML = `CREST`;
TD23.setAttribute("class","item column")
insertAfter(TD23, memHeader.lastElementChild);
let TD27 = document.createElement('th');
TD27.innerHTML = `CREST`;
TD27.setAttribute("class","item column")
insertAfter(TD27, memHeader.lastElementChild);
let TD28 = document.createElement('th');
TD28.innerHTML = `CREST`;
TD28.setAttribute("class","item column")
insertAfter(TD28, memHeader.lastElementChild);
let TD29 = document.createElement('th');
TD29.innerHTML = `CREST`;
TD29.setAttribute("class","item column")
insertAfter(TD29, memHeader.lastElementChild);
let TD24 = document.createElement('th');
TD24.innerHTML = `SKILLS`;
TD24.setAttribute("class","skills column")
insertAfter(TD24, memHeader.lastElementChild);
var scrape = 0
var totpower = 0
var totele = 0
var totatk = 0
var tothp = 0
var totchaos = 0
var totwilder = 0
var totgrowth = 0
for (let rownum = 1; rownum < (charsTableRows+1); rownum++) {
var profilelinks = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2)").innerHTML.match(/profile\.php\?id=[0-9]+/g)
fetch(profilelinks)
.then(response => response.text())
.then((response) => {
var power = parseInt(response.match(/TOTAL POWER.*[\n\r].*(.*)<\/font><\/b><\/td>/i)[1].replaceAll(",",""))
totpower += power
var eledmg = parseInt(response.match(/ELEMENTAL ATTACK.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",",""))
totele += eledmg
var attack = parseInt(response.match(/ATTACK.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",",""))
totatk += attack
var hp = parseInt(response.match(/HIT POINTS.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",",""))
tothp += hp
var chaos = parseInt(response.match(/CHAOS DAMAGE.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",",""))
totchaos += chaos
var wilderness = parseInt(response.match(/WILDERNESS LEVEL.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",",""))
totwilder += wilderness
var yesterday = parseInt(response.match(/GROWTH YESTERDAY.*[\n\r].*(.*)<\/font>/i)[1].replaceAll(",",""))
totgrowth += yesterday
var core = response.match(/.*[\n\r](
/i) || ["none","none"]
var head = response.match(/
.*[\n\r](
/i) || ["none","none"]
var neck = response.match(/
.*[\n\r](
/i) || ["none","none"]
var weapon = response.match(/
.*[\n\r](
/i) || ["none","none"]
var body = response.match(/
.*[\n\r](
/i) || ["none","none"]
var shield = response.match(/
.*[\n\r](
/i) || ["none","none"]
var pants = response.match(/
.*[\n\r](
/i) || ["none","none"]
var belt = response.match(/
.*[\n\r](
/i) || ["none","none"]
var ring = response.match(/
.*[\n\r](
/i) || ["none","none"]
var foot = response.match(/
.*[\n\r](
/i) || ["none","none"]
var gem = response.match(/
.*[\n\r](
/i) || ["none","none"]
var rune = response.match(/
.*[\n\r](