`+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)
}}
setTimeout(function() {
var crewvault = document.querySelector("#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.vaultitems")
let observer = new MutationObserver(mutationRecords => {
cvcount()
});
observer.observe(crewvault, {
attributes: true,
attributeFilter: ['style'],
subtree: true
});
cvcount();
function cvcount(){
var selected_cnt = (document.querySelector("#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.vaultitems").innerHTML.match(/border: ?2px solid.*?/g) || []).length
var selected_item = '';
if (selected_cnt > 0){
selected_item = document.querySelector("#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.vaultitems").innerHTML.match(/ /g).toString().replaceAll(/class="[^"]*"/g,"").replaceAll(`2px`,`0px`).replaceAll(",","").replaceAll(/ondblclick="[^"]*"/g,"").replaceAll(/id="[^"]*" /g,"").replaceAll(`\(event`,`\(event,`)
}
document.querySelector("#cnt").innerHTML = selected_cnt
if (selected_cnt > 0){
document.querySelector("#selected").innerHTML = selected_item
}
if (selected_cnt == 0){
document.querySelector("#selected").innerHTML = ''
}
if (document.querySelector("#selected").innerHTML.match('Amulet Chest')){
const chestIDsArray = document.querySelector("#selected").innerHTML.match(/Amulet Chest \([0-9]+\)/g)
let chestIDsValues = chestIDsArray.map(element => parseInt(element.match(/\d+/)[0]));
let chestTotal = chestIDsValues.reduce((accumulator, currentValue) => accumulator + currentValue, 0);
document.querySelector("#ammysselected").innerHTML = `TOTAL AMULETS: ${chestTotal}`
}
}},500);
}
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
power
ele
`}
$("body").append(`
CHAR ID
NAME
TELE
CIRC
RAGE
POWER
ELE
`+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])
$("#chaosdata > tbody > tr:nth-child("+row+") > td.chaosdata").eq(4).html(profile.match(/TOTAL POWER.*[\n\r].*(.*)<\/font><\/b><\/td>/i)[1])
$("#chaosdata > tbody > tr:nth-child("+row+") > td.chaosdata").eq(5).html(profile.match(/ELEMENTAL ATTACK.*[\n\r].*(.*)<\/font>/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){
for (let i = 5; i < 23; i++) {
if (document.querySelector("#divTrade > div:nth-child("+i+")").innerHTML.match(/You have no items in this category/i) != null) GM_addStyle (`#divTrade > div:nth-child(`+i+`){display:none !important;}`)
}
}}
if (window.location.search.match(/isCrewTrade=1/i) == null && GM_getValue("tradeeq") == true && document.querySelector("#divTradeTheirOffer") != null) {
var otherName = document.querySelector("#divTradeTheirOffer").innerHTML.match(/(.*?)'s Offer/i)[1]
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 ( `
#content-header-row > h2{background:none !important;}
hr.hr {border-top: 1px solid #ffffff;margin: 3px;}
#content-header-row > div{display: none !important;}
.centered {position: absolute !important;top: 50% !important;left: 50% !important;transform: translate(-50%, -50%) !important;background:#000000 !important;padding: 15px !important;border-radius:15px !important;}
.godstatus > tbody > tr > td > div {font-size: 14px !important;}
.godbox {position: relative !important;text-align: center !important;color: white !important;}
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
#content-header-row > h2 > table > tbody > tr > td > div > img{-webkit-box-shadow: 0 6px 10px 0 rgba(0,0,0,.75),0 1px 18px 0 rgba(0,0,0,.75),0 3px 5px -1px rgba(0,0,0,.75) !important;-moz-box-shadow: 0 6px 10px 0 rgba(0,0,0,.75),0 1px 18px 0 rgba(0,0,0,.75),0 3px 5px -1px rgba(0,0,0,.75) !important;box-shadow: 0 6px 10px 0 rgba(0,0,0,.75),0 1px 18px 0 rgba(0,0,0,.75),0 3px 5px -1px rgba(0,0,0,.75) !important;}
`)
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,"")
var aholy = 0;
var aarcane = 0;
var afire = 0;
var akinetic = 0;
var ashadow = 0;
var achaos = 0;
var aps = 0;
var augLoop = 0;
for (var i = 1; i <= 5; i++) {
fetch("/item_rollover.php?id="+itemID+"_"+i).then(response => response.text()).then((response) => {
aholy += parseInt((response.match(/ \+([0-9]+) tbody > tr:nth-child(2) > td:nth-child(1)");
augLoop += 1;
if (augLoop == 5){
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 Gslot1 = document.querySelector("#itemtable > 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 g1 = '';
var g2 = '';
var g3 = '';
var g4 = '';
if (atk[1] > 0){
g1 += "+"+Math.round(atk[1]*1.15)+" ATK