// ==UserScript==
// @name MoxxiMod 7
// @namespace https://studiomoxxi.com/
// @description one click at a time
// @author Ben
// @match *.outwar.com/*
// @version 7.7
// @grant GM_xmlhttpRequest
// @license MIT
// @run-at document-start
// @grant GM_getResourceText
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_xmlhttpRequest
// @require http://code.jquery.com/jquery-3.6.0.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.min.js
// @require https://greasyfork.org/scripts/460904-canvas2image/code/Canvas2Image.js?version=1155383
// ==/UserScript==
/* globals jQuery, $, waitForKeyElements */
/* globals Canvas2Image, Canvas2Image, waitForKeyElements2 */
/* globals html2canvas, html2canvas, waitForKeyElements3 */
const version = "7.7"
const changelog = `<ul>
<li>Change log will now display in the browser after Moxximod is updated. Once closed, this message won't display again</li>
<li>Welcome message on home screen for new Moxximod users</li>
<li>If there are sessions IDs saved in player preferences, these will auto-populate when using the RGA analyzer tool</li>
<li>Added support for additional Discord integration through the player preferences page. You can save you discord ID to Moxximod which will allow future development of bot-powered featues</li>
<li>Added RGA search feature to Moxxivision and Moxximod tools. Search allows you to enter an item name and view how many of that item is found on every char on your RGA. Using this feature through Moxxivision can search multiple RGAs</li>
<li>Added resist to export RGA feature</li>
<li>Added menu slider with cumulative stats to MV Stats tab</li>
<li>Hard coded Moxximod tool buttons to homepage and myaccount page. This will make updating features easier in future</li>
<li>Fixed bug causing an OW error when manually joining DC raids</li>
</ul>`
GM_addStyle ( `
body img[src*="images/maptile/YAH"] {
}
#sidebar{display:none !important;}
body img[src*="getpoints.webp"] {
display:none !important;
}
.table {
margin-bottom: 0rem !important;
}
.backpackSlot {
background-image: url("https://studiomoxxi.com/moxximod/tile.png") !important;
width: 60px;
height: 60px;
margin: 0px;
position: relative;
}
#accordionExample > li:nth-child(8) > a:hover{
background:#1A1C2D !important;
}
body > center > div.sub-header-container2{
display:none !important;
}
body > center > div.header-container.fixed-top{
display:none !important;
}
body > center > div.sub-header-container{
top:0px !important;
}
#container{
position: relative !important;
top: -70px !important;
}
#sidebar{
position: fixed !important;
top:50px !important;
}
body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li.nav-item.more-dropdown.little-space.hide-on-mob.progress-top{
display:none !important;
}
#toolbaralerts > img,#toolbaralerts > a > img{
margin-right:5px !important;
}
#content > font,#content > div.footer-wrapper{
display:none !important;
}
body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li:nth-child(4){
display:none !important;
}
.fasttravel:hover .destinations{
display: block !important;
}
.destinations {
display: none;
position: absolute;
background-color:#000000;
max-width: 300px;
;
z-index: 1;
font-size: 12px;
margin-top: 0px;
text-align:left !important;
padding-right:15px !important;
}
.destination-img {
height:25px !important;
width:25px !important;
border:2px SOLID #1A1C2D !important;
margin:5px !important;
border-radius:5px !important;
}
#t-text{
height:40px !important;
}
body {
color: #888ea8;
height: 100%;
font-size: .875rem;
background: #131313!important;
overflow-x: hidden;
overflow-y: auto;
letter-spacing: .0312rem;
font-family: nunito,sans-serif;
}
#sidebar{
background:#0E1726 !important;
height:100% !important;
box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);
}
#divProfile > div.widget.mb-2,#dhtmltooltip{
background-image:url('https://studiomoxxi.com/ow_themes/custom_jobs/minimal_01/mm_patern.png') !important;
}
#sessidbox{
margin-left:12px !important;
padding:6px !important;
}
#sessidbox::selection{
background:#888ea8 !important;
color:#000000 !important;
}
body img[src*="gem_green1"] {
content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/gem_green.webp") !important;
width: 13px !important;
}
body img[src*="gem_blue2"] {
content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/gem_blue.webp") !important;
width: 13px !important;
}
body img[src*="gem_red2"] {
content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/gem_red.webp") !important;
width: 13px !important;
}
body img[src*="gem_white2"] {
content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/gem_white.webp") !important;
width: 13px !important;
}
#itemtable>tbody>tr:nth-child(2)>td:nth-child(2)>img:nth-child(8) {
width: 18px !important;
}
#itemtable>tbody>tr:nth-child(2)>td:nth-child(2)>img:nth-child(9) {
width: 18px !important;
}
#itemtable>tbody>tr:nth-child(2)>td:nth-child(2)>img:nth-child(10) {
width: 18px !important;
}
#itemtable>tbody>tr:nth-child(2)>td:nth-child(2)>img:nth-child(11) {
width: 18px !important;
}
#itemtable>tbody>tr:nth-child(2)>td:nth-child(2)>img:nth-child(12) {
width: 18px !important;
}
div.footer-wrapper{
display:none !important;
}
.searchx::placeholder{
font-size:12px !important;
}
.goto{
background: #1B2E4B !important;
border: 1px #1B2E4B SOLID !important;
color: #FFFFFF !important;
padding: 6px !important;
border-radius: 6px !important;
height:37px !important;
margin-right:0.5rem !important;
font-size:16px !important;
}
#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div:nth-child(2) > h5{
margin-bottom:0.5rem !important;
}
.mmplus {
padding: 0.33rem;
padding-left:1rem !important;
padding-right:1rem !important;
text-shadow: none;
font-size: 14px;
color: #3b3f5c;
font-weight: 400;
white-space: normal;
word-wrap: break-word;
touch-action: manipulation;
cursor: pointer;
background-color: #f1f2f3;
box-shadow: 0 5px 20px 0 rgba(0,0,0,.1);
will-change: opacity,transform;
transition: all .3s ease-out;
-webkit-transition: all .3s ease-out;
margin-bottom:0.5rem !important;
margin-top:0.5rem !important;
}
img.robot{
height:19px !important;
width:19px !important;
border:0px !important;
background:transparent !important;
margin-left:5px !important;
}
#sliderload{
display:none !important;
}
.table>tbody tr {
border-radius: 4px;
-webkit-transition: all .1s ease;
transition: all .1s ease;
border-bottom: 1px solid #131313 !important;
background: 0 0!important;
}
.list-group-item {
border: 1px solid #131313 !important;
}
.border-bottom-dashed {
border-bottom: 1px SOLID #131313;
}
.table>thead {
border-top: 1px solid #131313;
border-bottom: 1px solid #131313;
}
#sidebar ul.menu-categories.ps {
border-right: 0px solid #0e1726 !important;
}
.component-card_4 {
border: 0px solid #1b2e4b !important;
}
.widget,.widget-content-area,.widget-chart-one {
-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);
-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);
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);
}
.btn,.input-group,.input-group-prepend,.input-group-text,.btn-info,.btn-group,.dropdown-menu,.btn-primary,.btn-secondary{
box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
-webkit-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
}
.btn:hover,.input-group:hover,.input-group-prepend:hover,.input-group-text:hover,.btn-info:hover,.btn-group:hover,.dropdown-menu:hover,.btn-primary:hover,.btn-secondary:hover{
box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
-webkit-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
}
.ftslider,.form-control,.advinput,.atkn,.goto{
box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
-webkit-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75)
}
* {
scrollbar-width: auto;
scrollbar-color: #050716 #0e1726;
}
*::-webkit-scrollbar {
width: 10px;
}
*::-webkit-scrollbar-track {
background: #0e1726;
}
*::-webkit-scrollbar-thumb {
background-color: #050716;
border-radius: 0px;
border: 3px none #ffffff;
}
*::-webkit-scrollbar-thumb:hover {
background-color: #ffffff;
border-radius: 0px;
border: 3px none #ffffff;
}
.robot_small {
width:17px;
height:17px;
margin-left:0.5rem;
}
.mmplus_ids {
background: #1B2E4B !important;
border: 1px #1B2E4B SOLID !important;
color: #FFFFFF !important;
padding: 6px !important;
border-radius: 6px !important;
margin-right: 0.5rem !important;
font-size: 12px !important;
box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
-webkit-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);
}
`)
mmPref();
function mmPref(){
if (GM_getValue("fixhover") == true){GM_addStyle (`#dhtmltooltip{position:fixed !important;left:195px !important;background-color:#000000 !important;top:60px !important;}`)}
if (GM_getValue("ftmenu") == false){GM_addStyle (`#accordionExample > li.menu.fasttravel{display:none !important;}`)}
if (GM_getValue("wallpaper") != undefined && GM_getValue("bauth_r").match("Full") != null){
var xheight = window.screen.availHeight*1
var xwidth = window.screen.availWidth*1
var wallpaper = GM_getValue("wallpaper")
GM_addStyle (`body > center{background-image: url("`+wallpaper+`") !important;background-size: `+xwidth+`px `+xheight+`px !important;background-attachment: fixed !important;background-position:center !important;background-repeat:no-repeat !important;}`)}
if (GM_getValue("hex_menu") != undefined && GM_getValue("bauth_r").match("Full") != null){
var hex_menu = GM_getValue("hex_menu").replace("#","")
GM_addStyle (`#destination,#sidebar {background: #`+hex_menu+` !important;}`)}
if (GM_getValue("hex_menutext") != undefined && GM_getValue("bauth_r").match("Full") != null){
var hex_menutext = GM_getValue("hex_menutext").replace("#","")
GM_addStyle (`#sidebar ul.menu-categories li.menu>.dropdown-toggle svg,#sidebar ul.menu-categories li.menu>.dropdown-toggle {color: #`+hex_menutext+` !important;}`)}
if (GM_getValue("hex_link") != undefined && GM_getValue("bauth_r").match("Full") != null){
var hex_link = GM_getValue("hex_link").replace("#","")
GM_addStyle (`#content-header-row > div > table > tbody > tr > td > a > font,a {color: #`+hex_link+` !important;}`)}
if (GM_getValue("hex_linkhover") != undefined && GM_getValue("bauth_r").match("Full") != null){
var hex_linkhover = GM_getValue("hex_linkhover").replace("#","")
GM_addStyle (`a:hover {color: #`+hex_linkhover+` !important;}`)}
if (GM_getValue("hex_tool") != undefined && GM_getValue("bauth_r").match("Full") != null){
var hex_tool = GM_getValue("hex_tool").replace("#","")
GM_addStyle (`#rga_dropdown > option,#dropdown,.select2-dropdown,body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li:nth-child(1) > div > span > span.selection > span,body > center > div.sub-header-container > header {background: #`+hex_tool+` !important;}`)}
if (GM_getValue("hex_content") != undefined && GM_getValue("bauth_r").match("Full") != null){
var hex_content = GM_getValue("hex_content").replace("#","")
GM_addStyle (`#sidebar ul.menu-categories li.menu>.dropdown-toggle:hover,.alert-gradient,.component-card_4,.widget,.widget-content,.widget.box, .widget-header {background: #`+hex_content+` !important;}`)}
if (GM_getValue("hex_table") != undefined && GM_getValue("bauth_r").match("Full") != null){
var hex_table = GM_getValue("hex_table").replace("#","")
GM_addStyle (`.wquesttable,.list-group-item,.nav-link.active,.skillsbox,.table {background-color: #`+hex_table+` !important;}`)}
if (GM_getValue("hex_track") != undefined && GM_getValue("hex_slide") != undefined && GM_getValue("bauth_r").match("Full") != null){
var hex_track = GM_getValue("hex_track").replace("#","")
var hex_slide = GM_getValue("hex_slide").replace("#","")
GM_addStyle (`* {scrollbar-color: #`+hex_slide+` #`+hex_track+`;}
*::-webkit-scrollbar-track {background: #`+hex_track+`;}
*::-webkit-scrollbar-thumb {background-color: #`+hex_slide+`;}`)}
if (GM_getValue("hex_text") != undefined && GM_getValue("bauth_r").match("Full") != null && document.URL.indexOf("closedpvp") == -1){
var hex_text = GM_getValue("hex_text").replace("#","")
GM_addStyle (`.list-group.list-group-media,.list-group.list-group-media,.list-group-item,.media,.media-body,h6,h5,h4,h3,.list-group-item,.media,.media-body,p,.table>tbody>tr>td,body,.list-group-item,.bio,.widget,.widget-content-area {color: #`+hex_text+` !important;}`)}
if (GM_getValue("hex_box") != undefined && GM_getValue("bauth_r").match("Full") != null){
var hex_box = GM_getValue("hex_box").replace("#","")
GM_addStyle (`.ftslider,#sidebar ul.menu-categories li.menu>.dropdown-toggle[aria-expanded=true]:not([data-active=true]),.form-control,.advinput,.atkn,.goto {background: #`+hex_box+` !important;border:0px !important;}`)}
if (GM_getValue("hide_atk_icon") == true){GM_addStyle (`body img[src*="images/toolbar/Attacked"] {display:none !important;margin-left:25px !important;}`)}
if (GM_getValue("playerindicator") != undefined){GM_addStyle (`body img[src*="images/maptile/YAH"] {content: url("`+GM_getValue("playerindicator")+`") !important;}`)}
}
if (document.URL.indexOf("plrattack") != -1 && window.self !== window.top) {
GM_addStyle (`
#health{position:fixed !important;top:0px !important;left:0px !important;background:#0E1726 !important;border:1px SOLID !important;padding:10px !important;width:100% !important;-webkit-box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);-moz-box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);}
#sidebar{display:none !important;}
body > center > div.sub-header-container{display:none !important;}
#content-header-row > center > table{display:none !important;}
#result_notice_window{display:none !important;}
#battle_result{background:none !important;}
body{background:#0E1726 !important;padding:50px !important;}
body img[src*="goldcoin"]{display:none !important;}
#content {margin-top: 90px !important;transition: 0s !important;}
#auth_response{display:none !important;}
`)
}
if (document.URL.indexOf("home") != -1 && (document.URL.indexOf("crew_home") == -1)) {
GM_addStyle (`
img.boss,img.rga,img.god,img.mob,img.char,img.raid,img.glad{
width:138px !important;
height:138px !important;
margin: 10px !important;
-moz-box-shadow: 5px 5px 5px #000000;
-webkit-box-shadow: 5px 5px 5px #000000;
box-shadow: 5px 5px 5px #000000;
-moz-border-radius:7px;
-webkit-border-radius:5px;
border-radius:10px;
}
img.boss:hover,img.rga:hover,img.god:hover,img.mob:hover,img.char:hover,img.raid:hover,img.glad:hover{opacity:0.5;}
#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > h3{
display:none !important;
}
#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div:nth-child(1) > div > div > div > div.w-100 > div{
height:164px !important;
}
#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div:nth-child(2) > div > div:nth-child(1) > div > div.w-100 > div{
height:164px !important;
}
#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div:nth-child(2) > div > div:nth-child(3) > div > div.w-100 > div{
height:830px !important;
}
td.rankings{
vertical-align:top !important;
padding:5px !important;
}
#charele, #charpower, #charchaos{
height:345px !important;
width:254px !important;
overflow-y:auto !important;
font-size:10px !important;
}
#charele > li,#charpower > li,#charchaos > li{
padding:0px !important;
}
#expchart{
height:200px !important;
overflow-y:auto !important;
font-size:10px !important;
}
#divSBPost{
display:none !important;
}
.ranking_div{
border:1px SOLID #888ea8;
padding:3px !important;
}
img.loading{
text-align:center !important;
}
div.tiles{
text-align: left !important;
min-height:225px;
}
div.rankings{
text-align: left !important;
height:440px !important;
}
img.loader{
width:80px;
height:80px;
}
#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div > div > div > div{
background:transparent !important;
}
#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div > div > div > div > div.w-100 > div{
border:1px SOLID #888ea8 !important;
-moz-box-shadow: 5px 5px 5px #000000;
-webkit-box-shadow: 5px 5px 5px #000000;
box-shadow: 5px 5px 5px #000000;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
}
#content > div.layout-px-spacing{
background:transparent !important;
box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;
}
#charele,#charpower,#charchaos,#content-header-row > div.col-lg-4.col-md-4.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget.widget-table-one > div.widget-content.text-left > form {
border: 1px SOLID #888ea8 !important;
-moz-box-shadow: 5px 5px 5px #000000;
-webkit-box-shadow: 5px 5px 5px #000000;
box-shadow: 5px 5px 5px #000000;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
`)}
if (document.URL.indexOf("profile") != -1 && document.URL.indexOf("crew_profile") == -1) {
GM_addStyle (`
.layout-spacing{min-width:0px !important;}
#divHeaderName > font{text-transform: uppercase;font-size: 1.5em;font-weight: bold;margin-bottom: 1rem;}
#plinks{text-align:center;padding:0.2em}
#content > div > div:nth-child(1) > div:nth-child(4){text-align:left;}
#content > div > div:nth-child(1){max-width:350px !important;}
#content > div > div:nth-child(2){max-width:800px !important;}
.widget{padding:10px !important;}
#divSkillsCast > img{margin:3px;margin-bottom:20px;width:50px !important;height:50px !important;box-shadow: 0px 0px 3px 3px rgba(000,000,000,0.25);outline: 1px SOLID #303536 !important;outline-offset: -1px !important;}
#UnderlingTable > thead > tr > th{padding:10px;margin:5px;margin-top:10px}
#UnderlingTable > tbody > tr > td{padding:10px;margin:5px}
#content > div > div:nth-child(2) > div:nth-child(5) > div > a > img,#content > div > div:nth-child(2) > div:nth-child(4) > div > a > img{width:110px !important;height:60px !important;}
#content > div > div:nth-child(2) > div:nth-child(5) > div > h5,#content > div > div:nth-child(2) > div:nth-child(4) > div > h5{margin-bottom:1rem !important;}
#pbuttons{margin-top:1rem !important;}
.bg-secondary, .bg-success, .bg-primary, .bg-danger, .bg-warning{background-color: #E7515A !important;border-color: #E7515A ;color: #fff;}
#content > div > div:nth-child(2) > div:nth-child(4) > div > a > img{border:1px SOLID #2C2F30 !important;border-radius:10px !important;}
#content > div > div:nth-child(2) > div:nth-child(5) > div > a > img{border:1px SOLID #2C2F30 !important;border-radius:10px !important;}
`)}
if (document.URL.indexOf("godstatus") != -1 ) {
GM_addStyle ( `
#content-header-row > h2{background:none !important;}
hr.hr {border-top: 1px solid #ffffff;margin: 3px;}
#content-header-row > div{display: none !important;}
.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;}
`)}
document.addEventListener ("DOMContentLoaded", DOM_ContentReady);
function DOM_ContentReady () {
mmPref();
GM_addStyle (`
body {
color: #888ea8;
height: 100%;
font-size: .875rem;
background: #131313;
overflow-x: hidden;
overflow-y: auto;
letter-spacing: .0312rem;
font-family: nunito,sans-serif;
}
`)
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);}
const allgods = ["Ag Nabak the Abomination", "Agnar, Astral Betrayer", "Akkel the Enflamed Warrior", "Amalgamated Apparition", "Ancient Magus Tarkin", "Anguish", "Animated Captain", "Anvilfist", "Archdevil Yirkon", "Arcon, the Arcane Deity", "Balerion, Dragon of Dread", "Banok, Demon of Insanity", "Baron Mu, Dark Rider of the Undead", "Beast of Cards", "Bloodchill the Grizzly", "Bolkor, the Holy Master", "Brutalitar, Lord of the Underworld", "Crane", "Crantos, Defender of Ultimation", "Crolvak, the Fire Master", "Detox", "Dexor, Victor of Veldara", "Dlanod, the Crazed Chancellor", "Dreg nor, Keeper of the Infernal Essence", "Ebliss, Fallen Angel of Despair", "Emperor Neudeus, Controller of the Universe", "Envar, Demon of Lunacy", "Esquin, the Kinetic Master", "Felroc, Overseer of Hellfire", "Firan, the Fire Deity", "Freezebreed, The Frozen Manipulator", "Ganja the Stone Golem", "Garland, The Lord Keeper", "Gnorb", "Gorganus of the Wood", "Great Lord Ganeshan", "Gregov, Knight of the Woods", "Grivvek, Protector of the Brood", "Hackerphage, Protector of the Gateway", "Holgor, the Holy Deity", "Howldroid, Tormentor of the Pit", "Hyrak, Bringer of Nightmares", "Jade Dragonite", "Jazzmin, Maiden of Vitality", "Jorun the Blazing Swordsman", "Karvaz, Lord of Alsayic", "Keeper of Nature", "Kinark, the Kinetic Deity", "King Ashnar, Lord of the Unliving", "Kretok, Descendant of Nature", "Kro Shuk, Doomslayer", "Lacuste of the Swarm", "Lady Ariella", "Lady Chaos, Queen of the Abyss", "Lord Narada", "Lord Sibannac", "Lord Suka", "Lord Varan", "Lord Xordam", "Melt Bane, The Forbidden Demon Dragon", "Mistress of the Sword", "Murderface", "Murfax, Beast of the Caves", "Nafir, God of Desolation", "Nar Zhul, Slayer of All", "Nayark the Mummified Sorcerer", "Nessam", "Noxious Slug", "Numerocure, The Black Messenger of Evil", "Old World Drake", "Ormsul the Putrid", "Pinosis", "Q-SEC Commander", "Quiver, The Renegade", "Raiyar, the Shadow Master", "Rancid, Lord of Thugs", "Rezun, Demon of Madness", "Rillax, Twin of Wisdom", "Rotborn, Eater of the Dead", "Samatha Dark-Soul", "Sarcrina the Astral Priestess", "Shadow", "Shayar, the Shadow Deity", "Sigil, Lich of Woe", "Skarthul the Avenged", "Skybrine The Inescapable", "Slashbrood, Devourer of the Blackness", "Smoot the Yeti", "Straya, the Underworld Ruler", "Sylvanna TorLai", "Synge, The Red Dragon", "Terrance, Rebel of Rallis", "Thanox, Balancer of Chaos", "The Emerald Assassin", "Threk, King of Lords", "Traxodon the Plaguebringer", "Tsort", "Tylos, The Lord Master", "Valzek, Harbinger of Death", "Varsanor, Master of Darkness", "Villax, Twin of Strength", "Viserion, the Necrodragon", "Vitkros, Hydra of the Deep", "Volgan the Living Ironbark", "Wanhiroeaz the Devourer", "Windstrike The Vile", "Xynak, the Arcane Master", "Zertan, The Collector", "Zikkir the Dark Archer"]
var char1 = '';
if (document.querySelector("#charselectdropdown > optgroup:nth-child(1) > option:nth-child(25)") != null)
{char1 = document.querySelector("#charselectdropdown > optgroup:nth-child(1) > option:nth-child(25)").innerHTML}
var charid = document.querySelector("body").innerHTML.match(/<option value="([0-9]+)" selected=""/i)[1]
var server = '';
if (document.querySelector("body").innerHTML.match(/serverid=([0-9]+)/i)[1] == 1){server = "sigil"}
if (document.querySelector("body").innerHTML.match(/serverid=([0-9]+)/i)[1] == 2){server = "torax"}
var serv_no = document.querySelector("body").innerHTML.match(/serverid=([0-9]+)/i)[1];
var sendmobid = "";
var sendmobattacks = "";
var brawlcop_string = "";
var atk10x_charid = "";
var auth = '';
var error = '';
var gotormnum = '';
var raid_go = '';
var ragefloor = 0;
var customrga = '';
var customworld = '';
var customtheme = '';
var exportdata = '';
if (document.querySelector("#content-header-row").innerHTML.match(`/images/ErrorImg.jpg`) != null) {error = true}
if (document.querySelector("#content-header-row").innerHTML.match(`/images/ErrorImg.jpg`) == null) {error = false}
if (GM_getValue("hide_atk_icon") == true){
var toolbar_atkli = document.querySelector("body > center > div.sub-header-container > header > ul.navbar-item.flex-row.ml-auto")
if (toolbar_atkli.innerHTML.match(`images/toolbar/Attacked.png`) != null){
toolbar_atkli.innerHTML = toolbar_atkli.innerHTML.replace(/.*[\n\r].*<img border="0" src="http:\/\/torax\.outwar\.com\/images\/toolbar\/Attacked\.png" alt="Attacked">/i,"")}}
var MMbuttons = `<button class="btn btn-home-tools btn-mm" id="moxxivisionBUT">MOXXIVISION</button>
<button class="btn btn-home-tools btn-mm dcbtnp" id="chaosteleBUT">CHAOS TELEPORTERS</button>
<button class="btn btn-home-tools btn-mm dcbtnp" id="badgeBUT">BADGE REPORT</button>
<button class="btn btn-home-tools btn-mm dcbtnp" id="chaosBUT">CHAOS REPORT</button>
<button class="btn btn-home-tools btn-mm dcbtnp" id="runeBUT">RUNE REPORT</button>
<button class="btn btn-home-tools btn-mm dcbtnp" id="enhancementBUT">ENHANCEMENT REPORT</button>
<button class="btn btn-home-tools btn-mm dcbtnp" id="lingBUT">UNDERLING REPORT</button>
<button class="btn btn-home-tools btn-mm dcbtnp" id="moverBUT">RGA MOVER</button>
<button class="btn btn-home-tools btn-mm dcbtnp" id="skillsBUT">CAST SKILLS AND POTIONS</button>
<button class="btn btn-home-tools btn-mm" id="exportBUT">EXPORT RGA STATS & ITEMS</button>
<button class="btn btn-home-tools btn-mm" id="searchBUT">RGA ITEM SEARCH</button>
<button class="btn btn-home-tools btn-mm" id="analBUT">RGA ANALYZER</button>
<button class="btn btn-home-tools btn-mm" id="settingsBUT">MOXXIMOD SETTINGS</button>`
function buttons(){
GM_addStyle (`
button.dcbtnp {background-image: url("https://studiomoxxi.com/moxximod/bot.png");background-size: 25%;background-repeat: no-repeat;background-position: bottom -22px right -3px;}
button.btn-home-tools{margin-left:3px;margin-right:3px;margin-top:5px;margin-bottom:5px;width:122px;font-size:12px;padding:2px;height:50px;letter-spacing:0.05rem;text-transform: uppercase;}
button.btn-mm{background-color:#1B55E2;color:#FFFFFF;}
div.buttons{text-align:left;}
`)
document.getElementById ("exportBUT").addEventListener("click", exportBUT);
function exportBUT(){exrga(); document.getElementById ("exportBUT").outerHTML = `<button class="btn btn-home-tools btn-mm" id="exportBUT" disabled="disabled" style="opacity:0.5 !important;">EXPORT<br>RGA</button>`}
document.getElementById ("lingBUT").addEventListener("click", lingBUT);
function lingBUT(){task14(); document.getElementById ("lingBUT").outerHTML = `<button class="btn btn-home-tools btn-mm dcbtnpp" id="lingBUT" disabled="disabled" style="opacity:0.5 !important;">RGA UNDERLING<br>REPORT</button>`}
document.getElementById ("badgeBUT").addEventListener("click", badgeBUT);
function badgeBUT(){task10(); document.getElementById ("badgeBUT").outerHTML = `<button class="btn btn-home-tools btn-mm dcbtnp" id="badgeBUT" disabled="disabled" style="opacity:0.5 !important;">RGA BADGE<br>REPORT</button>`}
document.getElementById ("chaosBUT").addEventListener("click", chaosBUT);
function chaosBUT(){task09(); document.getElementById ("chaosBUT").outerHTML = `<button class="btn btn-home-tools btn-mm dcbtnp" id="chaosBUT" disabled="disabled" style="opacity:0.5 !important;">RGA CHAOS<br>REPORT</button>`}
document.getElementById ("runeBUT").addEventListener("click", runeBUT);
function runeBUT(){task19(); document.getElementById ("runeBUT").outerHTML = `<button class="btn btn-home-tools btn-mm dcbtnp" id="runeBUT" disabled="disabled" style="opacity:0.5 !important;">RGA RUNE<br>REPORT</button>`}
document.getElementById ("enhancementBUT").addEventListener("click", enhancementBUT);
function enhancementBUT(){task26(); document.getElementById ("enhancementBUT").outerHTML = `<button class="btn btn-home-tools btn-mm dcbtnp" id="enhancementBUT" disabled="disabled" style="opacity:0.5 !important;">RGA ENHANCEMENT<br>REPORT</button>`}
document.getElementById ("moverBUT").addEventListener("click", rgamove);
document.getElementById ("skillsBUT").addEventListener("click", slider_open);
document.getElementById ("chaosteleBUT").addEventListener("click", chaostele);
document.getElementById ("analBUT").addEventListener("click", analFunction);
document.getElementById ("searchBUT").addEventListener("click", rgasearch);
document.getElementById ("moxxivisionBUT").addEventListener("click", moxxivisionBUT);
function moxxivisionBUT(){window.location.replace("treasury.php?type=vision")}
document.getElementById ("settingsBUT").addEventListener("click", settingsBUT);
function settingsBUT(){window.location.replace("user_preferences")}
}
if (GM_getValue("mmupdate"+version) != true){
GM_addStyle (`
#mmupdate{z-index:9999;position:fixed;top:5%;right:25%;background:#FFFFFF;color:#000000;width:50%;height:90%;border-radius:25px;opacity:0.95;padding:50px;-webkit-box-shadow:0px 0px 11px 2px rgba(0,0,0,0.9);-moz-box-shadow: 0px 0px 11px 2px rgba(0,0,0,0.9);box-shadow: 0px 0px 11px 2px rgba(0,0,0,0.9);font-family: monospace, monospace;font-size:16px;text-align:left;}
#mmupdate_x{position:absolute;top:10px;right:20px;font-size:22px;}
#mmupdate > center > h3{color:#000000 !important;}
`)
$("body").append(`
<div id="mmupdate">
<center><h3>Welcome to Moxximod v`+version+`</h3></center>
UPDATES
<p style="margin-top:10px;">
`+changelog+`
<center><img src="https://studiomoxxi.com/moxximod/moxicon.png">
<div id="mmupdate_x">
<a href="javascript:void(0);" id="mmpopclose"><font color="#000000">CLOSE</a>
</div>
</div>`)
document.querySelector("#mmupdate_x").addEventListener("click", mmupdate_x);
function mmupdate_x(){GM_setValue("mmupdate"+version, true);$("#mmupdate").remove();}
}
function analFunction(){
GM_addStyle (`
#analyzer{text-align:center;background:#0F1314 !important;z-index:9999;height:100%;width:100%;border:10px #2E3A3D SOLID !important;font-size:16px !important;position:fixed;top:0px;left:0px;}
body{overflow: hidden !important;}
#anal_id{font-size:16px !important;margin-top:1rem;background:#2E3A3D;color:#FFFFFF;}
#anal_go{opacity:0.5 !important;}
`);
$("body").append(`
<div id="analyzer"><p style="margin-top:1rem">
LIST SESSION IDS SEPERATED BY COMMAS OR PASTE SESSIONS FROM OWH<br><i>(stored RGAs are preloaded)</i><p>
<textarea name="" id="anal_id" cols="80" rows="10"></textarea><p>
<span id="count"></span><p style="margin-top:1rem">
<button class="btn btn-primary" id="anal_exit">EXIT</button>
<button class="btn btn-primary" id="anal_go">GO</button><p style="margin-top:1rem">
</div>
`)
document.querySelector("#anal_id").value = "loading saved sessions"
if (document.querySelector("#anal_id").value != "no sessions saved"){
document.querySelector("#anal_id").value = GM_getValue("sessioniddropdown").replaceAll(/<option value="home\?rg_sess_id=/g,"").replaceAll(/&suid=[0-9]+&serverid=[0-9]+">.*?<\/option>/g,",").slice(0, -1)
document.getElementById ("anal_go").addEventListener("click", anal_go, false)
GM_addStyle (`#anal_go{opacity:1 !important;}`)
}
$("#anal_id").keyup(function(){
if ($(this).val().match(":") != null){
$("#anal_id").val(function(i, v){
return v.replaceAll(/[A-Za-z0-9]+:/g,"").replaceAll("\n",",").replaceAll(" ","")})};
var count = $(this).val().replaceAll(",","").length/32;
var commas = ($(this).val().match(/,/g)||[]).length;
var spaces = ($(this).val().match(/ /g)||[]).length;
$("#count").text(count+" sessions found");
if(count!=commas+1 || spaces >= 1){
document.querySelector("#count").innerHTML = "<font color=#FF0000><b>incorrect session formatting</b></font>"
document.getElementById ("anal_go").removeEventListener("click", anal_go, false)
GM_addStyle (`#anal_go{opacity:0.5 !important;}`)}
if(document.querySelector("#anal_id").value == "" || document.querySelector("#anal_id").value == "no sessions saved"){
document.querySelector("#count").innerHTML = ""
document.getElementById ("anal_go").addEventListener("click", anal_go, false)
GM_addStyle (`#anal_go{opacity:1 !important;}`)}
if(count==commas+1 && spaces == 0){document.getElementById ("anal_go").addEventListener("click", anal_go, false)
GM_addStyle (`#anal_go{opacity:1 !important;}`)}})
function anal_go(){
analyze = rganame+"|"+server+"|"+document.querySelector("#anal_id").value;
document.querySelector("#anal_go").outerHTML = `<button class="btn btn-primary" id="anal_go" disabled="disabled" style="opacity:0.5 !important">GO</button>`
document.querySelector("#analyzer > p:nth-child(1)").innerHTML = `<img src="https://studiomoxxi.com/moxximod/loading-gif.gif">`
task23()}
document.querySelector("#anal_exit").addEventListener("click", anal_exit);
function anal_exit(){$("#analyzer").remove();}
}
if (document.URL.indexOf("treasury.php?type=vision") != -1 && error == false) {
$("body").append(`
<div id="loading">
<div id="load_buttons">
</div>
</div>`)
var mv_mobs_post = '';
var mv_items_go = '';
var analyze = '';
GM_setValue("origincharid",charid)
var xheight = window.screen.availHeight*1
var xwidth = window.screen.availWidth*1
GM_addStyle (`
#moxxivision > tbody > tr > th > img{width:30px; height:30px;}
#moxxivision > tbody > tr > td > img{width:30px; height:30px;}
#loading{position:fixed;top:0;width:100%;z-index:1111;;height:100%;opacity:1;text-align:center;font-size:72px;padding:10px;color:#c5d4d8;background:#000000;}
#loading{background-image: url("https://studiomoxxi.com/moxximod/claptrap_loading.webp") !important;background-size: `+xwidth+`px `+xheight+`px !important;background-attachment: fixed !important;background-position:center !important;background-repeat:no-repeat !important;}
.main-container{padding: 0 0 0 0 !important;}
#container > div.sidebar-wrapper.sidebar-theme{display:none}
body > center > div.sub-header-container{display:none}
body,body > center {background:#0f1314 !important;}
#content {position: relative;width: 100%;flex-grow: 8;margin-top: 117px;margin-bottom: 0;margin-left: 0px; max-width: 100%;transition: .6s;}
#moxxivision{margin-top:10px;}
#moxxivision > tbody > tr > th{background:#2e3a3d;padding:5px;border:1px SOLID #000000;color:#0f1314;}
#moxxivision > tbody > tr > td{padding:5px;border:1px SOLID #000000;color: #c5d4d8;}
#moxxivision > tbody > tr:nth-child(even){background:#1F2729;}
#moxxivision > tbody > tr:nth-child(odd){background:#171d1f;}
.btn-mv{color:#7a9ba3;background:#0f1314;padding-top:5px;padding-left:7px;padding-right:7px;padding-bottom:4px;border-radius:10px;border:0px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);margin-bottom:9px;}
.btn-mv:hover{opacity:0.75;}
#main_buttons{padding-top:8px;position:fixed;top:0;width:100%;z-index:100;background:#2e3a3d;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);text-align: center;}
#equ_buttons{width:100%;padding-top:9px;position:absolute;top:-50px;text-align: center;background:#1f2729;min-height:50px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);text-align: center;}
#sto_buttons{width:100%;padding-top:9px;position:absolute;top:-50px;text-align: center;background:#1f2729;min-height:50px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);text-align: center;}
#mob_buttons{width:100%;padding-top:9px;position:absolute;top:-90px;text-align: center;background:#1f2729;min-height:50px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);text-align: center;}
#sea_buttons{width:100%;padding-top:9px;position:absolute;top:-90px;text-align: center;background:#1f2729;min-height:50px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);text-align: center;}
#rga_buttons{width:100%;padding-top:9px;position:absolute;top:-50px;text-align: center;background:#1f2729;min-height:50px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);text-align: center;}
#bp_buttons{width:100%;padding-top:9px;position:absolute;top:-50px;text-align: center;background:#1f2729;min-height:50px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);text-align: center;}
#sta_buttons{width:100%;padding-top:9px;position:absolute;top:-50px;text-align: center;background:#1f2729;min-height:50px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);text-align: center;}
#hom_buttons{width:100%;padding-top:9px;position:absolute;top:-50px;text-align: center;background:#1f2729;min-height:50px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);text-align: center;}
td.mobs{text-align: center;}
#auth_response{margin-top:-6px}
p{margin-bottom:0rem !important;}
#moxxivision > tbody > tr:nth-child(1) > th:nth-child(4),#moxxivision > tbody > tr > td:nth-child(4){display:none}
#moxxivision > tbody > tr:nth-child(1) > th:nth-child(1),#moxxivision > tbody > tr > td:nth-child(1){display:none}
#moxxivision > tbody > tr:nth-child(1) > th:nth-child(2),#moxxivision > tbody > tr > td:nth-child(2){display:none}
#tips{font-size:16px;letter-spacing: .2rem;}
#moxxivision{margin-right:20px;margin-left:20px;}
#rgaselect > tbody > tr > td {font-size:14px;border:1px SOLID #404040;padding-left:22px;padding-right:22px;padding-top:5px;padding-bottom:5px;}
#rgaselectdiv{height:300px;overflow-y: auto;width:max-content;}
#mmSearch{margin-right:10px;background:#0F1314;border:0px SOLID;border-radius:3px;color:#FFFFFF;height:30px;padding-left:10px;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);}
`);
var main_buttons = `
<div id="main_buttons">
<button class="btn-mv" id="btn-hom">HOME</button>
<button class="btn-mv" id="btn-sta">STATS</button>
<button class="btn-mv" id="btn-ski">SKILLS</button>
<button class="btn-mv" id="btn-wor">WORLD</button>
<button class="btn-mv" id="btn-equ">EQUIPMENT</button>
<button class="btn-mv" id="btn-bac">BACKPACK</button>
<button class="btn-mv" id="btn-sto">STORAGE</button>
<button class="btn-mv" id="btn-col">COLLECTIONS</button>
<button class="btn-mv" id="btn-mob">ATTACK MOBS</button>
<button class="btn-mv" id="btn-sea">RGA SEARCH</button>
<button class="btn-mv" id="btn-rga">RGA REPORTS</button>
<button class="btn-mv" id="btn-not">NOTES</button>
<button class="btn-mv" id="btn-exi">EXIT</button>
</div><br>
<div id="hom_buttons">
<button class="btn-mv" id="highlight">LEVEL HIGHLIGHTER</button>
<button class="btn-mv" id="supplies">MAX ALL SUPPLIES</button>
</div>
<div id="equ_buttons">
<button class="btn-mv" id="equall">EQUIPPED</button>
<button class="btn-mv" id="eqcore">CORE</button>
<button class="btn-mv" id="eqhead">HEAD</button>
<button class="btn-mv" id="eqneck">NECK</button>
<button class="btn-mv" id="eqweapon">WEAPON</button>
<button class="btn-mv" id="eqbody">BODY</button>
<button class="btn-mv" id="eqshield">SHIELD</button>
<button class="btn-mv" id="eqbelt">BELT</button>
<button class="btn-mv" id="eqpants">PANTS</button>
<button class="btn-mv" id="eqring">RING</button>
<button class="btn-mv" id="eqfoot">FOOT</button>
<button class="btn-mv" id="mrup">MR-UP</button>
<button class="btn-mv" id="btn-gem">GEM</button>
<button class="btn-mv" id="btn-run">RUNE</button>
<button class="btn-mv" id="btn-orb">ORBS</button>
<button class="btn-mv" id="btn-bad">BADGE</button>
<button class="btn-mv" id="btn-boo">BOOSTER</button>
<button class="btn-mv" id="btn-cre">CRESTS</button>
</div>
<div id="bp_buttons">
<button class="btn-mv" id="bp_vault">VAULT SELECTED</button>
<button class="btn-mv" id="bp_equip">EQUIP SELECTED</button>
<button class="btn-mv" id="bp_activate">ACTIVATE SELECTED</button>
<button class="btn-mv" id="bp_refresh">REFRESH BACKPACKS</button>
</div>
<div id="sto_buttons">
<button class="btn-mv" id="quest">QUEST ITEMS</button>
<button class="btn-mv" id="alleq">EQUIPMENT</button>
<button class="btn-mv" id="vault">VAULT</button>
<button class="btn-mv" id="treasury">TREASURY</button>
<button class="btn-mv" id="augments">AUGMENTS</button>
<button class="btn-mv" id="pots_trade">TRADABLE POTS</button>
<button class="btn-mv" id="pots_generic">GENERIC POTS</button>
<button class="btn-mv" id="pots_prem">PREMIUM POTS</button>
<button class="btn-mv" id="pots_rare">RARE POTS</button>
<button class="btn-mv" id="pots_misc">MISC POTS</button>
</div>
<div id="rga_buttons">
<button class="btn-mv" id="mv_chaosreport">CHAOS GEM REPORT</button>
<button class="btn-mv" id="mv_badgereport">BADGE REPORT</button>
<button class="btn-mv" id="mv_runereport">RUNE REPORT</button>
<button class="btn-mv" id="mv_enhancementreport">ENHANCEMENT REPORT</button>
<button class="btn-mv" id="mv_underlingreport">UNDERLING REPORT</button>
</div>
<div id="sea_buttons">
<input type="text" id="mmSearch" class="" size="33" autocomplete="off" placeholder="enter an item name"><button class="btn-mv" id="mmSearchGo" style="color:#FFFFFF">SEARCH</button>
</div>
<div id="sta_buttons">
<span id="stats_slider">test</span>
</div>
<div id="mob_buttons">
<button class="btn-mv" id="skittorx">SKITTOR ✔</button>
<button class="btn-mv" id="roenovx">ROENOV ✔</button>
<button class="btn-mv" id="ergonx">ERGON ✔</button>
<button class="btn-mv" id="defiantx">DEFIANT ✔</button>
<button class="btn-mv" id="enduringx">ENDURING ✔</button>
<button class="btn-mv" id="perpetualx">PERPETUAL ✔</button>
<button class="btn-mv" id="younisx">YOUNIS ✔</button>
<button class="btn-mv" id="ulkorx">ULKOR ✔</button>
<button class="btn-mv" id="kothx">KOTH ✔</button>
<button class="btn-mv" id="pruxx">PRUX ✔</button>
<button class="btn-mv" id="corvokx">CORVOK ✔</button>
<button class="btn-mv" id="hovokx">HOVOK ✔</button>
<button class="btn-mv" id="seepingx">SEEPEING ✔</button>
<button class="btn-mv" id="delugedx">DELUGED ✔</button>
<button class="btn-mv" id="volatilex">VOLATILE ✔</button>
<button class="btn-mv" id="veiledx">VEILED ✔</button>
<button class="btn-mv" id="invaderx">INVADER ✔</button>
<br>
<button class="btn-mv" id="refresh-mobs">REFRESH MOBS</button>
<button class="btn-mv" id="x">SELECT ALL MOBS</button>
<button class="btn-mv" id="atk_mv_mobs">ATTACK ALL SELECTED MOBS</button>
</div>
<div id="testdiv"></div>`
document.querySelector("#load_buttons").innerHTML = `MOXXIVISION<p>
<button class="btn btn-primary" id="option1">MOXXIVISION: THIS RGA</button>
<button class="btn btn-primary" id="option2">MOXXIVISION: SAVED RGAS<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot"></button>
<button class="btn btn-primary" id="option3">RGA ANALYZER</button>
<button class="btn btn-primary" id="load_quit">EXIT</button><p><div id="tips"></div>`
document.getElementById ("option1").addEventListener("click", () => option1())
document.getElementById ("option2").addEventListener("click", () => option2())
document.getElementById ("load_quit").addEventListener("click", exit, false);
function exit(){window.location.replace("home")}
if (GM_getValue("sessioniddropdown") == undefined || GM_getValue("sessioniddropdown") == "no sessions saved"){
document.getElementById("option2").removeEventListener("click", () => option2())
document.getElementById("option2").setAttribute("style","opacity:0.25")
document.getElementById("option2").setAttribute("disabled","disabled")
document.querySelector("#tips").innerHTML = `Moxximod+ subscribers can save RGAs to their RGA list via <a href="user_preferences">player preferences</a><img src="https://studiomoxxi.com/moxximod/bot.png" class="robot">`
}
if (GM_getValue("sessioniddropdown") != undefined && GM_getValue("sessioniddropdown") != "no sessions saved"){
document.querySelector("#option2 > img").setAttribute("onmouseover","statspopup(event,'"+GM_getValue("sessioniddropdown").replaceAll("><","").match(/>.*?</g).toString().replaceAll(">","").replaceAll("<","").replaceAll(",","<br>")+"')")
document.querySelector("#option2 > img").setAttribute("onmouseout","kill()")
}
$("body").append(`<div id="topbuttons"></div>`);
document.querySelector("#topbuttons").innerHTML = main_buttons
var charids = '';
function option1(){
document.getElementById ("option1").removeEventListener("click", () => option1())
document.querySelector("#load_buttons").innerHTML = `<img src="https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif"><div id="tips"></div>`
GM_addStyle (`#moxxivision > tbody > tr:nth-child(1) > th:nth-child(3),#moxxivision > tbody > tr > td:nth-child(3){display:none}`);
var auth = ''; if (GM_getValue("bauth_r").match("Full") != null){auth = "YES"} else {auth = "NO"}
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]+"><strong>PLAY!/g)
for (const match of chars) {charids += `<tr><td>`+match[1]+`</td><td>`+GM_getValue("bauth_rga")+`</td><td>RGANAME</td><td>`+auth+`</td></tr>`}
moxxivision();
})}
function option2(){
document.getElementById ("option1").removeEventListener("click", () => option2())
document.querySelector("#btn-rga").outerHTML = `<div style="display:inline" onmouseenter="statspopup(event,'Not available with multiple RGAs')" onmouseleave="kill()"><button class="btn-mv" id="btn-rga" style="opacity:0.5" disabled="disabled">RGA REPORTS</button></div>`
document.querySelector("#vault").outerHTML = `<div style="display:inline" onmouseenter="statspopup(event,'Not available with multiple RGAs')" onmouseleave="kill()"><button class="btn-mv" id="vault" style="opacity:0.5" disabled="disabled">VAULT</button></div>`
document.querySelector("#treasury").outerHTML = `<div style="display:inline" onmouseenter="statspopup(event,'Not available with multiple RGAs')" onmouseleave="kill()"><button class="btn-mv" id="treasury" style="opacity:0.5" disabled="disabled">TREASURY</button></div>`
document.querySelector("#augments").outerHTML = `<div style="display:inline" onmouseenter="statspopup(event,'Not available with multiple RGAs')" onmouseleave="kill()"><button class="btn-mv" id="augments" style="opacity:0.5" disabled="disabled">AUGMENTS</button></div>`
document.querySelector("#alleq").outerHTML = `<div style="display:inline" onmouseenter="statspopup(event,'Not available with multiple RGAs')" onmouseleave="kill()"><button class="btn-mv" id="alleq" style="opacity:0.5" disabled="disabled">EQUIPMENT</button></div>`
var mvrgas = GM_getValue("sessioniddropdown").match(/rg_sess_id=[0-9A-Za-z]+&/g).toString().replaceAll("rg_sess_id=","").replaceAll("&","")
var tablecontent = GM_getValue("sessioniddropdown").replaceAll(`<option value="home?rg_sess_id=`,"<tr><td>").replaceAll(/&suid=[0-9]+&serverid=[0-9]+">/g,"</td><td>").replaceAll(`</option>`,`</td><td><input type="checkbox" class="thisrga"></td></tr>`).replaceAll(`|`,"")
document.querySelector("#load_buttons > p:nth-child(1)").innerHTML = `
<center><div id="rgaselectdiv">
<table id="rgaselect"><tr><td>SESSION ID</td><td>RGA NAME</td><td><input type="checkbox" id="checkall"></td>`+tablecontent+`</table>
</div><button class="btn btn-primary" id="option2go">LOAD MOXXIVISION<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot"></button>
<button class="btn btn-primary" id="load_quit">EXIT</button>
`
document.getElementById ("load_quit").addEventListener("click", exit, false)
var length = document.querySelector("#rgaselect").rows.length+1
for (var i = 2; i < length; i++){document.querySelector("#rgaselect > tbody > tr:nth-child("+i+") > td:nth-child(3) > input").setAttribute("value",document.querySelector("#rgaselect > tbody > tr:nth-child("+i+") > td:nth-child(1)").innerHTML)}
$('#checkall').click(function(){if (this.checked) {$(".thisrga").attr("checked",true)} else {$(".thisrga").attr("checked",false)}})
document.getElementById ("option2go").addEventListener("click", () => option2go())}
function option2go(){
var rgaselect_ar = []; $("input:checkbox[class=thisrga]:checked").each(function(){rgaselect_ar.push($(this).val());var rgaselect_id = rgaselect_ar.join(",")});
document.querySelector("#load_buttons").innerHTML = `<img src="https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif"><div id="tips"></div>`
GM_xmlhttpRequest({
method: 'POST',
url: 'http://boss.outwar.link:8001/',
data: "IDGrab|"+rganame+"|"+server+"|"+rgaselect_ar.toString(),
headers: {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},
onload: function(r){
sub();
charids = r.response
moxxivision();
}})}
document.getElementById ("option3").addEventListener("click", () => analFunction())
function moxxivision(){
var content = document.querySelector("#content")
GM_addStyle (`
.column{display:none}
.home{display:revert}
#testdiv{position:fixed;top:0px;z-index:10000;}
#rgalist > tbody > tr > td{border:1px #SOLID #FFFFFF;}
img.auth{height:18px !important;width:18px !important;}
`);
content.innerHTML = `
<table id="moxxivision"><tr>
<th>ID</th>
<th>SESS</th>
<th>RGA</th>
<th>AUTH</th>
<th class="freeze">NAME▾</th>
<th class="freeze">LVL▾<span id="math_lvl" class="spans"></span></th>
<th class="home skills column">SKILLS▾</th>
<th class="home column">CLASS▾</th>
<th class="home world column">CREW▾</th>
<th class="home column">EQ▾</th>
<th class="home column">RAGE▾</th>
<th class="home column">TO MAX▾</th>
<th class="home column">GROWTH TODAY▾</th>
<th class="home column">YESTERDAY▾</th>
<th class="home column">STRENGTH▾</th>
<th class="home column">SUPPLIES▾</th>
<th class="stats column">EXPERIENCE▾</th>
<th class="stats column">TO LEVEL▾</th>
<th class="stats column">MAX RAGE▾</th>
<th class="stats column">POWER▾</th>
<th class="stats column">ELE DMG▾</th>
<th class="stats column">ATTACK▾</th>
<th class="stats column">HIT POINTS▾</th>
<th class="stats column">CHAOS▾</th>
<th class="stats column"><font color=#00FFFF>RES▾</th>
<th class="stats column"><font color=#FFFF00>RES▾</th>
<th class="stats column"><font color=#7e01bc>RES▾</th>
<th class="stats column"><font color=#FF0000>RES▾</th>
<th class="stats column"><font color=#00FF00>RES▾</th>
<th class="stats column">WILDERNESS▾</th>
<th class="stats column">SLAYER▾</th>
<th class="skills column">TOME▾</th>
<th class="skills column">ACTIVE</th>
<th class="world column">ROOM▾</th>
<th class="world column">NUM▾</th>
<th class="world column">MOBS▾</th>
<th class="eq core column">CORE</th>
<th class="eq head column">HEAD</th>
<th class="eq neck column">NECK</th>
<th class="eq weapon column">WEP</th>
<th class="eq body column">BODY</th>
<th class="eq shield column">SHIELD</th>
<th class="eq pants column">PANTS</th>
<th class="eq belt column">BELT</th>
<th class="eq ring column">RING</th>
<th class="eq foot column">FOOT</th>
<th class="eq gem column">GEM</th>
<th class="eq rune column">RUNE</th>
<th class="eq orbs column">ORB</th>
<th class="eq orbs column">ORB</th>
<th class="eq orbs column">ORB</th>
<th class="eq bdge column">BADGE</th>
<th class="eq booster column">BOOST</th>
<th class="core column">AUGS</th>
<th class="core column">NAME▾</th>
<th class="core column">MR▾</th>
<th class="core column">ATK▾</th>
<th class="core column">ELE▾</th>
<th class="core column">CHAOS▾</th>
<th class="core column">VILE▾</th>
<th class="core column">HP▾</th>
<th class="core column">RES▾</th>
<th class="core column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="core column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="core column">RPT▾</th>
<th class="core column">EPT▾</th>
<th class="core column">RAMP▾</th>
<th class="core column">CRIT▾</th>
<th class="core column">GEMS▾</th>
<th class="core column">OPEN<br>AUGS▾</th>
<th class="head column">AUGS</th>
<th class="head column">NAME▾</th>
<th class="head column">MR▾</th>
<th class="head column">ATK▾</th>
<th class="head column">ELE▾</th>
<th class="head column">CHAOS▾</th>
<th class="head column">VILE▾</th>
<th class="head column">HP▾</th>
<th class="head column">RES▾</th>
<th class="head column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="head column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="head column">RPT▾</th>
<th class="head column">EPT▾</th>
<th class="head column">RAMP▾</th>
<th class="head column">CRIT▾</th>
<th class="head column">GEMS▾</th>
<th class="head column">OPEN<br>AUGS▾</th>
<th class="neck column">AUGS</th>
<th class="neck column">NAME▾</th>
<th class="neck column">MR▾</th>
<th class="neck column">ATK▾</th>
<th class="neck column">ELE▾</th>
<th class="neck column">CHAOS▾</th>
<th class="neck column">VILE▾</th>
<th class="neck column">HP▾</th>
<th class="neck column">RES▾</th>
<th class="neck column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="neck column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="neck column">RPT▾</th>
<th class="neck column">EPT▾</th>
<th class="neck column">RAMP▾</th>
<th class="neck column">CRIT▾</th>
<th class="neck column">GEMS▾</th>
<th class="neck column">OPEN<br>AUGS▾</th>
<th class="weapon column">AUGS</th>
<th class="weapon column">NAME▾</th>
<th class="weapon column">MR▾</th>
<th class="weapon column">ATK▾</th>
<th class="weapon column">ELE▾</th>
<th class="weapon column">CHAOS▾</th>
<th class="weapon column">VILE▾</th>
<th class="weapon column">HP▾</th>
<th class="weapon column">RES▾</th>
<th class="weapon column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="weapon column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="weapon column">RPT▾</th>
<th class="weapon column">EPT▾</th>
<th class="weapon column">RAMP▾</th>
<th class="weapon column">CRIT▾</th>
<th class="weapon column">GEMS▾</th>
<th class="weapon column">OPEN<br>AUGS▾</th>
<th class="body column">AUGS</th>
<th class="body column">NAME▾</th>
<th class="body column">MR▾</th>
<th class="body column">ATK▾</th>
<th class="body column">ELE▾</th>
<th class="body column">CHAOS▾</th>
<th class="body column">VILE▾</th>
<th class="body column">HP▾</th>
<th class="body column">RES▾</th>
<th class="body column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="body column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="body column">RPT▾</th>
<th class="body column">EPT▾</th>
<th class="body column">RAMP▾</th>
<th class="body column">CRIT▾</th>
<th class="body column">GEMS▾</th>
<th class="body column">OPEN<br>AUGS▾</th>
<th class="shield column">AUGS</th>
<th class="shield column">NAME▾</th>
<th class="shield column">MR▾</th>
<th class="shield column">ATK▾</th>
<th class="shield column">ELE▾</th>
<th class="shield column">CHAOS▾</th>
<th class="shield column">VILE▾</th>
<th class="shield column">HP▾</th>
<th class="shield column">RES▾</th>
<th class="shield column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="shield column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="shield column">RPT▾</th>
<th class="shield column">EPT▾</th>
<th class="shield column">RAMP▾</th>
<th class="shield column">CRIT▾</th>
<th class="shield column">GEMS▾</th>
<th class="shield column">OPEN<br>AUGS▾</th>
<th class="pants column">AUGS</th>
<th class="pants column">NAME▾</th>
<th class="pants column">MR▾</th>
<th class="pants column">ATK▾</th>
<th class="pants column">ELE▾</th>
<th class="pants column">CHAOS▾</th>
<th class="pants column">VILE▾</th>
<th class="pants column">HP▾</th>
<th class="pants column">RES▾</th>
<th class="pants column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="pants column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="pants column">RPT▾</th>
<th class="pants column">EPT▾</th>
<th class="pants column">RAMP▾</th>
<th class="pants column">CRIT▾</th>
<th class="pants column">GEMS▾</th>
<th class="pants column">OPEN<br>AUGS▾</th>
<th class="belt column">AUGS</th>
<th class="belt column">NAME▾</th>
<th class="belt column">MR▾</th>
<th class="belt column">ATK▾</th>
<th class="belt column">ELE▾</th>
<th class="belt column">CHAOS▾</th>
<th class="belt column">VILE▾</th>
<th class="belt column">HP▾</th>
<th class="belt column">RES▾</th>
<th class="belt column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="belt column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="belt column">RPT▾</th>
<th class="belt column">EPT▾</th>
<th class="belt column">RAMP▾</th>
<th class="belt column">CRIT▾</th>
<th class="belt column">GEMS▾</th>
<th class="belt column">OPEN<br>AUGS▾</th>
<th class="ring column">AUGS</th>
<th class="ring column">NAME▾</th>
<th class="ring column">MR▾</th>
<th class="ring column">ATK▾</th>
<th class="ring column">ELE▾</th>
<th class="ring column">CHAOS▾</th>
<th class="ring column">VILE▾</th>
<th class="ring column">HP▾</th>
<th class="ring column">RES▾</th>
<th class="ring column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="ring column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="ring column">RPT▾</th>
<th class="ring column">EPT▾</th>
<th class="ring column">RAMP▾</th>
<th class="ring column">CRIT▾</th>
<th class="ring column">GEMS▾</th>
<th class="ring column">OPEN<br>AUGS▾</th>
<th class="foot column">AUGS</th>
<th class="foot column">NAME▾</th>
<th class="foot column">MR▾</th>
<th class="foot column">ATK▾</th>
<th class="foot column">ELE▾</th>
<th class="foot column">CHAOS▾</th>
<th class="foot column">VILE▾</th>
<th class="foot column">HP▾</th>
<th class="foot column">RES▾</th>
<th class="foot column"><i class="fas fa-shield-alt"></i>▾</th>
<th class="foot column">ELE <i class="fas fa-shield-alt"></i>▾</th>
<th class="foot column">RPT▾</th>
<th class="foot column">EPT▾</th>
<th class="foot column">RAMP▾</th>
<th class="foot column">CRIT▾</th>
<th class="foot column">GEMS▾</th>
<th class="foot column">OPEN<br>AUGS▾</th>
<th class="mrup column">CORE▾</th>
<th class="mrup column">HEAD▾</th>
<th class="mrup column">NECK▾</th>
<th class="mrup column">WEP▾</th>
<th class="mrup column">BODY▾</th>
<th class="mrup column">SHIELD▾</th>
<th class="mrup column">PANTS▾</th>
<th class="mrup column">BELT▾</th>
<th class="mrup column">RING▾</th>
<th class="mrup column">FOOT▾</th>
<th class="gem column">NAME▾</th>
<th class="gem column">GEM LVL▾<span id="math_gemlvl" class="spans"></span></th>
<th class="gem column">CHAOS▾</th>
<th class="gem column">RAMP▾</th>
<th class="gem column">MR▾</th>
<th class="gem column">CRIT▾</th>
<th class="rune column">NAME▾</th>
<th class="rune column">RUNE LVL▾<span id="math_runelvl" class="spans"></span></th>
<th class="rune column">ELE DMG▾</th>
<th class="rune column"><img src=images/items/elementalfuser.jpg onmouseover="popup(event,'Elemental Fuser')" onmouseout="kill()">▾</th>
<th class="rune column"><img src=images/items/specialeleitem1.png onmouseover="popup(event,'Rune Essence')" onmouseout="kill()">▾</th>
<th class="orbs column">NAME▾</th>
<th class="orbs column">NAME▾</th>
<th class="orbs column">NAME▾</th>
<th class="orbs column"><font color=#00FFFF>ELE▾</th>
<th class="orbs column"><font color=#FFFF00>ELE▾</th>
<th class="orbs column"><font color=#7e01bc>ELE▾</th>
<th class="orbs column"><font color=#FF0000>ELE▾</th>
<th class="orbs column"><font color=#00FF00>ELE▾</th>
<th class="orbs column">CHAOS▾</th>
<th class="orbs column">ATK▾</th>
<th class="orbs column">HP▾</th>
<th class="orbs column">MAX RAGE▾</th>
<th class="orbs column">RPT▾</th>
<th class="orbs column">EPT▾</th>
<th class="bdge column">NAME▾</th>
<th class="bdge column">LEVEL▾</th>
<th class="bdge column">ATK▾</th>
<th class="bdge column">ELE▾</th>
<th class="bdge column">HP▾</th>
<th class="booster column">NAME▾</th>
<th class="booster column">EFFECT▾</th>
<th class="booster column">TIME REMAINING▾</th>
<th class="crests column"><font color=#A283EE>CLASS</th>
<th class="crests column"><font color=#A283EE>NAME▾</th>
<th class="crests column"><font color=#A283EE>LVL▾</th>
<th class="crests column"><font color=#DD5431>FRCTY</th>
<th class="crests column"><font color=#DD5431>NAME▾</th>
<th class="crests column"><font color=#DD5431>LVL▾</th>
<th class="crests column"><font color=#369B97>PRESR</th>
<th class="crests column"><font color=#369B97>NAME▾</th>
<th class="crests column"><font color=#369B97>LVL▾</th>
<th class="crests column"><font color=#E3CB02>AFLCT</th>
<th class="crests column"><font color=#E3CB02>NAME▾</th>
<th class="crests column"><font color=#E3CB02>LVL▾</th>
<th class="crests column"><img src=images/items/itemz30.jpg onmouseover="popup(event,'Band of Demonology')" onmouseout="kill()">▾</th>
<th class="crests column"><img src=images/items/itemz16.jpg onmouseover="popup(event,'Amulet of Demonology')" onmouseout="kill()">▾</th>
<th class="crests column"><img src=images/items/itema56.jpg onmouseover="popup(event,'Skull of Demonology')" onmouseout="kill()">▾</th>
<th class="crests column"><img src=images/items/itema22.jpg onmouseover="popup(event,'Archfiend Soul Fragment')" onmouseout="kill()">▾</th>
<th class="backpack column">ITEMS▾</th>
<th class="backpack column">CAP▾</th>
<th class="backpack column">BACKPACK</th>
<th class="quest column"><img src=images/items/chaosore1.jpg onmouseover="popup(event,'Chaos Ore')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/itema22.jpg onmouseover="popup(event,'Archfiend Soul Fragment')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/itemz16.jpg onmouseover="popup(event,'Amulet of Demonology')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/itemz30.jpg onmouseover="popup(event,'Band of Demonology')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/itema56.jpg onmouseover="popup(event,'Skull of Demonology')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/elementalfuser.jpg onmouseover="popup(event,'Elemental Fuser')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/badgeexp.jpg onmouseover="popup(event,'Badge Reputation')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/achievementamulet.jpg onmouseover="popup(event,'Amulet of Achievement')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/questshard.jpg onmouseover="popup(event,'Quest Shard')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/itemz94.gif onmouseover="popup(event,'Drolba Tonic')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/itemz72.jpg onmouseover="popup(event,'Blood Crystal')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/specialeleitem3.png onmouseover="popup(event,'Dimensional Bond')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/adsolofarm1.png onmouseover="popup(event,'Astral Orbstone')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/heartofdeath.png onmouseover="popup(event,'Heart of Death')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/specialeleitem1.png onmouseover="popup(event,'Rune Essence')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/warshard.jpg onmouseover="popup(event,'Summoning Shard')" onmouseout="kill()">▾</th>
<th class="quest column"><img src=images/items/trialinsignia.jpg onmouseover="popup(event,'Trial Insignia')" onmouseout="kill()">▾</th>
<th class="alleq column">EQUIPMENT (MOUSEOVER FOR DETAILS)</th>
<th class="vault column">VAULT (MOUSEOVER FOR DETAILS)</th>
<th class="treasury column">TREASURY (MOUSEOVER FOR DETAILS)▾</th>
<th class="treasury column">LINK</th>
<th class="augs column">AUGMENTS (MOUSEOVER FOR DETAILS)</th>
<th class="tradable column"><img src=images/items/eleresistpotion.png onmouseover="popup(event,'Potion of Elemental Resistance')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/potion28.jpg onmouseover="popup(event,'Kix Potion')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/arelepot.jpg onmouseover="popup(event,'Potion of Amdir')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/Item_SquidberryJuice.jpg onmouseover="popup(event,'Squidberry Juice')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/bubblegum.png onmouseover="popup(event,'Bubble Gum')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/skittles.png onmouseover="popup(event,'Skittles')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/snickersbar.png onmouseover="popup(event,'Snickers Bar')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/starburst.png onmouseover="popup(event,'Starbust')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/mm.png onmouseover="popup(event,'M&Ms')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/reesescups.png onmouseover="popup(event,'Reeses Peanut Butter Cup')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/kitkatbar.png onmouseover="popup(event,'Kit Kat Bar')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/tootsiepop.png onmouseover="popup(event,'Tootsie Pop')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/itemz91.jpg onmouseover="popup(event,'Minor Chaos Philter')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/itemz82.jpg onmouseover="popup(event,'Major Chaos Philter')" onmouseout="kill()">▾</th>
<th class="tradable column"><img src=images/items/starpowerelec.jpg onmouseover="popup(event,'Star Power')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/Pot_NatasVile.jpg onmouseover="popup(event,'Natas Vile')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/Pot_WhiteVile.jpg onmouseover="popup(event,'White Vile')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/Pot_KineticVile.jpg onmouseover="popup(event,'Kinetic Vile')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/Pot_ArcaneVile.jpg onmouseover="popup(event,'Arcane Vile')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/Pot_ShadowVile.jpg onmouseover="popup(event,'Shadow Vile')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/Pot_FireVile.jpg onmouseover="popup(event,'Fire Vile')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/potion_1.gif onmouseover="popup(event,'Zombie Potion 1')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/potion_2.gif onmouseover="popup(event,'Zombie Potion 2')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/potion_3.gif onmouseover="popup(event,'Zombie Potion 3')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/potion_4.gif onmouseover="popup(event,'Zombie Potion 4')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/potion_5.gif onmouseover="popup(event,'Zombie Potion 5')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/potion_6.gif onmouseover="popup(event,'Zombie Potion 6')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/goldpotionzor.gif onmouseover="popup(event,'Remnant Solice Lev 7')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/goldpotionzorleetz.jpg onmouseover="popup(event,'Remnant Solice Lev 8')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/85remnant.jpg onmouseover="popup(event,'Remnant Solice Lev 9')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/90remnant.png onmouseover="popup(event,'Remnant Solice Lev 10')" onmouseout="kill()">▾</th>
<th class="generic column"><img src=images/items/vile_energy_potion.jpg onmouseover="popup(event,'Vile Energy Lev 6')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/items/itemz28.jpg onmouseover="popup(event,'Flask of Endurance')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/items/PotionofEA.jpg onmouseover="popup(event,'Potion of Enraged Alsayic')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/pot5.jpg onmouseover="popup(event,'Sammy Sosa's Special Sauce')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/halloween/PumpkinJuice.gif onmouseover="popup(event,'Pumpkin Juice')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/pot2.jpg onmouseover="popup(event,'Dose of Destruction')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/mushroom.jpg onmouseover="popup(event,'Funny Little Mushroom')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/potion26.jpg onmouseover="popup(event,'Potion of Holy Slaughter')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/items/basicflask1.gif onmouseover="popup(event,'Flask of Burning Souls')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/basicflask4.gif onmouseover="popup(event,'Flask of Conjured Lightning')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/basicflask2.gif onmouseover="popup(event,'Flask of Flaming Death')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/basicflask3.gif onmouseover="popup(event,'Flask of Forbidden Knowledge')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/basicflask5.gif onmouseover="popup(event,'Flask of Super Nova')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/items/lesserolympian.png onmouseover="popup(event,'Olympian Juicebox')" onmouseout="kill()">▾</th>
<th class="premium column"><img src=images/items/2k8.png onmouseover="popup(event,'Olympian Push')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/sugardaddy.png onmouseover="popup(event,'Sugar Daddy')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/whiskeypot.png onmouseover="popup(event,'20 Year Aged Whiskey')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/emblemPotion2.jpg onmouseover="popup(event,'Blazing Holiday Sauce')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/potion25.jpg onmouseover="popup(event,'Evil Scream')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/purepwnagepotion.png onmouseover="popup(event,'Griznix Potion')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/potion24.jpg onmouseover="popup(event,'Marsh Water')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/ReikavonsElixer.jpg onmouseover="popup(event,'Reikavons Elixer')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/wozpotionzor.jpg onmouseover="popup(event,'Zhulian Potion')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/h16_Pot2.png onmouseover="popup(event,'Damned Arcane Shot')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/h16_Pot6.png onmouseover="popup(event,'Damned Element Shot')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/h16_Pot4.png onmouseover="popup(event,'Damned Fire Shot')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/h16_Pot1.png onmouseover="popup(event,'Damned Holy Shot')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/h16_Pot5.png onmouseover="popup(event,'Damned Kinetic Shot')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/h16_Pot3.png onmouseover="popup(event,'Damned Shadow Shot')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/KineticShot.jpg onmouseover="popup(event,'Kinetic Potency')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/vaultpot1.png onmouseover="popup(event,'Vial of Insanity')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/vaultpot2.png onmouseover="popup(event,'Demonic Madness')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/Putrid%20Power%20Clusters.jpg onmouseover="popup(event,'Kombucha')" onmouseout="kill()">▾</th>
<th class="rare column"><img src=images/items/pot_quantumquattro.jpg onmouseover="popup(event,'Quantum Quattro')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/items/masterbrut.jpg onmouseover="popup(event,'Master Brutality Potion')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/items/pot6.jpg onmouseover="popup(event,'Strength Potion')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/items/haste.png onmouseover="popup(event,'Haste Potion')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/items/1kragetonic.png onmouseover="popup(event,'Rage Tonic')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/items/5kragetonic.png onmouseover="popup(event,'Super Rage Tonic')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/items/10kragetonic.png onmouseover="popup(event,'Grand Rage Tonic')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/items/20kragetonic.png onmouseover="popup(event,'Alpha Rage Tonic')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/items/sfury.jpg onmouseover="popup(event,'Spark the Fury')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/rfury.jpg onmouseover="popup(event,'Recharge the Fury')" onmouseout="kill()">▾</th>
<th class="misc column"><img src=images/items/itemz80.gif onmouseover="popup(event,'Quest Experience Potion')" onmouseout="kill()">▾</th>
<th class="collections column" onmouseover="popup(event,'Mass mob kills')" onmouseout="kill()">ANJOU▾</th>
<th class="collections column" onmouseover="popup(event,'Mass item collections')" onmouseout="kill()">REIKAR▾</th>
<th class="collections column" onmouseover="popup(event,'Rare drop collections')" onmouseout="kill()">LORREN▾</th>
<th class="collections column" onmouseover="popup(event,'Power mob kills')" onmouseout="kill()">LUCILE▾</th>
<th class="collections column" onmouseover="popup(event,'Crew DC raids')" onmouseout="kill()">WEIMA▾</th>
<th class="collections column" onmouseover="popup(event,'Crew god raids')" onmouseout="kill()">SOUMA▾</th>
<th class="collections column" onmouseover="popup(event,'Treasury purchase items')" onmouseout="kill()">VANISHA▾</th>
<th class="collections column" onmouseover="popup(event,'Token purchase items')" onmouseout="kill()">DROLBA▾</th>
<th class="collections column" onmouseover="popup(event,'Experience wards')" onmouseout="kill()">QUIBEL▾</th>
<th class="auth column"><img src="https://studiomoxxi.com/moxximod/bot.png" class="auth"></th>
<th class="mobs column">SKITTOR</th>
<th class="mobs column">ROENOV</th>
<th class="mobs column">ERGON</th>
<th class="mobs column">DEFIANT</th>
<th class="mobs column">ENDURING</th>
<th class="mobs column">PERPETUAL</th>
<th class="mobs column">YOUNIS</th>
<th class="mobs column">ULKOR</th>
<th class="mobs column">KOTH</th>
<th class="mobs column">PRUX</th>
<th class="mobs column">CORVOK</th>
<th class="mobs column">HOVOK</th>
<th class="mobs column">SEEPING</th>
<th class="mobs column">DELUGED</th>
<th class="mobs column">VOLATILE</th>
<th class="mobs column">VEILED</th>
<th class="mobs column">INVADER</th>
<th class="mobs column">AEZEL</th>
<th class="notes column">NOTES</th>
<th class="notes column">SAVE</th>
<th class="search column">QUANTITY</th>
<th class="search column">ITEM NAME</th>
</tr>
`+charids+`</table>`
$('th').click(function(){
var table = $(this).parents('table').eq(0)
var rows = table.find('tr:gt(0)').toArray().sort(comparer($(this).index()))
this.asc = !this.asc
if (!this.asc){rows = rows.reverse()}
for (var i = 0; i < rows.length; i++){table.append(rows[i])}})
function comparer(index) {return function(a, b) {var valA = getCellValue(a, index), valB = getCellValue(b, index)
return $.isNumeric(valA) && $.isNumeric(valB) ? valA - valB : valA.toString().localeCompare(valB)}}
function getCellValue(row, index){return $(row).children('td').eq(index).text()}
var count = (document.querySelector("#moxxivision").rows.length)+1
var td = []
for (let row = 2; row < count; row++) {
let rows = document.querySelector("#moxxivision > tbody > tr:nth-child("+row+")")
for(var i01 = 0; i01 < 2; i01++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","freeze")}
for(var i02 = 0; i02 < 10; i02++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column home")}
for(var i03 = 0; i03 < 15; i03++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column stats")}
for(var i04 = 0; i04 < 2; i04++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column skills")}
for(var i05 = 0; i05 < 3; i05++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column world")}
for(var i06 = 0; i06 < 17; i06++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column eq")}
for(var i07 = 0; i07 < 17; i07++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column core")}
for(var i08 = 0; i08 < 17; i08++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column head")}
for(var i09 = 0; i09 < 17; i09++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column neck")}
for(var i10 = 0; i10 < 17; i10++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column weapon")}
for(var i11 = 0; i11 < 17; i11++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column body")}
for(var i12 = 0; i12 < 17; i12++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column shield")}
for(var i13 = 0; i13 < 17; i13++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column pants")}
for(var i14 = 0; i14 < 17; i14++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column belt")}
for(var i15 = 0; i15 < 17; i15++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column ring")}
for(var i16 = 0; i16 < 17; i16++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column foot")}
for(var i35 = 0; i35 < 10; i35++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column mrup")}
for(var i17 = 0; i17 < 6; i17++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column gem")}
for(var i18 = 0; i18 < 5; i18++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column rune")}
for(var i19 = 0; i19 < 14; i19++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column orbs")}
for(var i20 = 0; i20 < 5; i20++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column bdge")}
for(var i21 = 0; i21 < 3; i21++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column booster")}
for(var i22 = 0; i22 < 16; i22++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column crests")}
for(var i23 = 0; i23 < 3; i23++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column backpack")}
for(var i34 = 0; i34 < 17; i34++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column quest")}
for(var i36 = 0; i36 < 1; i36++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column alleq")}
for(var i24 = 0; i24 < 1; i24++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column vault")}
for(var i25 = 0; i25 < 2; i25++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column treasury")}
for(var i26 = 0; i26 < 1; i26++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column augs")}
for(var i27 = 0; i27 < 15; i27++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column tradable")}
for(var i28 = 0; i28 < 17; i28++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column generic")}
for(var i29 = 0; i29 < 14; i29++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column premium")}
for(var i30 = 0; i30 < 19; i30++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column rare")}
for(var i31 = 0; i31 < 10; i31++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column misc")}
for(var i32 = 0; i32 < 9; i32++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column collections")}
for(var i37 = 0; i37 < 1; i37++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column auth")}
for(var i33 = 0; i33 < 18; i33++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column mobs")}
for(var i38 = 0; i38 < 2; i38++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column notes")}
for(var i39 = 0; i39 < 2; i39++){td[row] = document.createElement('td'); insertAfter(td[row], rows.lastElementChild); td[row].setAttribute("class","column search")}
}
hom();
var xaugs = new RegExp(/<span style="color:#00FF00"> \(\+[0-9]+\)<\/span>/g);
document.querySelector("#btn-mob").setAttribute("onmouseover","popup(event,'est "+(count*0.025).toFixed(1)+" minutes to load')")
document.querySelector("#btn-mob").setAttribute("onmouseout","kill()")
document.getElementById ("btn-hom").addEventListener("click", hom_display, false);
function hom(){
supplies_fetch();
document.querySelector("#btn-hom").setAttribute("style","color:#FFFFFF")
$('#loading').show(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("home?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(home => home.text()).then((home) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.freeze").eq(0).html(`<a target="_blank" href="home?rg_sess_id=`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&suid=`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`&serverid=`+serv_no+`">`+profile.match(/<a href="\/send_ow_message\?name=(.*)">/i)[1]+`</a>`)
$("#moxxivision > tbody > tr:nth-child("+row+") > td.freeze").eq(1).html(profile.match(/CHARACTER CLASS.*[\n\r].*<font size="2">Level ([0-9]+)(.*)<\/b><\/td>/i)[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(0).html(home.match(/<span class="t-uppercontent">Level [0-9]+ (.*) .*<\/span>/i)[1]).addClass("skills")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(1).html(profile.match(/CHARACTER CLASS.*[\n\r].*<font size="2">Level ([0-9]+)(.*)<\/b><\/td>/i)[2])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(2).html((profile.match(/<font size="2">(.*) of <a href="\/crew_profile\?id=.*">(.*)<\/a><\/font>/i) || ["","","--"])[2]).addClass("world")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(3).html((new DOMParser().parseFromString(profile, 'text/html').querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(2) > div > div").innerHTML.replace(/<div style="position:absolute; left:10px; top:346px; width:32px; height:32px;text-align:center">((.|\n)*)/i,"").match(/img/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(4).html(home.match(/<span class="toolbar_rage">(.*)<\/span>/i)[1].replaceAll(",","")).addClass("rage")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(5).html(Math.ceil((parseInt(home.match(/Maximum:<\/b><\/td><td>(.*?)<\/td><\/tr>/i)[1].replaceAll(",",""))-parseInt(home.match(/<span class="toolbar_rage">(.*)<\/span>/i)[1].replaceAll(",","")))/parseInt(home.match(/<p class="top-rage" onmouseover="statspopup\(event,'<tr><td><b>Per Turn:<\/b><\/td><td>(.*)<\/td>/i)[1].replaceAll(",",""))))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(6).html(home.match(/<tr><td><b>Growth Today:<\/b><\/td><td>(.*)<\/td><\/tr><tr><td><b>Per Turn/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(7).html(parseInt(profile.match(/GROWTH YESTERDAY.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",","")))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(8).html(profile.match(/role="progressbar" style="width: ([0-9]+)%; height: 8px;"/i)[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.auth").eq(9).html(`<img src="https://studiomoxxi.com/moxximod/bot.png" class="auth">`)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} hom_display();
document.getElementById ("btn-hom").addEventListener("click", hom_display, false); document.getElementById ("btn-hom").removeEventListener("click", hom, false)}
function hom_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #hom_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .home{display:revert}`)}
function supplies_fetch(){
for (let row = 2; row < count; row++) {
fetch("supplies?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(supplies => supplies.text()).then((supplies) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.home").eq(9).html(supplies.match(/<img border="0" src="images\/suppliestriangle\.gif" width="11" height="11">[\n\r](.*)%<\/td>/i)[1])})}}
document.getElementById ("btn-sta").addEventListener("click", sta, false);
function sta(){
document.querySelector("#btn-sta").setAttribute("style","color:#FFFFFF")
$('#loading').show();
var log = 0;
var mr = 0;
for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("home?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(home => home.text()).then((home) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(0).html(profile.match(/TOTAL EXPERIENCE.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(1).html(home.match(/Needed to Level:<\/b><\/td><td>(.*?)<\/td><\/tr><tr>/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(2).html(home.match(/Maximum:<\/b><\/td><td>(.*?)<\/td><\/tr>/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(3).html(profile.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font><\/b><\/td>/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(4).html(profile.match(/ELEMENTAL ATTACK.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(5).html(profile.match(/ATTACK.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(6).html(profile.match(/HIT POINTS.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(7).html(profile.match(/CHAOS DAMAGE.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(8).html(home.match(/onmouseout="kill\(\)">Holy Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i)[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(9).html(home.match(/onmouseout="kill\(\)">Arcane Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i)[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(10).html(home.match(/onmouseout="kill\(\)">Shadow Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i)[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(11).html(home.match(/onmouseout="kill\(\)">Fire Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i)[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(12).html(home.match(/onmouseout="kill\(\)">Kinetic Resist:<\/b>.*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)<\/font>/i)[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(13).html(profile.match(/WILDERNESS LEVEL.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.stats").eq(14).html(profile.match(/GOD SLAYER LEVEL.*[\n\r].*<font size="2">(.*)<\/font>/i)[1])
mr += parseInt(home.match(/Maximum:<\/b><\/td><td>(.*?)<\/td><\/tr>/i)[1].replaceAll(",",""))
document.querySelector("#stats_slider").innerHTML = `NUMBER OF CHARS: <b>`+(count-2)+`</b> | TOTAL MAX RAGE: <b>`+mr.toLocaleString("en-US")+`</b> | AVERAGE MAX RAGE: <b>`+Math.ceil(mr/(count-2)).toLocaleString("en-US")+`</b>`
log += 1; if (log === (count-2)){$('#loading').hide()}
})}) } sta_display();
document.getElementById ("btn-sta").addEventListener("click", sta_display, false); document.getElementById ("btn-sta").removeEventListener("click", sta, false)}
function sta_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sta_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .stats{display:revert}`)}
document.getElementById ("btn-ski").addEventListener("click", ski, false);
function ski(){
document.querySelector("#btn-ski").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("skills_info?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&id=46").then(tome => tome.text()).then((tome) => {
fetch("cast_skills?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(skills => skills.text()).then((skills) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.skills").eq(1).html((tome.match(/<b>You have (no)t learned this skill yet<\/b>/i) || ["","yes"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.skills").eq(2).html(new DOMParser().parseFromString(skills, 'text/html').querySelector("#basic > div.widget-content.widget-content-area > div:nth-child(1) > div:nth-child(1) > div > div").innerHTML)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} ski_display();
document.getElementById ("btn-ski").addEventListener("click", ski_display, false); document.getElementById ("btn-ski").removeEventListener("click", ski, false)}
function ski_display(){close_all(); GM_addStyle (`.column{display:none} .skills{display:revert}`)}
document.getElementById ("btn-wor").addEventListener("click", wor, false);
function wor(){
document.querySelector("#btn-wor").setAttribute("style","color:#FFFFFF")
$('#loading').show(); var log = 0; for (let row = 2; row < count; row++) {
fetch("ajax_changeroomb?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then (world => world.text()).then((world) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.world").eq(1).html(world.match(/"name":"([^"]*)"/i)[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.world").eq(2).html(world.match(/"curRoom":"([0-9]+)"/i)[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.world").eq(3).html(Array.from(world.match(/"roomDetailsNew".*tavernData/i).toString().matchAll(/"name":"[^"]*","level"/g)).toString().replaceAll(/"name":"/g,"").replaceAll(/,"level"/g,"").replaceAll(/"/g,"").replaceAll(",",", "))
log += 1; if (log === (count-2)){$('#loading').hide()}
})} wor_display();
document.getElementById ("btn-wor").addEventListener("click", wor_display, false); document.getElementById ("btn-wor").removeEventListener("click", wor, false)}
function wor_display(){close_all(); GM_addStyle (`.column{display:none} .world{display:revert}`)}
document.getElementById ("equall").addEventListener("click", equ_display, false);
document.getElementById ("btn-equ").addEventListener("click", equ, false);
function equ(){
document.querySelector("#btn-equ").setAttribute("style","color:#FFFFFF")
document.querySelector("#equall").setAttribute("style","color:#FFFFFF")
$('#loading').show(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(0).html((profile.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("core")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(1).html((profile.match(/<div style="position:absolute; left:118px; top:7px; width:62px; height:46px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("head")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(2).html((profile.match(/<div style="position:absolute; left:197px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("neck")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(3).html((profile.match(/<div style="position:absolute; left:45px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("weapon")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(4).html((profile.match(/<div style="position:absolute; left:121px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("body")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(5).html((profile.match(/<div style="position:absolute; left:198px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("shield")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(6).html((profile.match(/<div style="position:absolute; left:118px; top:175px; width:62px; height:75px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("pants")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(7).html((profile.match(/<div style="position:absolute; left:61px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("belt")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(8).html((profile.match(/<div style="position:absolute; left:197px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("ring")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(9).html((profile.match(/<div style="position:absolute; left:118px; top:262px; width:62px; height:66px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("foot")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(10).html((profile.match(/<div style="position:absolute; left:10px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("gem")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(11).html((profile.match(/<div style="position:absolute; left:54px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("rune")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(12).html((profile.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r].*<\/div>/i).toString().match(/(<img.*?>)/g) || ["--","--","--","--"])[0] || "--").addClass("orbs")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(13).html((profile.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r].*<\/div>/i).toString().match(/(<img.*?>)/g) || ["--","--","--","--"])[1] || "--").addClass("orbs")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(14).html((profile.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r].*<\/div>/i).toString().match(/(<img.*?>)/g) || ["--","--","--","--"])[2] || "--").addClass("orbs")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(15).html((profile.match(/<div style="position:absolute; left:214px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("bdge")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.eq").eq(16).html((profile.match(/<div style="position:absolute; left:258px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["","--"])[1]).addClass("booster")
log += 1; if (log === (count-2)){$('#loading').hide()}
})} equ_display();
document.getElementById ("equall").addEventListener("click", equ_display, false); document.getElementById ("equall").removeEventListener("click", equ, false)
document.getElementById ("btn-equ").addEventListener("click", equ_display, false); document.getElementById ("btn-equ").removeEventListener("click", equ, false)}
function equ_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .eq{display:revert}`)}
document.getElementById ("eqcore").addEventListener("click", eqcore, false);
function eqcore(){
document.querySelector("#eqcore").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "core"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqcore_display();
document.getElementById ("eqcore").addEventListener("click", eqcore_display, false); document.getElementById ("eqcore").removeEventListener("click", eqcore, false)}
function eqcore_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .core{display:revert}`)}
document.getElementById ("eqhead").addEventListener("click", eqhead, false);
function eqhead(){
document.querySelector("#eqhead").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:118px; top:7px; width:62px; height:46px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "head"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqhead_display();
document.getElementById ("eqhead").addEventListener("click", eqhead_display, false); document.getElementById ("eqhead").removeEventListener("click", eqhead, false)}
function eqhead_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .head{display:revert}`)}
document.getElementById ("eqneck").addEventListener("click", eqneck, false);
function eqneck(){
document.querySelector("#eqneck").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:197px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "neck"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqneck_display();
document.getElementById ("eqneck").addEventListener("click", eqneck_display, false); document.getElementById ("eqneck").removeEventListener("click", eqneck, false)}
function eqneck_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .neck{display:revert}`)}
document.getElementById ("eqweapon").addEventListener("click", eqweapon, false);
function eqweapon(){
document.querySelector("#eqweapon").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:45px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "weapon"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqweapon_display();
document.getElementById ("eqweapon").addEventListener("click", eqweapon_display, false); document.getElementById ("eqweapon").removeEventListener("click", eqweapon, false)}
function eqweapon_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .weapon{display:revert}`)}
document.getElementById ("eqbody").addEventListener("click", eqbody, false);
function eqbody(){
document.querySelector("#eqbody").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:121px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "body"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqbody_display();
document.getElementById ("eqbody").addEventListener("click", eqbody_display, false); document.getElementById ("eqbody").removeEventListener("click", eqbody, false)}
function eqbody_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .body{display:revert}`)}
document.getElementById ("eqshield").addEventListener("click", eqshield, false);
function eqshield(){
document.querySelector("#eqshield").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:198px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "shield"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqshield_display();
document.getElementById ("eqshield").addEventListener("click", eqshield_display, false); document.getElementById ("eqshield").removeEventListener("click", eqshield, false)}
function eqshield_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .shield{display:revert}`)}
document.getElementById ("eqpants").addEventListener("click", eqpants, false);
function eqpants(){
document.querySelector("#eqpants").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:118px; top:175px; width:62px; height:75px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "pants"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqpants_display();
document.getElementById ("eqpants").addEventListener("click", eqpants_display, false); document.getElementById ("eqpants").removeEventListener("click", eqpants, false)}
function eqpants_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .pants{display:revert}`)}
document.getElementById ("eqbelt").addEventListener("click", eqbelt, false);
function eqbelt(){
document.querySelector("#eqbelt").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:61px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "belt"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqbelt_display();
document.getElementById ("eqbelt").addEventListener("click", eqbelt_display, false); document.getElementById ("eqbelt").removeEventListener("click", eqbelt, false)}
function eqbelt_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .belt{display:revert}`)}
document.getElementById ("eqring").addEventListener("click", eqring, false);
function eqring(){
document.querySelector("#eqring").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:197px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "ring"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqring_display();
document.getElementById ("eqring").addEventListener("click", eqring_display, false); document.getElementById ("eqring").removeEventListener("click", eqring, false)}
function eqring_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .ring{display:revert}`)}
document.getElementById ("eqfoot").addEventListener("click", eqfoot, false);
function eqfoot(){
document.querySelector("#eqfoot").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:118px; top:262px; width:62px; height:66px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(xaugs,"").replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"")
var css = "foot"
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(1).html((response.match(/<img.*?style="border:1px solid #666666;margin:2px;" src="[^"]*" ONMOUSEOVER="itempopup\(event,'[^']*'\)" ONMOUSEOUT="kill\(\)">/g) || "--").toString().replaceAll(/<img src="\/images\/gem.*?\.jpg">/g,"").replaceAll(">,<","><").replaceAll("<br>",""))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(3).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(4).html(parseInt((response.replaceAll(",","").match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(6).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(7).html(parseInt((response.match(/([0-9]+) vile energy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(8).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(9).html(parseInt((response.replaceAll(",","").match(/([0-9]+) Holy Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Arcane Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Shadow Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Fire Resist/i) || [0,0])[1])+parseInt((response.replaceAll(",","").match(/([0-9]+) Kinetic Resist/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(10).html(parseInt((response.match(/([0-9]+) block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(11).html(parseInt((response.match(/([0-9]+) elemental block/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(12).html(parseInt((response.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(13).html(parseInt((response.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(14).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(15).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(16).html((response.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td."+css+"").eq(17).html((response.match(/<img src="\/images\/augslot\.jpg">/g) || []).length)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} eqfoot_display();
document.getElementById ("eqfoot").addEventListener("click", eqfoot_display, false); document.getElementById ("eqfoot").removeEventListener("click", eqfoot, false)}
function eqfoot_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .foot{display:revert}`)}
document.getElementById ("mrup").addEventListener("click", mrup, false);
function mrup(){
document.querySelector("#mrup").setAttribute("style","color:#FFFFFF")
$('#loading').show(); document.querySelector("#tips").innerHTML = "ANALYZING "+((count-2)*10).toLocaleString("en-US")+" ITEMS<br>PLEASE BE PATIENT"; close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(core => core.text()).then((core) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:118px; top:7px; width:62px; height:46px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(head => head.text()).then((head) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:197px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(neck => neck.text()).then((neck) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:45px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(weapon => weapon.text()).then((weapon) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:121px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(body => body.text()).then((body) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:198px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(shield => shield.text()).then((shield) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:118px; top:175px; width:62px; height:75px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(pants => pants.text()).then((pants) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:61px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(belt => belt.text()).then((belt) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:197px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(ring => ring.text()).then((ring) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:118px; top:262px; width:62px; height:66px;text-align:center">.*[\n\r]<img .*<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(foot => foot.text()).then((foot) => {
var mr = []; var rarity = []; var gems = []; var upgrade = []; var array = [core,head,neck,weapon,body,shield,pants,belt,ring,foot]
array.forEach(function (item, index) {mr[item] = parseInt((item.replaceAll(",","").replaceAll(/<span style="color:#00FF00"> \(\+[0-9]+\)<\/span>/g,"").match(/([0-9]+) max rage/i) || [0,1])[1])})
array.forEach(function (item, index) {rarity[item] = (item.match(/<td colspan="2" style="height:20px;font-size:12pt;text-shadow: #47462E 1px 1px 2px;color:#([A-Za-z0-9]+)" align="left">/i) || ["","NOITEM"])[1]})
array.forEach(function (item, index) {gems[item] = (item.match(/<img src="\/images\/gem_.*?\.jpg">/g) || []).length})
array.forEach(function (item, index) {if (rarity[item] == "NOITEM" || gems[item] == 4){upgrade[item] = mr[item]*0.15}
if (rarity[item] == "CCCCCC" && gems[item] == 0){upgrade[item] = 1}
if (rarity[item] == "CCCCCC" && gems[item] == 1){upgrade[item] = 2}
if (rarity[item] == "CCCCCC" && gems[item] == 2){upgrade[item] = 3}
if (rarity[item] == "CCCCCC" && gems[item] == 3){upgrade[item] = 4}
if (rarity[item] == "FFFFFF" && gems[item] == 0){upgrade[item] = 2}
if (rarity[item] == "FFFFFF" && gems[item] == 1){upgrade[item] = 5}
if (rarity[item] == "FFFFFF" && gems[item] == 2){upgrade[item] = 8}
if (rarity[item] == "FFFFFF" && gems[item] == 3){upgrade[item] = 10}
if (rarity[item] == "1eff00" && gems[item] == 0){upgrade[item] = 5}
if (rarity[item] == "1eff00" && gems[item] == 1){upgrade[item] = 10}
if (rarity[item] == "1eff00" && gems[item] == 2){upgrade[item] = 15}
if (rarity[item] == "1eff00" && gems[item] == 3){upgrade[item] = 20}
if (rarity[item] == "ffde5b" && gems[item] == 0){upgrade[item] = 10}
if (rarity[item] == "ffde5b" && gems[item] == 1){upgrade[item] = 20}
if (rarity[item] == "ffde5b" && gems[item] == 2){upgrade[item] = 30}
if (rarity[item] == "ffde5b" && gems[item] == 3){upgrade[item] = 40}
if (rarity[item] == "CA1111" && gems[item] == 0){upgrade[item] = 20}
if (rarity[item] == "CA1111" && gems[item] == 1){upgrade[item] = 40}
if (rarity[item] == "CA1111" && gems[item] == 2){upgrade[item] = 60}
if (rarity[item] == "CA1111" && gems[item] == 3){upgrade[item] = 80}
if (rarity[item] == "0070ff" && gems[item] == 0){upgrade[item] = 30}
if (rarity[item] == "0070ff" && gems[item] == 1){upgrade[item] = 60}
if (rarity[item] == "0070ff" && gems[item] == 2){upgrade[item] = 90}
if (rarity[item] == "0070ff" && gems[item] == 3){upgrade[item] = 120}
if (rarity[item] == "ff8000" && gems[item] == 0){upgrade[item] = 40}
if (rarity[item] == "ff8000" && gems[item] == 1){upgrade[item] = 80}
if (rarity[item] == "ff8000" && gems[item] == 2){upgrade[item] = 120}
if (rarity[item] == "ff8000" && gems[item] == 3){upgrade[item] = 160}
if (rarity[item] == "9000ba" && gems[item] == 0){upgrade[item] = 50}
if (rarity[item] == "9000ba" && gems[item] == 1){upgrade[item] = 100}
if (rarity[item] == "9000ba" && gems[item] == 2){upgrade[item] = 150}
if (rarity[item] == "9000ba" && gems[item] == 3){upgrade[item] = 200}})
array.forEach(function (item, index) {$("#moxxivision > tbody > tr:nth-child("+row+") > td.mrup").eq(index).html((mr[item]*0.15/upgrade[item]).toFixed(0))})
log += 1; if (log === (count-2)){$('#loading').hide(); document.querySelector("#tips").innerHTML = "";}
})})})})})})})})})})})} mrup_display();
document.getElementById ("mrup").addEventListener("click", mrup_display, false); document.getElementById ("mrup").removeEventListener("click", mrup, false)}
function mrup_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .mrup{display:revert}`)}
document.getElementById ("btn-gem").addEventListener("click", gem, false);
function gem(){
document.querySelector("#btn-gem").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:10px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"").replaceAll(",","")
var array = ["--","Paltry Chaos Gem 1","Paltry Chaos Gem 2","Paltry Chaos Gem 3","Paltry Chaos Gem 4","Paltry Chaos Gem 5","Paltry Chaos Gem 6","Paltry Chaos Gem 7","Paltry Chaos Gem 8","Meager Chaos Gem 1","Meager Chaos Gem 2","Meager Chaos Gem 3","Meager Chaos Gem 4","Meager Chaos Gem 5","Meager Chaos Gem 6","Meager Chaos Gem 7","Meager Chaos Gem 8","Smooth Chaos Gem 1","Smooth Chaos Gem 2","Smooth Chaos Gem 3","Smooth Chaos Gem 4","Smooth Chaos Gem 5","Smooth Chaos Gem 6","Smooth Chaos Gem 7","Smooth Chaos Gem 8","Lucid Chaos Gem 1","Lucid Chaos Gem 2","Lucid Chaos Gem 3","Lucid Chaos Gem 4","Lucid Chaos Gem 5","Lucid Chaos Gem 6","Lucid Chaos Gem 7","Lucid Chaos Gem 8","Flawless Chaos Gem 1","Flawless Chaos Gem 2","Flawless Chaos Gem 3","Flawless Chaos Gem 4","Flawless Chaos Gem 5","Flawless Chaos Gem 6","Flawless Chaos Gem 7","Flawless Chaos Gem 8","Embedded Chaos Gem","Claw of Chaos"]
$("#moxxivision > tbody > tr:nth-child("+row+") > td.gem").eq(1).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.gem").eq(2).html(array.indexOf((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.gem").eq(3).html(parseInt((response.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.gem").eq(4).html(parseInt((response.match(/([0-9]+)% rampage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.gem").eq(5).html(parseInt((response.replaceAll(",","").match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.gem").eq(6).html(parseInt((response.match(/([0-9]+)% critical hit/i) || [0,0])[1]))
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} gem_display();
document.getElementById ("btn-gem").addEventListener("click", gem_display, false); document.getElementById ("btn-gem").removeEventListener("click", gem, false)}
function gem_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .gem{display:revert}`)}
document.getElementById ("btn-run").addEventListener("click", run, false);
function run(){
document.querySelector("#btn-run").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:54px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=quest").then(qbp => qbp.text()).then((qbp) => {
response = response.replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"").replaceAll(",","").replaceAll(" Holy","").replaceAll(" Arcane","").replaceAll(" Shadow","").replaceAll(" Fire","").replaceAll(" Kinetic","")
var array = ["Basic Elemental Rune","Infused Rune","Amplified Rune","Primal Elemental Rune","Resplendent Elemental Rune","Mystic Elemental Rune","Astral Rune Stage 1","Astral Rune Stage 2","Astral Rune Stage 3","Astral Rune Stage 4","Astral Rune Stage 5","Elevated Rune Stage 1","Elevated Rune Stage 2","Elevated Rune Stage 3","Elevated Rune Stage 4","Elevated Rune Stage 5","Stellar Rune Stage 1","Stellar Rune Stage 2","Stellar Rune Stage 3","Stellar Rune Stage 4","Stellar Rune Stage 5","Cosmic Rune Stage 1","Cosmic Rune Stage 2","Cosmic Rune Stage 3","Cosmic Rune Stage 4","Cosmic Rune Stage 5","Titanic Rune Stage 1","Titanic Rune Stage 2","Titanic Rune Stage 3","Titanic Rune Stage 4","Titanic Rune Stage 5","Empyreal Rune Stage 1","Empyreal Rune Stage 2","Empyreal Rune Stage 3","Empyreal Rune Stage 4","Empyreal Rune Stage 5","Rune of Creation"]
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rune").eq(1).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rune").eq(2).html(array.indexOf((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rune").eq(3).html(parseInt((response.replaceAll(",","").match(/\+([0-9]+)/i) || [0,0])[1])*5)
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rune").eq(4).html((qbp.match(/data-name="Elemental Fuser" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rune").eq(5).html((qbp.match(/data-name="Rune Essence" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
log += 1; if (log === (count-2)){$('#loading').hide()}
})})})} run_display();
document.getElementById ("btn-run").addEventListener("click", run_display, false); document.getElementById ("btn-run").removeEventListener("click", run, false)}
function run_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .rune{display:revert}`)}
document.getElementById ("btn-orb").addEventListener("click", orb, false);
function orb(){
document.querySelector("#btn-orb").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+((profile.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r].*<\/div>/i).toString().match(/(<img.*?>)/g) || ["?id=0&","?id=0&","?id=0&","?id=0&"])[0] || "?id=0&" ).match(/id=([0-9]+)/i)[1]).then(orb1 => orb1.text()).then((orb1) => {
fetch("item_rollover.php?id="+((profile.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r].*<\/div>/i).toString().match(/(<img.*?>)/g) || ["?id=0&","?id=0&","?id=0&","?id=0&"])[1] || "?id=0&" ).match(/id=([0-9]+)/i)[1]).then(orb2 => orb2.text()).then((orb2) => {
fetch("item_rollover.php?id="+((profile.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r].*<\/div>/i).toString().match(/(<img.*?>)/g) || ["?id=0&","?id=0&","?id=0&","?id=0&"])[2] || "?id=0&" ).match(/id=([0-9]+)/i)[1]).then(orb3 => orb3.text()).then((orb3) => {
orb1 = orb1.replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"").replaceAll(",","")
orb2 = orb2.replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"").replaceAll(",","")
orb3 = orb3.replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"").replaceAll(",","")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(3).html((orb1.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(4).html((orb2.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(5).html((orb3.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(6).html(parseInt((orb1.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((orb2.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1])+parseInt((orb3.replaceAll(",","").match(/([0-9]+) Holy/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(7).html(parseInt((orb1.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((orb2.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1])+parseInt((orb3.replaceAll(",","").match(/([0-9]+) Arcane/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(8).html(parseInt((orb1.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((orb2.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1])+parseInt((orb3.replaceAll(",","").match(/([0-9]+) Shadow/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(9).html(parseInt((orb1.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((orb2.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1])+parseInt((orb3.replaceAll(",","").match(/([0-9]+) Fire/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(10).html(parseInt((orb1.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1])+parseInt((orb2.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1])+parseInt((orb3.replaceAll(",","").match(/([0-9]+) Kinetic/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(11).html(parseInt((orb1.match(/([0-9]+) Chaos/i) || [0,0])[1])+parseInt((orb2.match(/([0-9]+) Chaos/i) || [0,0])[1])+parseInt((orb3.match(/([0-9]+) Chaos/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(12).html(parseInt((orb1.match(/([0-9]+) ATK/i) || [0,0])[1])+parseInt((orb2.match(/([0-9]+) ATK/i) || [0,0])[1])+parseInt((orb3.match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(13).html(parseInt((orb1.match(/([0-9]+) HP/i) || [0,0])[1])+parseInt((orb2.match(/([0-9]+) HP/i) || [0,0])[1])+parseInt((orb3.match(/([0-9]+) HP/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(14).html(parseInt((orb1.match(/([0-9]+) max rage/i) || [0,0])[1])+parseInt((orb2.match(/([0-9]+) max rage/i) || [0,0])[1])+parseInt((orb3.match(/([0-9]+) max rage/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(15).html(parseInt((orb1.match(/([0-9]+) rage per hr/i) || [0,0])[1])+parseInt((orb2.match(/([0-9]+) rage per hr/i) || [0,0])[1])+parseInt((orb3.match(/([0-9]+) rage per hr/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.orbs").eq(16).html(parseInt((orb1.match(/([0-9]+) exp per hr/i) || [0,0])[1])+parseInt((orb2.match(/([0-9]+) exp per hr/i) || [0,0])[1])+parseInt((orb3.match(/([0-9]+) exp per hr/i) || [0,0])[1]))
log += 1; if (log === (count-2)){$('#loading').hide()}
})})})})} orb_display();
document.getElementById ("btn-orb").addEventListener("click", orb_display, false); document.getElementById ("btn-orb").removeEventListener("click", orb, false)}
function orb_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .orbs{display:revert}`)}
document.getElementById ("btn-bad").addEventListener("click", bad, false);
function bad(){
document.querySelector("#btn-bad").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:214px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
response = response.replaceAll(/<span style="color:#[0-9A-Za-z]+">/g,"").replaceAll(",","").replaceAll("Absolution","26")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.bdge").eq(1).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.bdge").eq(2).html((response.match(/align="left">(.*)<\/td><\/tr>/i) || ["","--"])[1].match(/[0-9]+/i) || 0)
$("#moxxivision > tbody > tr:nth-child("+row+") > td.bdge").eq(3).html(parseInt((response.match(/([0-9]+) ATK/i) || [0,0])[1]))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.bdge").eq(4).html(parseInt((response.match(/([0-9]+) Holy/i) || [0,0])[1])*5)
$("#moxxivision > tbody > tr:nth-child("+row+") > td.bdge").eq(5).html(parseInt((response.match(/([0-9]+) HP/i) || [0,0])[1]))
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} bdge_display();
document.getElementById ("btn-bad").addEventListener("click", bdge_display, false); document.getElementById ("btn-bad").removeEventListener("click", bad, false)}
function bdge_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .bdge{display:revert}`)}
document.getElementById ("btn-boo").addEventListener("click", boo, false);
function boo(){
document.querySelector("#btn-boo").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:258px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || "id=0&").toString().match(/id=([0-9]+)/i)[1]).then(response => response.text()).then((response) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.booster").eq(1).html((response.match(/align="left">(.*?)<\/td>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.booster").eq(2).html((response.match(/color:#FFCC00">(.*?)<\/div>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.booster").eq(3).html(response.match(/[0-9]+ minutes/i) || "--")
log += 1; if (log === (count-2)){$('#loading').hide()}
})})} boo_display();
document.getElementById ("btn-boo").addEventListener("click", boo_display, false); document.getElementById ("btn-boo").removeEventListener("click", boo, false)}
function boo_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .booster{display:revert}`)}
document.getElementById ("btn-cre").addEventListener("click", cre, false);
function cre(){
document.querySelector("#btn-cre").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:9px; top:9px; width:60px; height:60px;text-align:center;">.*[\n\r]<img .*/i) || "event,'0'").toString().match(/event,'([0-9]+)'/i)[1]).then(crest1 => crest1.text()).then((crest1) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:83px; top:9px; width:60px; height:60px; text-align:center;">.*[\n\r]<img .*/i) || "event,'0'").toString().match(/event,'([0-9]+)'/i)[1]).then(crest2 => crest2.text()).then((crest2) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:157px; top:9px; width:60px; height:60px; text-align:center;">.*[\n\r]<img .*/i) || "event,'0'").toString().match(/event,'([0-9]+)'/i)[1]).then(crest3 => crest3.text()).then((crest3) => {
fetch("item_rollover.php?id="+(profile.match(/<div style="position:absolute; left:231px; top:9px; width:60px; height:60px; text-align:center;">.*[\n\r]<img .*/i) || "event,'0'").toString().match(/event,'([0-9]+)'/i)[1]).then(crest4 => crest4.text()).then((crest4) => {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=quest").then(qbp => qbp.text()).then((qbp) => {
crest1 = crest1.replaceAll(" of Class","")
crest2 = crest2.replaceAll(" of Ferocity","")
crest3 = crest3.replaceAll(" of Preservation","")
crest4 = crest4.replaceAll(" of Affliction","")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(0).html((profile.match(/<div style="position:absolute; left:9px; top:9px; width:60px; height:60px;text-align:center;">.*[\n\r](<img .*)<\/div>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(1).html((crest1.match(/align="left">(.*?)<\/td>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(2).html((crest1.match(/align="left">(.*?)<\/td>/i) || ["--","--"])[1].replace("Quantum Crest","3").replace("Excelled Crest","2").replace("Crest","1"))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(3).html((profile.match(/<div style="position:absolute; left:83px; top:9px; width:60px; height:60px; text-align:center;">.*[\n\r](<img .*)<\/div>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(4).html((crest2.match(/align="left">(.*?)<\/td>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(5).html((crest2.match(/align="left">(.*?)<\/td>/i) || ["--","--"])[1].replace("Explosive Crest","3").replace("Excelled Crest","2").replace("Crest","1"))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(6).html((profile.match(/<div style="position:absolute; left:157px; top:9px; width:60px; height:60px; text-align:center;">.*[\n\r](<img .*)<\/div>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(7).html((crest3.match(/align="left">(.*?)<\/td>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(8).html((crest3.match(/align="left">(.*?)<\/td>/i) || ["--","--"])[1].replace("Violent Crest","3").replace("Excelled Crest","2").replace("Crest","1"))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(9).html((profile.match(/<div style="position:absolute; left:231px; top:9px; width:60px; height:60px; text-align:center;">.*[\n\r](<img .*)<\/div>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(10).html((crest4.match(/align="left">(.*?)<\/td>/i) || ["--","--"])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(11).html((crest4.match(/align="left">(.*?)<\/td>/i) || ["--","--"])[1].replace("Onslaught Crest","3").replace("Excelled Crest","2").replace("Crest","1"))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(12).html((qbp.match(/data-name="Band of Demonology" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(13).html((qbp.match(/data-name="Amulet of Demonology" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(14).html((qbp.match(/data-name="Skull of Demonology" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.crests").eq(15).html((qbp.match(/data-name="Archfiend Soul Fragment" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
log += 1; if (log === (count-2)){$('#loading').hide()}
})})})})})})} cre_display();
document.getElementById ("btn-cre").addEventListener("click", cre_display, false); document.getElementById ("btn-cre").removeEventListener("click", cre, false)}
function cre_display(){GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #equ_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .crests{display:revert}`)}
document.getElementById ("btn-bac").addEventListener("click", bac, false);
function bac(){
document.querySelector("#btn-bac").setAttribute("style","color:#FFFFFF")
$('#loading').show(); var log = 0; for (let row = 2; row < count; row++) {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=regular").then(backpack => backpack.text()).then((backpack) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.backpack").eq(0).html((new DOMParser().parseFromString(backpack, 'text/html').querySelector("body").innerHTML.match(/src="\/images\//g) || []).length)
$("#moxxivision > tbody > tr:nth-child("+row+") > td.backpack").eq(1).html(new DOMParser().parseFromString(backpack, 'text/html').querySelector("body").innerHTML.match(/data-maxval="([0-9]+)"/i)[1])
if ((new DOMParser().parseFromString(backpack, 'text/html').querySelector("body").innerHTML.match(/src="\/images\//g) || []).length >= 100){
$("#moxxivision > tbody > tr:nth-child("+row+") > td.backpack").eq(2).html("will not display backpacks containing 100+ items")}
if ((new DOMParser().parseFromString(backpack, 'text/html').querySelector("body").innerHTML.match(/src="\/images\//g) || []).length <= 99){
$("#moxxivision > tbody > tr:nth-child("+row+") > td.backpack").eq(2).html(new DOMParser().parseFromString(backpack, 'text/html').querySelector("body").innerHTML.replaceAll(/<div class="row ml-0 mr-0 justify-content-left backack-row">/g,"").replaceAll(/<div class="backpackSlot d-flex align-items-center justify-content-center btn-group">/g,"").replaceAll(/<\/div>/g,"").replaceAll("makemenu","").replaceAll(/id="item[0-9]+"/g,"").replaceAll(/data-iid=/g,"id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&"+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&"))}
log += 1; if (log === (count-2)){$('#loading').hide()}
})} bac_display();
document.getElementById ("btn-bac").addEventListener("click", bac_display, false); document.getElementById ("btn-bac").removeEventListener("click", bac, false)}
function bac_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #bp_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .backpack{display:revert}`)}
document.getElementById ("quest").addEventListener("click", quest_display, false);
document.getElementById ("btn-sto").addEventListener("click", quest, false);
function quest(){
document.querySelector("#btn-sto").setAttribute("style","color:#FFFFFF")
document.querySelector("#quest").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=quest").then(qbp => qbp.text()).then((qbp) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(0).html((qbp.match(/data-name="Chaos Ore" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(1).html((qbp.match(/data-name="Archfiend Soul Fragment" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(2).html((qbp.match(/data-name="Amulet of Demonology" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(3).html((qbp.match(/data-name="Band of Demonology" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(4).html((qbp.match(/data-name="Skull of Demonology" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(5).html((qbp.match(/data-name="Elemental Fuser" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(6).html((qbp.match(/data-name="Badge Reputation" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(7).html((qbp.match(/data-name="Amulet of Achievement" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(8).html((qbp.match(/data-name="Quest Shard" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(9).html((qbp.match(/data-name="Drolba Tonic" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(10).html((qbp.match(/data-name="Blood Crystal" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(11).html((qbp.match(/data-name="Dimensional Bond" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(12).html((qbp.match(/data-name="Astral Orbstone" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(13).html((qbp.match(/data-name="Heart of Death" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(14).html((qbp.match(/data-name="Rune Essence" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(15).html((qbp.match(/data-name="Summoning Shard" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.quest").eq(16).html((qbp.match(/data-name="Trial Insignia" data-itemqty="(.*)" data-itemid/i) || [0,0])[1])
log += 1; if (log === (count-2)){$('#loading').hide()}
})} quest_display();
document.getElementById ("quest").addEventListener("click", quest_display, false); document.getElementById ("quest").removeEventListener("click", quest, false)
document.getElementById ("btn-sto").addEventListener("click", quest_display, false); document.getElementById ("btn-sto").removeEventListener("click", quest, false)}
function quest_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .quest{display:revert}`)}
document.getElementById("alleq").addEventListener("click", alleq, false);
function alleq(){
document.querySelector("#alleq").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("augmentequip.php?suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(eq => eq.text()).then((eq) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.alleq").eq(0).html(new DOMParser().parseFromString(eq, 'text/html').querySelector("#content-header-row > div > div:nth-child(2) > div:nth-child(1) > div").innerHTML.replaceAll(/<div class="divItem" id="item-[0-9]+" onclick="updateItemDiv\([0-9]+\)">/g,"").replaceAll(/<\/div>/g,"").replaceAll(/<h4>[a-zA-Z]+<\/h4>/g,""))
log += 1; if (log === (count-2)){$('#loading').hide()}
})} alleq_display();
document.querySelector("#alleq").addEventListener("click", alleq_display); document.querySelector("#alleq").removeEventListener("click", alleq)}
function alleq_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .alleq{display:revert}`)}
document.getElementById ("vault").addEventListener("click", vault, false);
function vault(){
document.querySelector("#vault").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("vault.php?suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(vault => vault.text()).then((vault) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.vault").eq(0).html((new DOMParser().parseFromString(vault, 'text/html').querySelector("#content-header-row > form > div.row.w-100 > div.col-12.col-lg-6.mt-3.mt-lg-0 > div:nth-child(2) > table") || new DOMParser().parseFromString(vault, 'text/html').querySelector("#accordionExample > p:nth-child(13)")).innerHTML
.replaceAll(/<input type="checkbox" class="itemCheckbox itemId_[0-9]+" itemid="[0-9]+" name="remove\[]" value="[0-9]+">Select/g,"")
.replaceAll(/<tbody><tr><td align="center" valign="bottom" style="padding:2px;" width="25%">/g,"")
.replaceAll(/<a href="itemlink\?id=[0-9]+&owner=[0-9]+">/g,"")
.replaceAll(/<br>/g,"")
.replaceAll("New: Save up to 10%!","Your vault is currently empty.")
.replaceAll(/.*<tr>.*/g,"")
.replaceAll(/.*<td>.*/g,"")
.replaceAll(/.*<tbody>.*/g,""))
log += 1; if (log === (count-2)){$('#loading').hide()}
})} vault_display();
document.querySelector("#vault").removeEventListener("click", vault); document.querySelector("#vault").addEventListener("click", vault_display)}
function vault_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .vault{display:revert}`)}
document.getElementById ("treasury").addEventListener("click", treasury, false);
function treasury(){
document.querySelector("#treasury").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("mytreasury.php?suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(treas => treas.text()).then((treas) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.treasury").eq(0).html(new DOMParser().parseFromString(treas, 'text/html').querySelector("#content-header-row > div.col-12.col-xl-9.pl-0.pr-0 > div.col-xl-12.col-lg-12.col-sm-12.layout-spacing > div > form").innerHTML
.replaceAll(/<td colspan="2" style="padding: 5px; font-size:8pt;">[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*/g,"")
.replaceAll(`<table style="border:1px solid black;background-color:#000000;max-width:700px" width="100%" cellspacing="0" cellpadding="2" border="0">`,"")
.replaceAll(`<tbody><tr>`,"")
.replaceAll(`<td colspan="3" align="center">`,"")
.replaceAll(/<b>Selling [0-9]+ \/ [0-9]+ Allowed<\/b><a href="\/treasury\?search_for=Items\+for\+Sale"><img src="\/images\/button_increasestat\.gif" hspace="2" border="0" align="absmiddle"><\/a>/g,"")
.replaceAll(/<th align="[a-zA-Z]+">[a-zA-Z]+<\/th>/g,"")
.replaceAll(/<tr style="background-color:#[A-Za-z0-9]+;">/g,"")
.replaceAll(`<td align="left">`,"")
.replaceAll(`<td width="15"></td>`,"")
.replaceAll(/<td align="right"><input style="text-align:right;" class="my-1 form-control" type="text" size="12" name="prices\[[0-9]+]" value="/g," - ")
.replaceAll(`"></td>`,"")
.replaceAll(/img src="[^"]*" style="max-width:35px;max-height:35px"/g,"p")
.replaceAll(/<td width="15" align="center"><a href="mytreasury\?rem=[0-9]+"><svg xmlns="http:\/\/www\.w3\.org\/2000\/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"><\/line><line x1="6" y1="6" x2="18" y2="18"><\/line><\/svg><\/a><\/td>/g,"")
.replaceAll(/<\/td>[\n\r]<\/tr>[\n\r]<tr>[\n\r]<td colspan="2" style="padding: 5px; font-size:8pt;">.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*/g,"")
.replaceAll(/<table width="100%" border="0" style="border:1px solid black;background-color:#000000;max-width:700px" cellpadding="2" cellspacing="0">[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*/g,"")
.replaceAll(/<tr style="background-color:#[0-9]+;">/g,"")
.replaceAll(/<td align="right"><input style="text-align:right;" class="my-1 form-control" type="text" size="12" name="prices\[[0-9]+]" value="/g," - ")
.replaceAll(/"><\/td>[\n\r]<\/tr>/g,"")
.replaceAll(/<td align="center" width="15"><a href="mytreasury\?rem=[0-9]+"><svg xmlns="http:\/\/www\.w3\.org\/2000\/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"><\/line><line x1="6" y1="6" x2="18" y2="18"><\/line><\/svg><\/a><\/td>/g,"<br>")
.replaceAll(/">[\n\r]<\/tbody><\/table>/g,"")
.replaceAll(/"><\/td>[\n\r] <\/tr>/g,"")
.replaceAll(/<table width="100%" border="0" style="border:1px solid black;background-color:#000000;max-width:700px" cellpadding="2" cellspacing="0">[\n\r].*[\n\r].*[\n\r].*/g,"No items for sale")
.replaceAll("<br>","")
.replaceAll(/<img align="absmiddle" src=".*" style="max-width:35px;max-height:35px"/g,"<p") )
$("#moxxivision > tbody > tr:nth-child("+row+") > td.treasury").eq(1).html(`<a target="_blank" href="mytreasury?rg_sess_id=`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&suid=`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`&serverid=`+serv_no+`">Go to treasury</a>`)
log += 1; if (log === (count-2)){$('#loading').hide()}
})} treasury_display();
document.querySelector("#treasury").removeEventListener("click", treasury); document.querySelector("#treasury").addEventListener("click", treasury_display)}
function treasury_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .treasury{display:revert}`)}
document.getElementById ("augments").addEventListener("click", augments, false);
function augments(){
document.querySelector("#augments").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("augmentequip.php?suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(augs => augs.text()).then((augs) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.augs").eq(0).html(new DOMParser().parseFromString(augs, 'text/html').querySelector("#content-header-row > div > div:nth-child(2) > div:nth-child(2) > div:nth-child(2)").innerHTML.replaceAll(/<div id="augment-[0-9]+">/g,"").replaceAll(/<\/div>/g,"").replaceAll("You have no augments in this category","").replaceAll(/<h[0-9]+>.*/g,""))
log += 1; if (log === (count-2)){$('#loading').hide()}
})} augs_display();
document.getElementById ("augments").removeEventListener("click", augments, false); document.getElementById ("augments").addEventListener("click", augs_display, false)}
function augs_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .augs{display:revert}`)}
document.getElementById ("pots_trade").addEventListener("click", pots_trade, false);
function pots_trade(){
document.querySelector("#pots_trade").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=potion").then(pots => pots.text()).then((pots) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(0).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Potion of Elemental Resistance"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(1).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Kix Potion"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(2).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Potion of Amdir"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(3).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Squidberry Juice"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(4).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Bubble Gum"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(5).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Skittles"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(6).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Snickers Bar"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(7).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Starburst"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(8).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="M&Ms"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(9).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Reeses Peanut Butter Cup"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(10).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Kit Kat Bar"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(11).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Tootsie Pop"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(12).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Minor Chaos Philter"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(13).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Major Chaos Philter"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.tradable").eq(14).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Star Power"/i) || [0,0])[1])
log += 1; if (log === (count-2)){$('#loading').hide()}
})} tradable_display();
document.getElementById ("pots_trade").removeEventListener("click", pots_trade, false); document.getElementById ("pots_trade").addEventListener("click", tradable_display, false)}
function tradable_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .tradable{display:revert}`)}
document.getElementById("pots_generic").addEventListener("click", pots_generic, false);
function pots_generic(){
document.querySelector("#pots_generic").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=potion").then(pots => pots.text()).then((pots) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(0).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Natas Vile"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(1).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="White Vile"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(2).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Kinetic Vile"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(3).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Arcane Vile"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(4).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Shadow Vile"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(5).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Fire Vile"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(6).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Zombie Potion 1"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(7).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Zombie Potion 2"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(8).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Zombie Potion 3"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(9).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Zombie Potion 4"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(10).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Zombie Potion 5"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(11).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Zombie Potion 6"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(12).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Remnant Solice Lev 7"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(13).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Remnant Solice Lev 8"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(14).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Remnant Solice Lev 9"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(15).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Remnant Solice Lev 10"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.generic").eq(16).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Vile Energy Lev 6"/i) || [0,0])[1])
log += 1; if (log === (count-2)){$('#loading').hide()}
})} generic_display();
document.getElementById ("pots_generic").removeEventListener("click", pots_generic, false); document.getElementById ("pots_generic").addEventListener("click", generic_display, false)}
function generic_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .generic{display:revert}`)}
document.getElementById ("pots_prem").addEventListener("click", pots_prem, false);
function pots_prem(){
document.querySelector("#pots_prem").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=potion").then(pots => pots.text()).then((pots) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(0).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Flask of Endurance"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(1).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Potion of Enraged Alsayic"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(2).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Sammy Sosa's Special Sauce"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(3).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Pumpkin Juice"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(4).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Dose of Destruction"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(5).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Funny Little Mushroom"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(6).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Bottle of Holy Slaughter"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(7).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Flask of Burning Souls"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(8).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Flask of Conjured Lightning"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(9).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Flask of Flaming Death"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(10).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Flask of Forbidden Knowledge"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(11).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Flask of Super Nova"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(12).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Olympian Juicebox"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.premium").eq(13).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Olympian Push"/i) || [0,0])[1])
log += 1; if (log === (count-2)){$('#loading').hide()}
})} premium_display();
document.getElementById ("pots_prem").removeEventListener("click", pots_prem, false); document.getElementById ("pots_prem").addEventListener("click", premium_display, false)}
function premium_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .premium{display:revert}`)}
document.getElementById ("pots_rare").addEventListener("click", pots_rare, false);
function pots_rare(){
document.querySelector("#pots_rare").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=potion").then(pots => pots.text()).then((pots) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(0).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Sugar Daddy"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(1).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="20 Year Aged Whiskey"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(2).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Blazing Holiday Sauce"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(3).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Evil Scream"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(4).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Griznix Potion"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(5).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Marsh Water"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(6).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Reikavon's Elixer"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(7).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Zhulian Potion"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(8).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Damned Arcane Shot"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(9).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Damned Element Shot"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(10).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Damned Fire Shot"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(11).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Damned Holy Shot"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(12).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Damned Kinetic Shot"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(13).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Damned Shadow Shot"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(14).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Kinetic Potency"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(15).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Vial of Insanity"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(16).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Demonic Madness"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(17).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Kombucha"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.rare").eq(18).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Quantum Quattro"/i) || [0,0])[1])
log += 1; if (log === (count-2)){$('#loading').hide()}
})} rare_display();
document.getElementById ("pots_rare").removeEventListener("click", pots_rare, false); document.getElementById ("pots_rare").addEventListener("click", rare_display, false)}
function rare_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .rare{display:revert}`)}
document.getElementById ("pots_misc").addEventListener("click", pots_misc, false);
function pots_misc(){
document.querySelector("#pots_misc").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=potion").then(pots => pots.text()).then((pots) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(0).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Master Brutality Potion"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(1).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Strength Potion"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(2).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Haste Potion"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(3).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Rage Tonic"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(4).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Super Rage Tonic"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(5).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Grand Rage Tonic"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(6).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Alpha Rage Tonic"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(7).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Spark the Fury"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(8).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Recharge the Fury"/i) || [0,0])[1])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.misc").eq(9).html((pots.match(/img data-itemidqty="([0-9]+)" data-name="Quest Experience Potion"/i) || [0,0])[1])
log += 1; if (log === (count-2)){$('#loading').hide()}
})} misc_display();
document.getElementById ("pots_misc").removeEventListener("click", pots_misc, false); document.getElementById ("pots_misc").addEventListener("click", misc_display, false)}
function misc_display(){close_all(); GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sto_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .misc{display:revert}`)}
document.getElementById ("btn-col").addEventListener("click", col, false);
function col(){
document.querySelector("#btn-col").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("collections.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(collections => collections.text()).then((collections) => {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.collections").eq(0).html(Math.ceil(((new DOMParser().parseFromString(collections, 'text/html').querySelector("#divCollections > div.row > div:nth-child(1) > div > div > div.user-info.w-100.pr-3 > ul").innerHTML.match(/img/g) || []).length)/3*100))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.collections").eq(1).html(Math.ceil(((new DOMParser().parseFromString(collections, 'text/html').querySelector("#divCollections > div.row > div:nth-child(2) > div > div > div.user-info.w-100.pr-3 > ul").innerHTML.match(/img/g) || []).length)/3*100))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.collections").eq(2).html(Math.ceil(((new DOMParser().parseFromString(collections, 'text/html').querySelector("#divCollections > div.row > div:nth-child(3) > div > div > div.user-info.w-100.pr-3 > ul").innerHTML.match(/img/g) || []).length)/3*100))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.collections").eq(3).html(Math.ceil(((new DOMParser().parseFromString(collections, 'text/html').querySelector("#divCollections > div.row > div:nth-child(4) > div > div > div.user-info.w-100.pr-3 > ul").innerHTML.match(/img/g) || []).length)/3*100))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.collections").eq(4).html(Math.ceil(((new DOMParser().parseFromString(collections, 'text/html').querySelector("#divCollections > div.row > div:nth-child(5) > div > div > div.user-info.w-100.pr-3 > ul").innerHTML.match(/img/g) || []).length)/3*100))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.collections").eq(5).html(Math.ceil(((new DOMParser().parseFromString(collections, 'text/html').querySelector("#divCollections > div.row > div:nth-child(6) > div > div > div.user-info.w-100.pr-3 > ul").innerHTML.match(/img/g) || []).length)/3*100))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.collections").eq(6).html(Math.ceil(((new DOMParser().parseFromString(collections, 'text/html').querySelector("#divCollections > div.row > div:nth-child(7) > div > div > div.user-info.w-100.pr-3 > ul").innerHTML.match(/img/g) || []).length)/3*100))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.collections").eq(7).html(Math.ceil(((new DOMParser().parseFromString(collections, 'text/html').querySelector("#divCollections > div.row > div:nth-child(8) > div > div > div.user-info.w-100.pr-3 > ul").innerHTML.match(/img/g) || []).length)/3*100))
$("#moxxivision > tbody > tr:nth-child("+row+") > td.collections").eq(8).html(Math.ceil(((new DOMParser().parseFromString(collections, 'text/html').querySelector("#divCollections > div.row > div:nth-child(9) > div > div > div.user-info.w-100.pr-3 > ul").innerHTML.match(/img/g) || []).length)/3*100))
log += 1; if (log === (count-2)){$('#loading').hide()}
})} col_display();
document.getElementById ("btn-col").removeEventListener("click", col, false); document.getElementById ("btn-col").addEventListener("click", col_display, false)}
function col_display(){close_all(); GM_addStyle (`.column{display:none} .collections{display:revert}`)}
document.getElementById ("refresh-mobs").addEventListener("click", mob, false);
document.getElementById ("btn-mob").addEventListener("click", mob, false);
function mob(){
document.querySelector("#btn-mob").setAttribute("style","color:#FFFFFF")
$('#loading').show(); document.querySelector("#tips").innerHTML = "CHECKING "+((count-2)*18).toLocaleString("en-US")+" MOBS<br>SCANNING "+(count-2)+" QUEST LOGS<br>LOOKING IN BACKPACKS<br>ESTIMATED LOAD TIME: "+(count*0.025).toFixed(1)+" MINUTES"; close_all(); var log = 0; for (let row = 2; row < count; row++) {
fetch("cast_skills?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(skills => skills.text()).then((skills) => {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=key").then(keys => keys.text()).then((keys) => {
fetch("profile.php?id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML).then(profile => profile.text()).then((profile) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=3921&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mskittor => mskittor.text()).then((mskittor) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=3920&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mroenov => mroenov.text()).then((mroenov) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=3922&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mergon => mergon.text()).then((mergon) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=3729&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mdefiant => mdefiant.text()).then((mdefiant) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=3730&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(menduring => menduring.text()).then((menduring) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=3731&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mperpetual => mperpetual.text()).then((mperpetual) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4036&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(myounis => myounis.text()).then((myounis) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4038&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mulkor => mulkor.text()).then((mulkor) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4037&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mkoth => mkoth.text()).then((mkoth) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4039&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mprux => mprux.text()).then((mprux) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4050&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mcorvok => mcorvok.text()).then((mcorvok) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4046&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mhovok => mhovok.text()).then((mhovok) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4379&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mseeping => mseeping.text()).then((mseeping) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4380&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mdeluged => mdeluged.text()).then((mdeluged) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4381&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mvolatile => mvolatile.text()).then((mvolatile) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=5301&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(mveiled => mveiled.text()).then((mveiled) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=5274&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(minvader => minvader.text()).then((minvader) => {
fetch("https://"+server+".outwar.com/mob_search.php?target=4670&rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(maezel => maezel.text()).then((maezel) => {
fetch("quests?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no).then(qlog => qlog.text()).then((qlog) => {
var auth = ''; if (document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(4)").innerHTML == "NO") {auth = false} else {auth = true}
var circ = ''; if (new DOMParser().parseFromString(skills, 'text/html').querySelector("#basic > div.widget-content.widget-content-area > div:nth-child(1) > div:nth-child(1) > div > div").innerHTML.match(/Level [0-9]+ Circumspect/i) == null){circ = false} else {circ = true}
var oor = ''; if (parseInt(document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td.rage").innerHTML) >= 500){oor = false} else {oor = true}
var crests3 = ''; if ((profile.match(/alt=".*?Crest of [A-Za-z0-9]+"/g) || []).toString().match(`alt="Quantum Crest of Class",alt="Explosive Crest of Ferocity",alt="Violent Crest of Preservation",alt="Onslaught Crest of Affliction"`) == null) {crests3 = false} else {crests3 = true}
var crests2c = ''; if ((profile.match(/alt=".*?Crest of [A-Za-z0-9]+"/g) || []).toString().match(`alt="Excelled Crest of Class"`) == null && (profile.match(/alt=".*?Crest of [A-Za-z0-9]+"/g) || []).toString().match(`alt="Quantum Crest of Class"`) == null) {crests2c = false} else {crests2c = true}
var crests2f = ''; if ((profile.match(/alt=".*?Crest of [A-Za-z0-9]+"/g) || []).toString().match(`alt="Excelled Crest of Ferocity"`) == null && (profile.match(/alt=".*?Crest of [A-Za-z0-9]+"/g) || []).toString().match(`alt="Explosive Crest of Ferocity"`) == null) {crests2f = false} else {crests2f = true}
var skittor = ''; if (mskittor.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('1916'\);">Aestor Reputation 4<\/a>/i) != null) {skittor = `<input type="checkbox" name="skittor_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {skittor = "--"}
var roenov = ''; if (mroenov.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('1891'\);">Aestor Reputation 3<\/a>/i) != null) {roenov = `<input type="checkbox" name="roenov_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {roenov = "--"}
var ergon = ''; if (mergon.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('1917'\);">Aestor Reputation 5<\/a>/i) != null) {ergon = `<input type="checkbox" name="ergon_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {ergon = "--"}
var defiant = ''; if (mdefiant.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('1530'\);">Lorren Collection 1<\/a>/i) != null) {defiant = `<input type="checkbox" name="defiant_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {defiant = "--"}
var enduring = ''; if (menduring.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('1531'\);">Lorren Collection 2<\/a>/i) != null) {enduring = `<input type="checkbox" name="enduring_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {enduring = "--"}
var perpetual = ''; if (mperpetual.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('1533'\);">Lorren Collection 3<\/a>/i) != null) {perpetual = `<input type="checkbox" name="perpetual_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {perpetual = "--"}
var younis = ''; if (myounis.match(/Quest help activated!/i) != null && crests2c == false) {younis = `<input type="checkbox" name="younis_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {younis = "--"}
var ulkor = ''; if (mulkor.match(/Quest help activated!/i) != null && crests2f == false) {ulkor = `<input type="checkbox" name="ulkor_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {ulkor = "--"}
var koth = ''; if (mkoth.match(/Quest help activated!/i) != null && crests2c == false) {koth = `<input type="checkbox" name="koth_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {koth = "--"}
var prux = ''; if (mprux.match(/Quest help activated!/i) != null && crests2f == false) {prux = `<input type="checkbox" name="prux_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {prux = "--"}
var corvok = ''; if (mcorvok.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('2047'\);">Normok Reputation 2<\/a>/i) != null) {corvok = `<input type="checkbox" name="corvok_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {corvok = "--"}
var hovok = ''; if (mhovok.match(/Quest help activated!/i) != null && crests3 == false) {hovok = `<input type="checkbox" name="hovok_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {hovok = "--"}
var seeping = ''; if (mseeping.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('2092'\);">Seeping Chaos Golem<\/a>/i) != null) {seeping = `<input type="checkbox" name="seeping_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {seeping = "--"}
var deluged = ''; if (mdeluged.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('2093'\);">Deluged Chaos Golem<\/a>/i) != null) {deluged = `<input type="checkbox" name="deluged_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {deluged = "--"}
var volatile = ''; if (mvolatile.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('2094'\);">Volatile Chaos Golem<\/a>/i) != null) {volatile = `<input type="checkbox" name="volatile_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {volatile = `--`}
var veiled = ''; if (mveiled.match(/Quest help activated!/i) != null && keys.match(/data-name="Veiled Teleporter".*data-iid="([0-9]+)"/i) != null) {veiled = `<input type="checkbox" name="veiled_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {veiled = "--"}
var invader = ''; if (minvader.match(/Quest help activated!/i) != null && qlog.match(/<a href="#" onclick="getQuestData\('2359'\);">Rune Essence \(Ruin Invader Essence\)<\/a>/i) != null) {invader = `<input type="checkbox" name="invader_" value="`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`">`} else {invader = "--"}
var aezel = ''; if (maezel.match(/Quest help activated!/i) != null && keys.match(/data-name="Garden Paragon".*data-iid="([0-9]+)"/i) != null) {aezel = `<a target="_blank" href="world?go=aezel&rg_sess_id=`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+`&suid=`+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+`&serverid=`+serv_no+`">GO</a>`} else {aezel = "--"}
$("#moxxivision > tbody > tr:nth-child("+row+") > td.auth").eq(0).html(`<img src="https://studiomoxxi.com/moxximod/bot.png" class="auth">`)
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(0).html(skittor).addClass("skittor")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(1).html(roenov).addClass("roenov")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(2).html(ergon).addClass("ergon")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(3).html(defiant).addClass("defiant")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(4).html(enduring).addClass("enduring")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(5).html(perpetual).addClass("perpetual")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(6).html(younis).addClass("younis")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(7).html(ulkor).addClass("ulkor")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(8).html(koth).addClass("koth")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(9).html(prux).addClass("prux")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(10).html(corvok).addClass("corvok")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(11).html(hovok).addClass("hovok")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(12).html(seeping).addClass("seeping")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(13).html(deluged).addClass("deluged")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(14).html(volatile).addClass("volatile")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(15).html(veiled).addClass("veiled")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(16).html(invader).addClass("invader")
$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").eq(17).html(aezel).addClass("aezel")
if (circ == true){$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs > input[type=checkbox]").attr({onmouseover:"statspopup(event,'Circumspect is cast and may be DCing')",onmouseout:"kill()"}); GM_addStyle (`#moxxivision > tbody > tr:nth-child(`+row+`) > td > input[type=checkbox]{accent-color:#ff6600 !important;}`)}
if (oor == true){$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs > input[type=checkbox]").attr({onmouseover:"statspopup(event,'Out of rage')",onmouseout:"kill()"}); GM_addStyle (`#moxxivision > tbody > tr:nth-child(`+row+`) > td > input[type=checkbox]{accent-color:#ff0000 !important;}`)}
if (auth == false){$("#moxxivision > tbody > tr:nth-child("+row+") > td.mobs").html("--"); $("#moxxivision > tbody > tr:nth-child("+row+") > td.auth > img").css({"filter":"grayscale(1)","opacity":"0.2"})}
log += 1; if (log === (count-2)){$('#loading').hide(); document.querySelector("#tips").innerHTML = "";}
})})})})})})})})})})})})})})})})})})})})})})} mobs_display();
document.getElementById ("btn-mob").removeEventListener("click", mob, false);document.getElementById ("btn-mob").addEventListener("click", mobs_display, false)}
function mobs_display(){close_all(); GM_addStyle (`#content {margin-top: 200px;transition: 1s;} #mob_buttons{top:47px;transition: 1s;z-index:1;position:fixed;} .column{display:none} .mobs{display:revert} .auth{display:revert}`)}
GM_addStyle (`#note_saved{position:fixed;top:200px;left:700px;width:300px;height:50px;background:#FFFFFF;font-size:16px;color:#000000;padding:10px;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);}}`)
document.getElementById ("btn-not").addEventListener("click", not, false);
function not(){
document.querySelector("#btn-not").setAttribute("style","color:#FFFFFF")
$('#loading').show(); close_all(); var log = 0; for (let row = 2; row < count; row++) {
$("#moxxivision > tbody > tr:nth-child("+row+") > td.notes").eq(0).html(`<input type="text" id="note`+row+`" class="form-control" size="100" autocomplete="off"">`)
$("#moxxivision > tbody > tr:nth-child("+row+") > td.notes").eq(1).html(`<button class="btn-mv" id="note`+row+`save" style="margin-top:5px;">SAVE</button>`)
if (GM_getValue("note"+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML) != undefined){document.querySelector("#note"+row).value = GM_getValue("note"+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML)}
document.getElementById ("note"+row+"save").addEventListener("click", note_update, false)
function note_update(){
GM_setValue("note"+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML,document.querySelector("#note"+row).value)
$("body").append (`<div id="note_saved">Note saved for `+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(5) > a").innerHTML+`</div></div>`);
setTimeout(function() {$("#note_saved").remove()},1000)
}
log += 1; if (log === (count-2)){$('#loading').hide()}
not_display();
document.getElementById ("btn-not").removeEventListener("click", not, false); document.getElementById ("btn-not").addEventListener("click", not_display, false)}
function not_display(){close_all(); GM_addStyle (`.column{display:none} .notes{display:revert}`)}
}
document.getElementById ("btn-sea").addEventListener("click", search, false);
function search(){
close_all();GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #sea_buttons{top:47px;transition: 1s;z-index:1;}`);
document.getElementById ("mmSearchGo").addEventListener("click", mmSearchGo, false);}
$("#mmSearch").keyup(function(event) {if (event.keyCode === 13) { $("#mmSearchGo").click();}});
function mmSearchGo(){
$('#loading').show();
var log = 0;
for (let row = 2; row < count; row++) {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=potion").then(pots => pots.text()).then((pots) => {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=regular").then(reg => reg.text()).then((reg) => {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=quest").then(quest => quest.text()).then((quest) => {
fetch("ajax/backpackcontents.php?rg_sess_id="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(2)").innerHTML+"&suid="+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML+"&serverid="+serv_no+"&tab=key").then(key => key.text()).then((key) => {
var regex = new RegExp(`img data-itemidqty="[0-9]+" data-name="`+document.querySelector("#mmSearch").value+`"`,"g")
var search_quantity =
parseInt((reg.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((pots.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])
$("#moxxivision > tbody > tr:nth-child("+row+") > td.search").eq(0).html(search_quantity)
$("#moxxivision > tbody > tr:nth-child("+row+") > td.search").eq(1).html(document.querySelector("#mmSearch").value)
log += 1; if (log === (count-2)){$('#loading').hide()}
})})})})}
GM_addStyle (`.column{display:none} .search{display:revert}`)
}
document.getElementById ("btn-rga").addEventListener("click", rga, false);
function rga(){close_all();GM_addStyle (`#content {margin-top: 165px;transition: 1s;} #rga_buttons{top:47px;transition: 1s;z-index:1;}`);}
document.getElementById ("btn-exi").addEventListener("click", exit, false); function exit(){window.location.replace("home?rg_sess_id="+rganame+"&suid="+GM_getValue("origincharid")+"&serverid="+serv_no); GM.deleteValue("origincharid")}
function close_all(){GM_addStyle (`#content {margin-top: 117px;transition: 1s;z-index:0;} #equ_buttons{top:-50px;transition: 1s;z-index:0;} #sta_buttons{top:-50px;transition: 1s;z-index:0;} #hom_buttons{top:-50px;transition: 1s;z-index:0;} #bp_buttons{top:-50px;transition: 1s;z-index:0;} #sto_buttons{top:-50px;transition: 1s;z-index:0;} #mob_buttons{top:-50px;transition: 1s;z-index:0;} #rga_buttons{top:-50px;transition: 1s;z-index:0;} #sea_buttons{top:-50px;transition: 1s;z-index:0;}`)}
GM_addStyle (`#moxxivision > tbody > tr > td > input[type=checkbox]:checked{opacity:1 !important;}`)
document.getElementById ("x").addEventListener("click", x);
function x(){$('input:checkbox').prop('checked', true); document.getElementById ("x").removeEventListener("click", x); document.getElementById ("x").addEventListener("click", y);document.querySelector("#x").innerHTML = "DESELECT ALL MOBS"}
function y(){$('input:checkbox').prop('checked', false); document.getElementById ("x").removeEventListener("click", y); document.getElementById ("x").addEventListener("click", x);document.querySelector("#x").innerHTML = "SELECT ALL MOBS"}
document.getElementById ("skittorx").addEventListener("click", sel_skittor);
function sel_skittor(){$('input:checkbox[name=skittor_]').prop('checked', true); document.getElementById ("skittorx").removeEventListener("click", sel_skittor); document.getElementById ("skittorx").addEventListener("click", des_skittor);}
function des_skittor(){$('input:checkbox[name=skittor_]').prop('checked', false); document.getElementById ("skittorx").removeEventListener("click", des_skittor); document.getElementById ("skittorx").addEventListener("click", sel_skittor);}
document.getElementById ("roenovx").addEventListener("click", sel_roenov);
function sel_roenov(){$('input:checkbox[name=roenov_]').prop('checked', true); document.getElementById ("roenovx").removeEventListener("click", sel_roenov); document.getElementById ("roenovx").addEventListener("click", des_roenov);}
function des_roenov(){$('input:checkbox[name=roenov_]').prop('checked', false); document.getElementById ("roenovx").removeEventListener("click", des_roenov); document.getElementById ("roenovx").addEventListener("click", sel_roenov);}
document.getElementById ("ergonx").addEventListener("click", sel_ergon);
function sel_ergon(){$('input:checkbox[name=ergon_]').prop('checked', true); document.getElementById ("ergonx").removeEventListener("click", sel_ergon); document.getElementById ("ergonx").addEventListener("click", des_ergon);}
function des_ergon(){$('input:checkbox[name=ergon_]').prop('checked', false); document.getElementById ("ergonx").removeEventListener("click", des_ergon); document.getElementById ("ergonx").addEventListener("click", sel_ergon);}
document.getElementById ("defiantx").addEventListener("click", sel_defiant);
function sel_defiant(){$('input:checkbox[name=defiant_]').prop('checked', true); document.getElementById ("defiantx").removeEventListener("click", sel_defiant); document.getElementById ("defiantx").addEventListener("click", des_defiant);}
function des_defiant(){$('input:checkbox[name=defiant_]').prop('checked', false); document.getElementById ("defiantx").removeEventListener("click", des_defiant); document.getElementById ("defiantx").addEventListener("click", sel_defiant);}
document.getElementById ("enduringx").addEventListener("click", sel_enduring);
function sel_enduring(){$('input:checkbox[name=enduring_]').prop('checked', true); document.getElementById ("enduringx").removeEventListener("click", sel_enduring); document.getElementById ("enduringx").addEventListener("click", des_enduring);}
function des_enduring(){$('input:checkbox[name=enduring_]').prop('checked', false); document.getElementById ("enduringx").removeEventListener("click", des_enduring); document.getElementById ("enduringx").addEventListener("click", sel_enduring);}
document.getElementById ("perpetualx").addEventListener("click", sel_perpetual);
function sel_perpetual(){$('input:checkbox[name=perpetual_]').prop('checked', true); document.getElementById ("perpetualx").removeEventListener("click", sel_perpetual); document.getElementById ("perpetualx").addEventListener("click", des_perpetual);}
function des_perpetual(){$('input:checkbox[name=perpetual_]').prop('checked', false); document.getElementById ("perpetualx").removeEventListener("click", des_perpetual); document.getElementById ("perpetualx").addEventListener("click", sel_perpetual);}
document.getElementById ("younisx").addEventListener("click", sel_younis);
function sel_younis(){$('input:checkbox[name=younis_]').prop('checked', true); document.getElementById ("younisx").removeEventListener("click", sel_younis); document.getElementById ("younisx").addEventListener("click", des_younis);}
function des_younis(){$('input:checkbox[name=younis_]').prop('checked', false); document.getElementById ("younisx").removeEventListener("click", des_younis); document.getElementById ("younisx").addEventListener("click", sel_younis);}
document.getElementById ("ulkorx").addEventListener("click", sel_ulkor);
function sel_ulkor(){$('input:checkbox[name=ulkor_]').prop('checked', true); document.getElementById ("ulkorx").removeEventListener("click", sel_ulkor); document.getElementById ("ulkorx").addEventListener("click", des_ulkor);}
function des_ulkor(){$('input:checkbox[name=ulkor_]').prop('checked', false); document.getElementById ("ulkorx").removeEventListener("click", des_ulkor); document.getElementById ("ulkorx").addEventListener("click", sel_ulkor);}
document.getElementById ("kothx").addEventListener("click", sel_koth);
function sel_koth(){$('input:checkbox[name=koth_]').prop('checked', true); document.getElementById ("kothx").removeEventListener("click", sel_koth); document.getElementById ("kothx").addEventListener("click", des_koth);}
function des_koth(){$('input:checkbox[name=koth_]').prop('checked', false); document.getElementById ("kothx").removeEventListener("click", des_koth); document.getElementById ("kothx").addEventListener("click", sel_koth);}
document.getElementById ("pruxx").addEventListener("click", sel_prux);
function sel_prux(){$('input:checkbox[name=prux_]').prop('checked', true); document.getElementById ("pruxx").removeEventListener("click", sel_prux); document.getElementById ("pruxx").addEventListener("click", des_prux);}
function des_prux(){$('input:checkbox[name=prux_]').prop('checked', false); document.getElementById ("pruxx").removeEventListener("click", des_prux); document.getElementById ("pruxx").addEventListener("click", sel_prux);}
document.getElementById ("corvokx").addEventListener("click", sel_corvok);
function sel_corvok(){$('input:checkbox[name=corvok_]').prop('checked', true); document.getElementById ("corvokx").removeEventListener("click", sel_corvok); document.getElementById ("corvokx").addEventListener("click", des_corvok);}
function des_corvok(){$('input:checkbox[name=corvok_]').prop('checked', false); document.getElementById ("corvokx").removeEventListener("click", des_corvok); document.getElementById ("corvokx").addEventListener("click", sel_corvok);}
document.getElementById ("hovokx").addEventListener("click", sel_hovok);
function sel_hovok(){$('input:checkbox[name=hovok_]').prop('checked', true); document.getElementById ("hovokx").removeEventListener("click", sel_hovok); document.getElementById ("hovokx").addEventListener("click", des_hovok);}
function des_hovok(){$('input:checkbox[name=hovok_]').prop('checked', false); document.getElementById ("hovokx").removeEventListener("click", des_hovok); document.getElementById ("hovokx").addEventListener("click", sel_hovok);}
document.getElementById ("seepingx").addEventListener("click", sel_seeping);
function sel_seeping(){$('input:checkbox[name=seeping_]').prop('checked', true); document.getElementById ("seepingx").removeEventListener("click", sel_seeping); document.getElementById ("seepingx").addEventListener("click", des_seeping);}
function des_seeping(){$('input:checkbox[name=seeping_]').prop('checked', false); document.getElementById ("seepingx").removeEventListener("click", des_seeping); document.getElementById ("seepingx").addEventListener("click", sel_seeping);}
document.getElementById ("delugedx").addEventListener("click", sel_deluged);
function sel_deluged(){$('input:checkbox[name=deluged_]').prop('checked', true); document.getElementById ("delugedx").removeEventListener("click", sel_deluged); document.getElementById ("delugedx").addEventListener("click", des_deluged);}
function des_deluged(){$('input:checkbox[name=deluged_]').prop('checked', false); document.getElementById ("delugedx").removeEventListener("click", des_deluged); document.getElementById ("delugedx").addEventListener("click", sel_deluged);}
document.getElementById ("volatilex").addEventListener("click", sel_volatile);
function sel_volatile(){$('input:checkbox[name=volatile_]').prop('checked', true); document.getElementById ("volatilex").removeEventListener("click", sel_volatile); document.getElementById ("volatilex").addEventListener("click", des_volatile);}
function des_volatile(){$('input:checkbox[name=volatile_]').prop('checked', false); document.getElementById ("volatilex").removeEventListener("click", des_volatile); document.getElementById ("volatilex").addEventListener("click", sel_volatile);}
document.getElementById ("veiledx").addEventListener("click", sel_veiled);
function sel_veiled(){$('input:checkbox[name=veiled_]').prop('checked', true); document.getElementById ("veiledx").removeEventListener("click", sel_veiled); document.getElementById ("veiledx").addEventListener("click", des_veiled);}
function des_veiled(){$('input:checkbox[name=veiled_]').prop('checked', false); document.getElementById ("veiledx").removeEventListener("click", des_veiled); document.getElementById ("veiledx").addEventListener("click", sel_veiled);}
document.getElementById ("invaderx").addEventListener("click", sel_invader);
function sel_invader(){$('input:checkbox[name=invader_]').prop('checked', true); document.getElementById ("invaderx").removeEventListener("click", sel_invader); document.getElementById ("invaderx").addEventListener("click", des_invader);}
function des_invader(){$('input:checkbox[name=invader_]').prop('checked', false); document.getElementById ("invaderx").removeEventListener("click", des_invader); document.getElementById ("invaderx").addEventListener("click", sel_invader);}
document.getElementById ("atk_mv_mobs").addEventListener("click", atk_mv_mobs, false);
function atk_mv_mobs(){
var skittor_ar = []; $("input:checkbox[name=skittor_]:checked").each(function(){skittor_ar.push($(this).val());var skittor_id = skittor_ar.join(",")});
var roenov_ar = []; $("input:checkbox[name=roenov_]:checked").each(function(){roenov_ar.push($(this).val());var roenov_id = roenov_ar.join(",")});
var ergon_ar = []; $("input:checkbox[name=ergon_]:checked").each(function(){ergon_ar.push($(this).val());var ergon_id = ergon_ar.join(",")});
var defiant_ar = []; $("input:checkbox[name=defiant_]:checked").each(function(){defiant_ar.push($(this).val());var defiant_id = defiant_ar.join(",")});
var enduring_ar = []; $("input:checkbox[name=enduring_]:checked").each(function(){enduring_ar.push($(this).val());var enduring_id = enduring_ar.join(",")});
var perpetual_ar = []; $("input:checkbox[name=perpetual_]:checked").each(function(){perpetual_ar.push($(this).val());var perpetual_id = perpetual_ar.join(",")});
var younis_ar = []; $("input:checkbox[name=younis_]:checked").each(function(){younis_ar.push($(this).val());var younis_id = younis_ar.join(",")});
var ulkor_ar = []; $("input:checkbox[name=ulkor_]:checked").each(function(){ulkor_ar.push($(this).val());var ulkor_id = ulkor_ar.join(",")});
var koth_ar = []; $("input:checkbox[name=koth_]:checked").each(function(){koth_ar.push($(this).val());var koth_id = koth_ar.join(",")});
var prux_ar = []; $("input:checkbox[name=prux_]:checked").each(function(){prux_ar.push($(this).val());var prux_id = prux_ar.join(",")});
var corvok_ar = []; $("input:checkbox[name=corvok_]:checked").each(function(){corvok_ar.push($(this).val());var corvok_id = corvok_ar.join(",")});
var hovok_ar = []; $("input:checkbox[name=hovok_]:checked").each(function(){hovok_ar.push($(this).val());var hovok_id = hovok_ar.join(",")});
var seeping_ar = []; $("input:checkbox[name=seeping_]:checked").each(function(){seeping_ar.push($(this).val());var seeping_id = seeping_ar.join(",")});
var deluged_ar = []; $("input:checkbox[name=deluged_]:checked").each(function(){deluged_ar.push($(this).val());var deluged_id = deluged_ar.join(",")});
var volatile_ar = []; $("input:checkbox[name=volatile_]:checked").each(function(){volatile_ar.push($(this).val());var volatile_id = volatile_ar.join(",")});
var veiled_ar = []; $("input:checkbox[name=veiled_]:checked").each(function(){veiled_ar.push($(this).val());var veiled_id = veiled_ar.join(",")});
var invader_ar = []; $("input:checkbox[name=invader_]:checked").each(function(){invader_ar.push($(this).val());var invader_id = invader_ar.join(",")});
mv_mobs_post =`
hovok|28123|`+hovok_ar+`
younis|28113|`+younis_ar+`
ulkor|28122|`+ulkor_ar+`
prux|28121|`+prux_ar+`
koth|28114|`+koth_ar+`
corvok|27624|`+corvok_ar+`
skittor|27527|`+skittor_ar+`
roenov|27528|`+roenov_ar+`
ergon|27526|`+ergon_ar+`
defiant|26615|`+defiant_ar+`
enduring|26614|`+enduring_ar+`
perpetual|26616|`+perpetual_ar+`
deluged|32878|`+deluged_ar+`
seeping|32876|`+seeping_ar+`
volatile|32877|`+volatile_ar+`
veiled|42619|`+veiled_ar+`
invader|37878|`+invader_ar
task13();
$('input[type=checkbox]:checked').css('opacity', '0.25');
$('input:checkbox').prop('checked', false)}
document.getElementById ("mv_badgereport").addEventListener("click", mv_badgereport, false);
function mv_badgereport(){task10(); document.getElementById ("mv_badgereport").outerHTML = `<button class="btn-mv" style="opacity:0.5 !important;" disabled="disabled">BADGE REPORT</button>`}
document.getElementById ("mv_chaosreport").addEventListener("click", mv_chaosreport, false);
function mv_chaosreport(){task09(); document.getElementById ("mv_chaosreport").outerHTML = `<button class="btn-mv" style="opacity:0.5 !important;" disabled="disabled">CHAOS GEM REPORT</button>`}
document.getElementById ("mv_runereport").addEventListener("click", mv_runereport, false);
function mv_runereport(){task19(); document.getElementById ("mv_runereport").outerHTML = `<button class="btn-mv" style="opacity:0.5 !important;" disabled="disabled">RUNE REPORT</button>`}
document.getElementById ("mv_enhancementreport").addEventListener("click", mv_enhancementreport, false);
function mv_enhancementreport(){task26(); document.getElementById ("mv_enhancementreport").outerHTML = `<button class="btn-mv" style="opacity:0.5 !important;" disabled="disabled">ENHANCEMENT REPORT</button>`}
document.getElementById ("mv_underlingreport").addEventListener("click", mv_underlingreport, false);
function mv_underlingreport(){task14(); document.getElementById ("mv_underlingreport").outerHTML = `<button class="btn-mv" style="opacity:0.5 !important;" disabled="disabled">UNDERLING REPORT</button>`}
document.getElementById ("highlight").addEventListener("click", highlight, false);
function highlight (zEvent) {
document.querySelector("#highlight").setAttribute("style","opacity:0.25");
document.getElementById("highlight").setAttribute("disabled","disabled")
for (let row = 2; row < count; row++) {
var charlevel = document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(6)").innerHTML
var i = ''; var els = '';
if (charlevel == 90){els = document.querySelectorAll("#moxxivision > tbody > tr:nth-child("+row+") > td");for (i=0; i < els.length; i++) {els[i].setAttribute('style','background:#1a0d0d;');}}
if (charlevel >= 85 && charlevel <= 89){els = document.querySelectorAll("#moxxivision > tbody > tr:nth-child("+row+") > td");for (i=0; i < els.length; i++) {els[i].setAttribute('style','background:#1a1a0d;');}}
if (charlevel >= 80 && charlevel <= 84){els = document.querySelectorAll("#moxxivision > tbody > tr:nth-child("+row+") > td");for (i=0; i < els.length; i++) {els[i].setAttribute('style','background:#0d1a13;');}}
if (charlevel <= 79){els = document.querySelectorAll("#moxxivision > tbody > tr:nth-child("+row+") > td");for (i=0; i < els.length; i++) {els[i].setAttribute('style','background:#0e0d1a;');}}}}
document.getElementById ("supplies").addEventListener("click", supplies, false);
function supplies (zEvent) {
document.querySelector("#supplies").setAttribute("style","opacity:0.25");
document.getElementById("supplies").setAttribute("disabled","disabled")
for (let row = 2; row < count; row++) {
fetch('supplies?suid='+document.querySelector("#moxxivision > tbody > tr:nth-child("+row+") > td:nth-child(1)").innerHTML, {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({'buymax': 'Buy Max'})}).then(res => res.text()).then(res => {
supplies_fetch() })}}
GM_addStyle (`img.selected{border:2px #00CC00 SOLID !important;width:30px !important;height:30px !important;padding:3px !important;}`)
document.querySelector("#bp_refresh").addEventListener("click", bp_refresh, false);
function bp_refresh(){ bac() }
$(function(){ $('.backpack').on('click','img',(function(){ $(this).toggleClass("selected") })) });
document.querySelector("#bp_vault").addEventListener("click", bp_vault, false);
function bp_vault(){
const ids = Array.from(document.getElementsByClassName("selected"), ({ id }) => id)
mv_items_go = ids.toString().replaceAll(`"`,"")
task21()
document.querySelector("#bp_vault").outerHTML = `<button class="btn-mv" style="opacity:0.5 !important;" disabled="disabled">VAULT SELECTED</button>`
}
document.querySelector("#bp_equip").addEventListener("click", bp_equip, false);
function bp_equip(){
const ids = Array.from(
document.getElementsByClassName("selected"), ({ id }) => id)
mv_items_go = ids.toString().replaceAll(`"`,"")
task20()
document.querySelector("#bp_equip").outerHTML = `<button class="btn-mv" style="opacity:0.5 !important;" disabled="disabled">EQUIP SELECTED</button>`
}
document.querySelector("#bp_activate").addEventListener("click", bp_activate, false);
function bp_activate(){
const ids = Array.from(
document.getElementsByClassName("selected"), ({ id }) => id)
mv_items_go = ids.toString().replaceAll(`"`,"")
task24()
document.querySelector("#bp_activate").outerHTML = `<button class="btn-mv" style="opacity:0.5 !important;" disabled="disabled">ACTIVATE SELECTED</button>`
}
}}
GM_addStyle (`
#auth_response{overflow: auto;
height: 0px !important;
color:#FFFFFF !important;
padding:10px !important;
width: 100% !important;
border:0px !important;
top:0px !important;
left:0px !important;
position:fixed !important;
transition-property: all;
transition-duration: 1s;
font-size:16px !important;
font-weight:700 !important;
background: #1B2E4B !important;
z-index:0 !important;
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);}
`);
$("body").append ( `
<div id="auth_response"><center>
<span id="auth_responsetxt"></span>
</div>
`);
function sub(){
auth = GM_getValue("bauth_r")
if (auth.match("Full") != null){auth_true()}
if (auth.match("Full") == null){auth_false()}
}
function auth_true(){
document.querySelector("#auth_responsetxt").innerHTML = `<img src=https://studiomoxxi.com/moxximod/bot.png class="robot"> THANK YOU FOR SUBSCRIBING TO MOXXIMOD+`
GM_addStyle (`#auth_response{background:#008700 !important;height: 43px !important;width:100% !important;border:0px !important;left:0px !important;top:53px !important;}`);
setTimeout(function() {
GM_addStyle (`#auth_response{height: 0px !important;width:100% !important;border:0px !important;left:0px !important;top:0px !important;}`);
},4000)}
function auth_false(){
document.querySelector("#auth_responsetxt").innerHTML = `<img src=https://studiomoxxi.com/moxximod/bot.png class="robot"> THIS RGA IS NOT SUBSCRIBED TO MOXXIMOD+`
GM_addStyle (`#sliderload{display:none !important;}
#auth_response{background:#870000 !important;height: 43px !important;width:100% !important;border:0px !important;left:0px !important;top:53px !important;}`);
setTimeout(function() {
GM_addStyle (`#auth_response{height: 0px !important;width:100% !important;border:0px !important;left:0px !important;top:0px !important;}`);
},4000)}
if (document.URL.indexOf("user_preferences") != -1 && error == false) {
GM_addStyle (`
a.dcbtn{width:95px !important;font-size:12px;background-color:#1B55E2;color:#FFFFFF;letter-spacing:0.25px;padding:3px;display:inline-block;margin-right:0.05rem;margin-left:0.05rem;box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.25);-webkit-box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.25);-moz-box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.25);border-radius:3px;}
a.dcbtnp{background-image: url("https://studiomoxxi.com/moxximod/bot.png");background-size: 25%;background-repeat: no-repeat;background-position: bottom -5px right -4px;}
a.dcbtn:hover{opacity:0.75;}
.advinput{background: #1B2E4B;border: 1px #1B2E4B SOLID;color: #FFFFFF !important;padding: 6px !important;border-radius: 6px !important;height:37px !important;margin-right:0.5rem !important;font-size:12px !important;margin-bottom:1rem !important;}
img.theme_button{border:1px SOLID #000000; width:90px; height:90px;margin:1px;border-radius:10%;margin-bottom:-19px;}
div.premade{display:inline-block;font-size:9px;position:relative;top:-20px;text-align:center !important;}
h4{margin-bottom:1.5rem;}
input.checkbox{width:30px;height:30px;margin-top:5px;accent-color:#4361EE;}
div.yah{margin:1px;display:inline-block;padding-right:4px;padding-left:4px;}
#yah_img{display:none}
#rgas_update{opacity:0.5 !important;}
div.premade_div{text-align:left !important;}
#native_div > div.premade_div > div > p {color: #FFFFFF !important;text-shadow: 0px 0px 5px #000000;letter-spacing: .1rem;}
#admin{position:absolute;right:10px;bottom:10px;}
#admin > a{color:#000000 !important;}
.col-md-6 {
-ms-flex: 0 0 50%;
flex: 0 0 0%;
max-width: 65%;
}
`);
var pref_buttons = `
<h6>- MOXXIMOD SETTINGS -</h6><p>
<a href="javascript:void(0);" class="dcbtn" id="native">BASIC</a>
<a href="javascript:void(0);" class="dcbtn" id="adv">ADVANCED</a>
<a href="javascript:void(0);" class="dcbtn" id="tiles">TILES</a>
<a href="javascript:void(0);" class="dcbtn dcbtnp" id="rgas">RGAS</a>
<a href="javascript:void(0);" class="dcbtn dcbtnp" id="world">WORLD</a>
<a href="javascript:void(0);" class="dcbtn dcbtnp" id="theme">THEME</a>
<a href="javascript:void(0);" class="dcbtn" id="discord">DISCORD</a>
<p style="margin:1rem;">`
var basic_save = document.querySelector("#content-header-row > form > div").innerHTML.replace(`<div class="widget-content widget-content-area">`,"")
var basic = document.querySelector("#content-header-row > form > div")
basic.innerHTML = pref_buttons+basic.innerHTML.replace(`<div class="widget-content widget-content-area">`,`<div id="native_div" class="widget-content widget-content-area">`)
document.querySelector("#native").addEventListener("click", native);
function native(){document.querySelector("#native_div").innerHTML =
basic_save
}
document.querySelector("#discord").addEventListener("click", discord);
function discord(){document.querySelector("#native_div").innerHTML = `
<h4>Discord Preferences</h4><p>
<b>Discord ID</b><br>To find your ID, send Moxxi bot a DM on discord with: <i>!userid</i><p>
<input type="text" placeholder="" maxlength="18" id="discordID" name="boxcolor" class="advinput" size="80" autocomplete="off" style="letter-spacing:1rem;text-align: center;"><p>
<p style="margin:0.5rem;"><a href="javascript:void(0);" class="dcbtn" id="dis_update">UPDATE</a>
`
if (GM_getValue("discordID") != undefined){document.querySelector("#discordID").value = GM_getValue("discordID")};
document.querySelector("#dis_update").addEventListener("click", dis_update);
}
function dis_update(){
GM_setValue("discordID", document.querySelector("#discordID").value)
window.location.href = "user_preferences"
}
document.querySelector("#adv").addEventListener("click", adv);
function adv(){document.querySelector("#native_div").innerHTML = `
<h4>Advanced Preferences</h4>
<div class="row text-left mm-pref">
<div class="col-10" style="margin-bottom:1rem !important;"><b>Skills Tooltab</b>: Adds the active skills and potions tab to most Outwar pages on the right side of the screen. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="skillstab" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Sticky Char Dropdown Menu</b>: When changing accounts using the character dropdown menu, outwar will stay on the same page instead of default to world. <i>Performance impact: NONE</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="stickydrops" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Server Switch Button</b>: Click the server switch button on the toolbar to quickly switch between Torax and Sigil. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="servswitch" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Fixed Hover Elements</b>: Forces all mouseover hovers on Outwar to display in the top-left corner. This prevents content from getting cut off on the sides of your screen. <i>Performance impact: NONE</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="fixhover" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Hide Attack Notification</b>: Removes the attack notification icon from toolbar if a player has been attacked. <i>Performance impact: NONE</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="hide_atk_icon" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Auto Collect Tokens</b>: Free challenge tokens will automatically collect while playing Outwar. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="autotoken" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Auto Max Supplies</b>: Supplies will automatically max while playing Outwar. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="auto_max_sup" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Auto On Guard</b>: On Guard will cast automatically while playing outwar. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="autoguard" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Hide Fast Travel Menu</b>: Checking on will hide the fast travel trigger link from the left-hand menu. Turning on will return the menu option. <i>Performance impact: NONE</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="ftmenu" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Fast Raid Results</b>: Turning on will show the results of a raid on the raid page immediately instead of needing to wait and scroll to the bottom of the page. <i>Performance impact: NONE</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="fastraidresults" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Full-Size Profile Pictures</b>: Automatically resize all profile pictures to fit the profile picture box. Turning off will display profile pictures in their orginal size. <i>Performance impact: NONE</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="propicstretch" class="checkbox"></div>
</div><p style="margin:0.5rem;"><a href="javascript:void(0);" class="dcbtn" id="adv_update">UPDATE</a>
`
if (GM_getValue("skillstab") == true){$("#skillstab").attr("checked", true)}
if (GM_getValue("stickydrops") == true){$("#stickydrops").attr("checked", true)}
if (GM_getValue("servswitch") == true){$("#servswitch").attr("checked", true)}
if (GM_getValue("fixhover") == true){$("#fixhover").attr("checked", true)}
if (GM_getValue("hide_atk_icon") == true){$("#hide_atk_icon").attr("checked", true)}
if (GM_getValue("autotoken") == true){$("#autotoken").attr("checked", true)}
if (GM_getValue("auto_max_sup") == true){$("#auto_max_sup").attr("checked", true)}
if (GM_getValue("autoguard") == true){$("#autoguard").attr("checked", true)}
if (GM_getValue("ftmenu") == true){$("#ftmenu").attr("checked", true)}
if (GM_getValue("fastraidresults") == true){$("#fastraidresults").attr("checked", true)}
if (GM_getValue("propicstretch") == true){$("#propicstretch").attr("checked", true)}
document.querySelector("#adv_update").addEventListener("click", adv_update);
function adv_update(){
if (document.querySelector("#skillstab").checked == true){GM_setValue("skillstab", true)} else {GM_setValue("skillstab", false)}
if (document.querySelector("#stickydrops").checked == true){GM_setValue("stickydrops", true)} else {GM_setValue("stickydrops", false)}
if (document.querySelector("#servswitch").checked == true){GM_setValue("servswitch", true)} else {GM_setValue("servswitch", false)}
if (document.querySelector("#fixhover").checked == true){GM_setValue("fixhover", true)} else {GM_setValue("fixhover", false)}
if (document.querySelector("#hide_atk_icon").checked == true){GM_setValue("hide_atk_icon", true)} else {GM_setValue("hide_atk_icon", false)}
if (document.querySelector("#autotoken").checked == true){GM_setValue("autotoken", true)} else {GM_setValue("autotoken", false)}
if (document.querySelector("#auto_max_sup").checked == true){GM_setValue("auto_max_sup", true)} else {GM_setValue("auto_max_sup", false)}
if (document.querySelector("#autoguard").checked == true){GM_setValue("autoguard", true)} else {GM_setValue("autoguard", false)}
if (document.querySelector("#ftmenu").checked == true){GM_setValue("ftmenu", true)} else {GM_setValue("ftmenu", false)}
if (document.querySelector("#fastraidresults").checked == true){GM_setValue("fastraidresults", true)} else {GM_setValue("fastraidresults", false)}
if (document.querySelector("#propicstretch").checked == true){GM_setValue("propicstretch", true)} else {GM_setValue("propicstretch", false)}
window.location.href = "user_preferences"}
}
document.querySelector("#tiles").addEventListener("click", tiles);
function tiles(){document.querySelector("#native_div").innerHTML = `
<h4>Alert Tile Preferences</h4>
<div class="row text-left mm-pref">
<div class="col-10" style="margin-bottom:1rem !important;"><b>Homepage Alert Tiles</b>: Adds notification tiles to homepage. <i>Performance impact: Varies based on which tiles are turned on.</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="hometiles" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Toolbar Alert Tiles</b>: Adds homepage tile notifications to the toolbar on every outwar page. <i>Performance impact: Varies based on which tiles are turned on.</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tbnotifications" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Active Trade Tile</b>: Tile notification displays if there's an active trade on any char on your RGA. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_trade" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Gladiator Tile</b>: Tile notification displays if any gladiator mob is available. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_glad" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>God Spawn Tiles</b>: Tile notification displays if any god has spawned on the server. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_gods" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Brawl Tile</b>: Tile notification displays when brawl is live. Tile is greyed out once you've attacked all other players in the brawl. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_brawl" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Server Boss Tile</b>: Tile notification displays for all available server bosses. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_boss" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Supplies Tile</b>: Tile notification displays if your supplies are below 100%. Click the notification to buy-max supplies. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_supplies" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Strength Tile</b>: Tile notification displays if your strength is below 100%. <i>Performance impact: NONE</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_strength" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Veiled Mob Tile</b>: Tile notification displays if veiled mobs are alive and you have teleporter in your backpack. Click the tile to teleport to the Veiled Passage. <i>Performance impact: MEDIUM</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_veiled" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Chaos Golems Tile</b>: Tile notification displays if chaos golems are alive and you've accepted the chaos golem quests. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_golems" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Hovok Tile</b>: Tile notification displays if hovok is alive and you've has accepted crest quests. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_hovok" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Corvok Tile</b>: Tile notification displays if corvok is alive and you've has accepted the Normok Reputation 2 quest. <i>Performance impact: LOW</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_corvok" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Last Crew Raid Tile</b>: Tile notification displays your crew's most recent raid. Click the tile to view the raid. <i>Performance impact: MEDIUM</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_raid" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>Outwar Events Tile</b>: Tile notification displays for Trial of Power and War of Zhul events. <i>Performance impact: MEDIUM</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_events" class="checkbox"></div>
<div class="col-10" style="margin-bottom:1rem !important;"><b>God Camp TIle</b>: Tile notification displays if your char is in a room with a god mob who hasn't been killed in the past 24 hours. <i>Performance impact: MEDIUM</i></div>
<div class="col-2" style="margin-bottom:2rem !important;"><input type="checkbox" id="tileon_camps" class="checkbox"></div>
</div><p style="margin:0.5rem;"><a href="javascript:void(0);" class="dcbtn" id="tiles_update">UPDATE</a>
`
if (GM_getValue("hometiles") == true){$("#hometiles").attr("checked", true)}
if (GM_getValue("tbnotifications") == true){$("#tbnotifications").attr("checked", true)}
if (GM_getValue("tileon_trade") == true){$("#tileon_trade").attr("checked", true)}
if (GM_getValue("tileon_glad") == true){$("#tileon_glad").attr("checked", true)}
if (GM_getValue("tileon_gods") == true){$("#tileon_gods").attr("checked", true)}
if (GM_getValue("tileon_brawl") == true){$("#tileon_brawl").attr("checked", true)}
if (GM_getValue("tileon_boss") == true){$("#tileon_boss").attr("checked", true)}
if (GM_getValue("tileon_supplies") == true){$("#tileon_supplies").attr("checked", true)}
if (GM_getValue("tileon_strength") == true){$("#tileon_strength").attr("checked", true)}
if (GM_getValue("tileon_veiled") == true){$("#tileon_veiled").attr("checked", true)}
if (GM_getValue("tileon_golems") == true){$("#tileon_golems").attr("checked", true)}
if (GM_getValue("tileon_hovok") == true){$("#tileon_hovok").attr("checked", true)}
if (GM_getValue("tileon_corvok") == true){$("#tileon_corvok").attr("checked", true)}
if (GM_getValue("tileon_raid") == true){$("#tileon_raid").attr("checked", true)}
if (GM_getValue("tileon_events") == true){$("#tileon_events").attr("checked", true)}
if (GM_getValue("tileon_camps") == true){$("#tileon_camps").attr("checked", true)}
document.querySelector("#tiles_update").addEventListener("click", tiles_update);
function tiles_update(){
if (document.querySelector("#hometiles").checked == true){GM_setValue("hometiles", true)} else {GM_setValue("hometiles", false)}
if (document.querySelector("#tbnotifications").checked == true){GM_setValue("tbnotifications", true)} else {GM_setValue("tbnotifications", false)}
if (document.querySelector("#tileon_trade").checked == true){GM_setValue("tileon_trade", true)} else {GM_setValue("tileon_trade", false)}
if (document.querySelector("#tileon_glad").checked == true){GM_setValue("tileon_glad", true)} else {GM_setValue("tileon_glad", false)}
if (document.querySelector("#tileon_gods").checked == true){GM_setValue("tileon_gods", true)} else {GM_setValue("tileon_gods", false)}
if (document.querySelector("#tileon_brawl").checked == true){GM_setValue("tileon_brawl", true)} else {GM_setValue("tileon_brawl", false)}
if (document.querySelector("#tileon_boss").checked == true){GM_setValue("tileon_boss", true)} else {GM_setValue("tileon_boss", false)}
if (document.querySelector("#tileon_supplies").checked == true){GM_setValue("tileon_supplies", true)} else {GM_setValue("tileon_supplies", false)}
if (document.querySelector("#tileon_strength").checked == true){GM_setValue("tileon_strength", true)} else {GM_setValue("tileon_strength", false)}
if (document.querySelector("#tileon_veiled").checked == true){GM_setValue("tileon_veiled", true)} else {GM_setValue("tileon_veiled", false)}
if (document.querySelector("#tileon_golems").checked == true){GM_setValue("tileon_golems", true)} else {GM_setValue("tileon_golems", false)}
if (document.querySelector("#tileon_hovok").checked == true){GM_setValue("tileon_hovok", true)} else {GM_setValue("tileon_hovok", false)}
if (document.querySelector("#tileon_corvok").checked == true){GM_setValue("tileon_corvok", true)} else {GM_setValue("tileon_corvok", false)}
if (document.querySelector("#tileon_raid").checked == true){GM_setValue("tileon_raid", true)} else {GM_setValue("tileon_raid", false)}
if (document.querySelector("#tileon_events").checked == true){GM_setValue("tileon_events", true)} else {GM_setValue("tileon_events", false)}
if (document.querySelector("#tileon_camps").checked == true){GM_setValue("tileon_camps", true)} else {GM_setValue("tileon_camps", false)}
window.location.href = "user_preferences"}
}
document.querySelector("#rgas").addEventListener("click", rgas);
function rgas(){document.querySelector("#native_div").innerHTML = `
<h4>RGA Session Storage</h4>
<textarea id="sessiddropdown" class="mmplus_ids" cols="70" rows="10"></textarea><p>
<span id="count">List session ids seperated by commas or paste from OWH</span><p>
<p style="margin:0.5rem;"><a href="javascript:void(0);" class="dcbtn" id="rgas_reset">RESET</a> <a href="javascript:void(0);" class="dcbtn" id="rgas_update">UPDATE</a>
`
var saved_sessids = ''
if (GM_getValue("sessioniddropdown") == undefined || GM_getValue("sessioniddropdown") == "" || GM_getValue("sessioniddropdown") == "|") {GM_setValue("sessioniddropdown","no sessions saved")}
if (GM_getValue("sessioniddropdown") != "no sessions saved" && GM_getValue("sessioniddropdown") != undefined) {saved_sessids = GM_getValue("sessioniddropdown").match(/rg_sess_id=[A-Za-z0-9]+&/g).toString().replaceAll(/rg_sess_id=/g,"").replaceAll("&","")}
if (GM_getValue("sessioniddropdown") == "no sessions saved" || GM_getValue("sessioniddropdown") == undefined) {saved_sessids = "no sessions saved"}
document.querySelector("#sessiddropdown").value = saved_sessids
document.querySelector("#rgas_reset").addEventListener("click", rgas_reset);
function rgas_reset(){
GM.deleteValue("sessioniddropdown")
window.location.href = "user_preferences"
}
GM_addStyle (`#rga_update_load{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
function rgas_update(){
customrga = document.querySelector("#sessiddropdown").value;
$("body").append (`<div id="rga_update_load"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
task27();}
$("#sessiddropdown").keyup(function(){
if ($(this).val().match(":") != null){
$("#sessiddropdown").val(function(i, v){return v.replaceAll(/[A-Za-z0-9]+:/g,"").replaceAll("\n",",").replaceAll(" ","")})};
var count = $(this).val().replaceAll(",","").length/32;
var commas = ($(this).val().match(/,/g)||[]).length;
var spaces = ($(this).val().match(/ /g)||[]).length;
$("#count").text(count+" sessions found");
if (count!=commas+1 || spaces >= 1){
document.querySelector("#count").innerHTML = "<font color=#FF0000><b>incorrect session formatting</b></font>"
document.getElementById ("rgas_update").removeEventListener("click", rgas_update)
GM_addStyle (`#rgas_update{opacity:0.5 !important;}`)}
if (document.querySelector("#sessiddropdown").value == "" || document.querySelector("#sessiddropdown").value == "no sessions saved"){
document.querySelector("#count").innerHTML = ""
document.getElementById ("rgas_update").addEventListener("click", rgas_update)
GM_addStyle (`#rgas_update{opacity:1 !important;}`)}
if (count==commas+1 && spaces == 0){document.getElementById ("rgas_update").addEventListener("click", rgas_update)
GM_addStyle (`#rgas_update{opacity:1 !important;}`)}
if (document.querySelector("#sessiddropdown").value == ""){
document.querySelector("#count").innerHTML = "<b>List session ids seperated by commas or paste from OWH</b>"
document.getElementById ("rgas_update").removeEventListener("click", rgas_update)
GM_addStyle (`#rgas_update{opacity:0.5 !important;}`)}
})
}
document.querySelector("#world").addEventListener("click", world);
function world(){document.querySelector("#native_div").innerHTML = `
<h4>World Settings and Tools</h4>
<div class="row text-left">
<div class="col-6"><b>Fast Travel Name</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("mydestinationname")+`" maxlength="11" id="input_mydestinationname" name="boxcolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Fast Travel Room Number</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("mydestination")+`" id="input_mydestination" name="boxcolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Player Indicator</b></div>
<div class="col-6">
<div class="yah yah0"><a href="javascript:void(0);" id="yah0"><img src="https://studiomoxxi.com/moxximod/plus_yah/YAH.gif"></a></div>
<div class="yah yah1"><a href="javascript:void(0);" id="yah1"><img src="https://studiomoxxi.com/moxximod/plus_yah/YAH1.gif"></a></div>
<div class="yah yah2"><a href="javascript:void(0);" id="yah2"><img src="https://studiomoxxi.com/moxximod/plus_yah/YAH2.gif"></a></div>
<div class="yah yah3"><a href="javascript:void(0);" id="yah3"><img src="https://studiomoxxi.com/moxximod/plus_yah/YAH3.gif"></a></div>
<div class="yah yah4"><a href="javascript:void(0);" id="yah4"><img src="https://studiomoxxi.com/moxximod/plus_yah/YAH4.gif"></a></div>
<div class="yah yah5"><a href="javascript:void(0);" id="yah5"><img src="https://studiomoxxi.com/moxximod/plus_yah/YAH5.gif"></a></div>
<input type="text" placeholder="`+GM_getValue("mydestination")+`" id="yah_img" name="yah_img" class="advinput" size="15" autocomplete="off">
</div>
</div><p style="margin:0.5rem;"><a href="javascript:void(0);" class="dcbtn" id="world_reset">RESET</a> <a href="javascript:void(0);" class="dcbtn" id="world_update">UPDATE</a>
`
document.querySelector("#yah0").addEventListener("click", yah0); function yah0(){document.querySelector("#yah_img").value = "https://studiomoxxi.com/moxximod/plus_yah/YAH.gif"; GM_addStyle (`div.yah{border:0px !important;}div.yah0{border:2px #4361EE SOLID !important;}`)}
document.querySelector("#yah1").addEventListener("click", yah1); function yah1(){document.querySelector("#yah_img").value = "https://studiomoxxi.com/moxximod/plus_yah/YAH1.gif"; GM_addStyle (`div.yah{border:0px !important;}div.yah1{border:2px #4361EE SOLID !important;}`)}
document.querySelector("#yah2").addEventListener("click", yah2); function yah2(){document.querySelector("#yah_img").value = "https://studiomoxxi.com/moxximod/plus_yah/YAH2.gif"; GM_addStyle (`div.yah{border:0px !important;}div.yah2{border:2px #4361EE SOLID !important;}`)}
document.querySelector("#yah3").addEventListener("click", yah3); function yah3(){document.querySelector("#yah_img").value = "https://studiomoxxi.com/moxximod/plus_yah/YAH3.gif"; GM_addStyle (`div.yah{border:0px !important;}div.yah3{border:2px #4361EE SOLID !important;}`)}
document.querySelector("#yah4").addEventListener("click", yah4); function yah4(){document.querySelector("#yah_img").value = "https://studiomoxxi.com/moxximod/plus_yah/YAH4.gif"; GM_addStyle (`div.yah{border:0px !important;}div.yah4{border:2px #4361EE SOLID !important;}`)}
document.querySelector("#yah5").addEventListener("click", yah5); function yah5(){document.querySelector("#yah_img").value = "https://studiomoxxi.com/moxximod/plus_yah/YAH5.gif"; GM_addStyle (`div.yah{border:0px !important;}div.yah5{border:2px #4361EE SOLID !important;}`)}
document.querySelector("#world_update").addEventListener("click", world_update);
function world_update(){
customworld = "fasttravelname|" + document.querySelector("#input_mydestinationname").value + "|fasttravelroomnumber|" + document.querySelector("#input_mydestination").value + "|playerindicator|" + document.querySelector("#yah_img").value
task28()}
document.querySelector("#world_reset").addEventListener("click", world_reset); function world_reset(){
GM.deleteValue("mydestination")
GM.deleteValue("mydestinationname")
GM.deleteValue("playerindicator")
window.location.href = "user_preferences"
}
}
document.querySelector("#theme").addEventListener("click", theme);
function theme(){document.querySelector("#native_div").innerHTML = `
<h4>MoxxiMod+ Custom Theme</h4>
<div class="row text-left">
<div class="col-6"><b>Outwar Wallpaper</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("wallpaper")+`" id="wallurl" name="wallurl" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Menu Background Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_menu")+`" id="menucolor" name="menucolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Menu Text Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_menutext")+`" id="menutext" name="menutext" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Toolbar Background Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_tool")+`" id="toolcolor" name="toolcolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Content Background Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_content")+`" id="contentcolor" name="contentcolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Table Background Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_table")+`" id="tablecolor" name="tablecolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Scrollbar Slider Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_slide")+`" id="slidecolor" name="slidecolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Scrollbar Track Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_track")+`" id="trackcolor" name="trackcolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Text Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_text")+`" id="textcolor" name="textcolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Link Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_link")+`" id="linkcolor" name="linkcolor" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Link Hover Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_linkhover")+`" id="linkhover" name="linkhover" class="advinput" size="36" autocomplete="off"></div>
<div class="col-6"><b>Text Box Color</b></div>
<div class="col-6"><input type="text" placeholder="`+GM_getValue("hex_box")+`" id="boxcolor" name="boxcolor" class="advinput" size="36" autocomplete="off"></div>
</div><p style="margin:0.5rem;"><a href="javascript:void(0);" class="dcbtn" id="theme_default">DEFAULT</a> <a href="javascript:void(0);" class="dcbtn" id="theme_update">UPDATE</a><p style="margin:1.5rem;">
Select a premade theme<p>
<div class="premade_div">
<div class="premade pm01"><a href="javascript:void(0);" id="premade01"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/01.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm02"><a href="javascript:void(0);" id="premade02"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/02.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm03"><a href="javascript:void(0);" id="premade03"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/03.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm04"><a href="javascript:void(0);" id="premade04"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/04.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm05"><a href="javascript:void(0);" id="premade05"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/05.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm06"><a href="javascript:void(0);" id="premade06"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/06.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm07"><a href="javascript:void(0);" id="premade07"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/07.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm08"><a href="javascript:void(0);" id="premade08"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/08.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm09"><a href="javascript:void(0);" id="premade09"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/09.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm10"><a href="javascript:void(0);" id="premade10"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/10.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm11"><a href="javascript:void(0);" id="premade11"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/11.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm12"><a href="javascript:void(0);" id="premade12"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/12.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm13"><a href="javascript:void(0);" id="premade13"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/13.webp" class="theme_button"><p></a>by Joey</div>
<div class="premade pm14"><a href="javascript:void(0);" id="premade14"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/14.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm15"><a href="javascript:void(0);" id="premade15"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/15.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm16"><a href="javascript:void(0);" id="premade16"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/16.webp" class="theme_button"><p></a>by Joey</div>
<div class="premade pm17"><a href="javascript:void(0);" id="premade17"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/17.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm18"><a href="javascript:void(0);" id="premade18"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/18.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm19"><a href="javascript:void(0);" id="premade19"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/19.webp" class="theme_button"><p></a>by Shawn</div>
<div class="premade pm20"><a href="javascript:void(0);" id="premade20"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/20.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm21"><a href="javascript:void(0);" id="premade21"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/21.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm22"><a href="javascript:void(0);" id="premade22"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/22.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm23"><a href="javascript:void(0);" id="premade23"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/23.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm24"><a href="javascript:void(0);" id="premade24"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/24.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm25"><a href="javascript:void(0);" id="premade25"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/25.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm26"><a href="javascript:void(0);" id="premade26"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/26.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm27"><a href="javascript:void(0);" id="premade27"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/27.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm28"><a href="javascript:void(0);" id="premade28"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/28.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm29"><a href="javascript:void(0);" id="premade29"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/29.webp" class="theme_button"><p></a>by Ben</div>
<div class="premade pm30"><a href="javascript:void(0);" id="premade30"><img src="https://studiomoxxi.com/moxximod/plus_wallpapers/30.webp" class="theme_button"><p></a>by Ben</div>
</div>
<div id="admin"><a href="javascript:void(0);" id="dev">dev</a></div>
`
var wall = "https://studiomoxxi.com/moxximod/plus_wallpapers/"
var f01 = document.querySelector("#wallurl"); var f02 = document.querySelector("#menucolor"); var f03 = document.querySelector("#menutext"); var f04 = document.querySelector("#toolcolor"); var f05 = document.querySelector("#contentcolor"); var f06 = document.querySelector("#tablecolor"); var f07 = document.querySelector("#slidecolor"); var f08 = document.querySelector("#trackcolor"); var f09 = document.querySelector("#textcolor"); var f10 = document.querySelector("#linkcolor"); var f11 = document.querySelector("#linkhover"); var f12 = document.querySelector("#boxcolor");
document.querySelector("#premade01").addEventListener("click", premade01); function premade01(){f01.value = wall+"01.webp";f02.value="121F28";f03.value="FCF8DD";f04.value="121F28";f05.value="112435";f06.value="173B5B";f07.value="173B5B";f08.value="234769";f09.value="FFF9DE";f10.value="ACC0C1";f11.value="4D7190";f12.value="122335"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm01 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade02").addEventListener("click", premade02); function premade02(){f01.value = wall+"02.webp";f02.value="545154";f03.value="FFFFFF";f04.value="29313A";f05.value="29313A";f06.value="445865";f07.value="545154";f08.value="777478";f09.value="FFFFFF";f10.value="FFFFFF";f11.value="1EA6C6";f12.value="434B6D"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm02 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade03").addEventListener("click", premade03); function premade03(){f01.value = wall+"03.webp";f02.value="000228";f03.value="FFFFFF";f04.value="010005";f05.value="0E0D31";f06.value="021A54";f07.value="041E6E";f08.value="F702F9";f09.value="FFFFFF";f10.value="F504F4";f11.value="50ECFB";f12.value="191B63"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm03 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade04").addEventListener("click", premade04); function premade04(){f01.value = wall+"04.webp";f02.value="3E3B3F";f03.value="FFFFFF";f04.value="3E3B3F";f05.value="5A575B";f06.value="494649";f07.value="5A575B";f08.value="E94C3F";f09.value="FFFFFF";f10.value="E94C3F";f11.value="FFFFFF";f12.value="E94C3F"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm04 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade05").addEventListener("click", premade05); function premade05(){f01.value = wall+"05.webp";f02.value="0E0E0E";f03.value="AAAAAA";f04.value="0E0E0E";f05.value="010101";f06.value="141414";f07.value="2A2A2A";f08.value="5F5F5F";f09.value="AAAAAA";f10.value="FFFFFF";f11.value="5F5F5F";f12.value="2A2A2A"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm05 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade06").addEventListener("click", premade06); function premade06(){f01.value = wall+"06.webp";f02.value="182432";f03.value="6D7D88";f04.value="0E0513";f05.value="131629";f06.value="160D1C";f07.value="182432";f08.value="131629";f09.value="6D7D88";f10.value="4E7C7D";f11.value="436E5D";f12.value="160D1C"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm06 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade07").addEventListener("click", premade07); function premade07(){f01.value = wall+"07.webp";f02.value="0A0901";f03.value="D5E8F1";f04.value="150A05";f05.value="100B04";f06.value="1B131A";f07.value="0A0901";f08.value="1D3A47";f09.value="A2A39E";f10.value="D5E8F1";f11.value="F8E63F";f12.value="1B131A"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm07 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade08").addEventListener("click", premade08); function premade08(){f01.value = wall+"08.webp";f02.value="2A394E";f03.value="FBE54C";f04.value="100E11";f05.value="0D1212";f06.value="1D2730";f07.value="632F2F";f08.value="FBE54C";f09.value="D5C7AE";f10.value="FE644A";f11.value="FBE54C";f12.value="632F2F"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm08 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade09").addEventListener("click", premade09); function premade09(){f01.value = wall+"09.webp";f02.value="01050B";f03.value="C712E3";f04.value="0C1C29";f05.value="0C1C29";f06.value="01050B";f07.value="321145";f08.value="C712E3";f09.value="96AAAA";f10.value="49EDF5";f11.value="0C55F0";f12.value="321145"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm09 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade10").addEventListener("click", premade10); function premade10(){f01.value = wall+"10.webp";f02.value="0F100B";f03.value="B9921C";f04.value="171511";f05.value="0B0905";f06.value="201F19";f07.value="171511";f08.value="D3B12C";f09.value="D3B12C";f10.value="D3B12C";f11.value="C4760D";f12.value="E8E5B6"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm10 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade11").addEventListener("click", premade11); function premade11(){f01.value = wall+"11.webp";f02.value="191919";f03.value="919191";f04.value="121212";f05.value="232323";f06.value="1A1A1A";f07.value="212340";f08.value="848AFF";f09.value="919191";f10.value="848AFF";f11.value="5B5B5B";f12.value="111111"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm11 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade12").addEventListener("click", premade12); function premade12(){f01.value = wall+"12.webp";f02.value="14323A";f03.value="B3D6E3";f04.value="10302E";f05.value="071a17";f06.value="14323A";f07.value="071a17";f08.value="5AC5D1";f09.value="CEE4ED";f10.value="5AC5D1";f11.value="B3D6E3";f12.value="071A17"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm12 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade13").addEventListener("click", premade13); function premade13(){f01.value = wall+"13.webp";f02.value="131110";f03.value="a6d934";f04.value="000000";f05.value="151414";f06.value="151414";f07.value="274e13";f08.value="8fce00";f09.value="8fce00";f10.value="8fce00";f11.value="C4760D";f12.value="292421"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm13 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade14").addEventListener("click", premade14); function premade14(){f01.value = wall+"14.webp";f02.value="262626";f03.value="FFFFFF";f04.value="272727";f05.value="141414";f06.value="000000";f07.value="262626";f08.value="FFFF00";f09.value="FFFFFF";f10.value="FFFF00";f11.value="1B1B1B";f12.value="0F0F0F"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm14 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade15").addEventListener("click", premade15); function premade15(){f01.value = wall+"15.webp";f02.value="091820";f03.value="FA928F";f04.value="071D31";f05.value="071D31";f06.value="0C1F27";f07.value="0C1F27";f08.value="FA928F";f09.value="A2868B";f10.value="2AA7D9";f11.value="DB5479";f12.value="3B2B3D"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm15 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade16").addEventListener("click", premade16); function premade16(){f01.value = wall+"16.webp";f02.value="131110";f03.value="d05404";f04.value="000000";f05.value="151414";f06.value="151414";f07.value="000000";f08.value="9a9ee3";f09.value="6b6e9e";f10.value="6b6e9e";f11.value="c4760d";f12.value="292421"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm16 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade17").addEventListener("click", premade17); function premade17(){f01.value = wall+"17.webp";f02.value="02242D";f03.value="B2F7FE";f04.value="041823";f05.value="02283C";f06.value="033F4C";f07.value="6CC9D7";f08.value="02283C";f09.value="8CD8F0";f10.value="FFFFFF";f11.value="22E8E0";f12.value="02283C"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm17 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade18").addEventListener("click", premade18); function premade18(){f01.value = wall+"18.webp";f02.value="060C11";f03.value="9E9981";f04.value="292217";f05.value="1E241B";f06.value="060C11";f07.value="DCC10C";f08.value="060C11";f09.value="9E9981";f10.value="B49563";f11.value="F7ED66";f12.value="292217"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm18 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade19").addEventListener("click", premade19); function premade19(){f01.value = wall+"19.webp";f02.value="0E1726";f03.value="A233FF";f04.value="312820";f05.value="1B1912";f06.value="031614";f07.value="9fe5e0";f08.value="173D52";f09.value="9fe5e0";f10.value="a233ff";f11.value="37c050";f12.value="1B1912"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm19 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade20").addEventListener("click", premade20); function premade20(){f01.value = wall+"20.webp";f02.value="210D51";f03.value="EFD8E5";f04.value="1B2259";f05.value="120C41";f06.value="42113A";f07.value="DF97A6";f08.value="7F2079";f09.value="C7D7EB";f10.value="DF97A6";f11.value="EFD8E5";f12.value="42113A"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm20 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade21").addEventListener("click", premade21); function premade21(){f01.value = wall+"21.webp";f02.value="232422";f03.value="42c0f0";f04.value="30312f";f05.value="2a2b28";f06.value="30312f";f07.value="d9d40a";f08.value="4a4b49";f09.value="e5e5e5";f10.value="6dcc3f";f11.value="cd56d5";f12.value="2a2b28"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm21 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade22").addEventListener("click", premade22); function premade22(){f01.value = wall+"22.webp";f02.value="4A4D71";f03.value="B49BA8";f04.value="313448";f05.value="181F39";f06.value="313448";f07.value="A18A9B";f08.value="181F39";f09.value="B3B3B3";f10.value="F3BDEF";f11.value="AF9BE1";f12.value="181F39"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm22 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade23").addEventListener("click", premade23); function premade23(){f01.value = wall+"23.webp";f02.value="02081A";f03.value="FCE7CB";f04.value="0F0615";f05.value="111C28";f06.value="210B15";f07.value="FFC8E0";f08.value="02081A";f09.value="FBF0DE";f10.value="FFC8E0";f11.value="6A1F4A";f12.value="421434"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm23 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade24").addEventListener("click", premade24); function premade24(){f01.value = wall+"24.webp";f02.value="07121E";f03.value="C8C388";f04.value="0E0E17";f05.value="0A0D15";f06.value="23262E";f07.value="A3772A";f08.value="07121E";f09.value="D3EDFA";f10.value="FFEF58";f11.value="7BB4F9";f12.value="342839"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm24 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade25").addEventListener("click", premade25); function premade25(){f01.value = wall+"25.webp";f02.value="01344a";f03.value="E35A68";f04.value="012338";f05.value="393047";f06.value="01344A";f07.value="CEF382";f08.value="E35A68";f09.value="CEF382";f10.value="EE9B5A";f11.value="E35A68";f12.value="412F42"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm25 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade26").addEventListener("click", premade26); function premade26(){f01.value = wall+"26.webp";f02.value="160F0F";f03.value="626476";f04.value="161115";f05.value="372929";f06.value="403945";f07.value="FBFDF0";f08.value="403945";f09.value="FBFDF0";f10.value="A3A995";f11.value="574D5E";f12.value="4B3B3A"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm26 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade27").addEventListener("click", premade27); function premade27(){f01.value = wall+"27.webp";f02.value="161616";f03.value="606060";f04.value="060606";f05.value="1A1A1A";f06.value="070707";f07.value="606060";f08.value="161616";f09.value="d6d6d6";f10.value="00C600";f11.value="606060";f12.value="272727"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm27 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade28").addEventListener("click", premade28); function premade28(){f01.value = wall+"28.webp";f02.value="121c1c";f03.value="98A76C";f04.value="07041a";f05.value="260c19";f06.value="4f252d";f07.value="8a4e67";f08.value="57412b";f09.value="DE9751";f10.value="5c8a82";f11.value="F0B667";f12.value="050317"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm28 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade29").addEventListener("click", premade29); function premade29(){f01.value = wall+"29.webp";f02.value="080C10";f03.value="ADB3BA";f04.value="080C10";f05.value="12151D";f06.value="153972";f07.value="528ce7";f08.value="080C10";f09.value="ADB3BA";f10.value="a6b9d7";f11.value="528ce7";f12.value="153972"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm29 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#premade30").addEventListener("click", premade30); function premade30(){f01.value = wall+"30.webp";f02.value="061018";f03.value="606060";f04.value="251314";f05.value="040306";f06.value="251314";f07.value="7C4733";f08.value="061018";f09.value="cab3ad";f10.value="dfaccb";f11.value="9A3128";f12.value="251314"; GM_addStyle (`div.premade > a > img {border:0px !important;}div.pm30 > a > img {border:4px #4361EE SOLID !important;}`)}
document.querySelector("#dev").addEventListener("click", dev);
document.querySelector("#theme_update").addEventListener("click", theme_update);
function theme_update(){
customtheme = "wallurl|" + document.querySelector("#wallurl").value + "|menucolor|" + document.querySelector("#menucolor").value + "|menutext|" + document.querySelector("#menutext").value + "|toolcolor|" + document.querySelector("#toolcolor").value + "|contentcolor|" + document.querySelector("#contentcolor").value + "|tablecolor|" + document.querySelector("#tablecolor").value + "|slidecolor|" + document.querySelector("#slidecolor").value + "|trackcolor|" + document.querySelector("#trackcolor").value + "|textcolor|" + document.querySelector("#textcolor").value + "|linkcolor|" + document.querySelector("#linkcolor").value + "|linkhover|" + document.querySelector("#linkhover").value + "|boxcolor|" + document.querySelector("#boxcolor").value
task29()}
document.querySelector("#theme_default").addEventListener("click", theme_default);
function theme_default(){
GM.deleteValue("wallpaper")
GM.deleteValue("hex_menu")
GM.deleteValue("hex_tool")
GM.deleteValue("hex_content")
GM.deleteValue("hex_table")
GM.deleteValue("hex_track")
GM.deleteValue("hex_slide")
GM.deleteValue("hex_text")
GM.deleteValue("hex_menutext")
GM.deleteValue("hex_link")
GM.deleteValue("hex_linkhover")
GM.deleteValue("hex_box")
window.location.href = "user_preferences"}
}
}
var copy = `f02.value="`+GM_getValue("hex_menu")+`";f03.value="`+GM_getValue("hex_menutext")+`";f04.value="`+GM_getValue("hex_tool")+`";f05.value="`+GM_getValue("hex_content")+`";f06.value="`+GM_getValue("hex_table")+`";f07.value="`+GM_getValue("hex_slide")+`";f08.value="`+GM_getValue("hex_track")+`";f09.value="`+GM_getValue("hex_text")+`";f10.value="`+GM_getValue("hex_link")+`";f11.value="`+GM_getValue("hex_linkhover")+`";f12.value="`+GM_getValue("hex_box")+`";`
function dev(){
document.querySelector("#dev").outerHTML = `<input type="text" id="devinput" size="50" autocomplete="off" onclick="this.select();">`
document.querySelector("#devinput").value = copy;}
if (document.URL.indexOf("home") == -1 && document.URL.indexOf("mob") == -1 && document.URL.indexOf("raidattack") == -1 && document.URL.indexOf("closedpvp") == -1 && document.URL.indexOf("treasury.php?type=vision") == -1 && document.URL.indexOf("cast_skills") == -1 && document.URL.indexOf("privacy") == -1) {
if (GM_getValue("skillstab") == true){
GM_addStyle ( `
#tooltab{position:fixed !important;right:7px !important;top: 50px !important;width:103px !important;}
#tooltab > center > img{margin:2px !important;width:25px !important; height:25px !important;}
`);
fetch("cast_skills")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const skillsdiv = doc.querySelector("#basic > div.widget-content.widget-content-area > div:nth-child(1) > div:nth-child(1) > div > div").innerHTML
$("body").append (`<div id="tooltab" class="widget widget-chart-one mb-3 tiles"><center><a href=cast_skills>SKILLS</a><br>`+skillsdiv+`</div>`);})
}
}
GM_addStyle (`#auto {background:#191B2B;position:fixed !important; left: 200px !important; top: 60px !important;padding:10px !important; z-index:10000 !important;color:#FFFFFF;box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);}}`);
if (GM_getValue("autotoken") == true){
setTimeout(function() {
fetch("ajax/challenge_claim.php")
.then(response => response.text())
.then((response) => {
if (response.match("You have been awarded 3 challenge tokens") != null){
$("body").append (`<div id="auto">TOKENS COLLECTED</div>`);
setTimeout(function() {GM_addStyle (`#auto{display:none !important;}`);},5000);}
})},4000);
}
if (GM_getValue("autoguard") == true){
setTimeout(function() {
fetch('cast_skills.php', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
'castskillid': '7',
'cast': 'Cast Skill'
})
}).then(res => res.text())
.then(res => {
if (res.match("You just cast On Guard") != null) {
$("body").append (`<div id="auto">ON GUARD CAST</div>`);
setTimeout(function() {GM_addStyle (`#auto{display:none !important;}`);},5000);
}});},5000);
}
var toolbar = document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav")
var ppcrown = document.querySelector("body > center > div.sub-header-container").innerHTML
if (ppcrown.match(/PP\.png/i) != null){
GM_addStyle (`body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li:nth-child(1) > div > span > span.selection > span,#dropdown{-webkit-box-shadow:0px 0px 5px 3px rgba(209,156,32,0.75) !important;
-moz-box-shadow: 0px 0px 5px 3px rgba(209,156,32,0.75) !important;
box-shadow: 0px 0px 5px 3px rgba(209,156,32,0.75); !important}`);}
if (GM_getValue("servswitch") == true){
let toolbar_servers = document.createElement('li');
toolbar_servers.innerHTML = `
<p class="top-rage"><span class="toolbar_rage"><a href="javascript:void(0);" id="server_switch">SWITCH SERVERS</a></span></p>`
toolbar_servers.setAttribute("class","nav-item more-dropdown little-space hide-on-mob")
insertAfter(toolbar_servers, toolbar.lastElementChild);
document.querySelector("#server_switch").addEventListener("click", server_switch, false);
function server_switch (divid) {
var server_id = ''; if (window.location.href.replace("https://","").replace(/\.outwar\.com.*/i,"") == "sigil"){server_id = 2} if (window.location.href.replace("https://","").replace(/\.outwar\.com.*/i,"") == "torax"){server_id = 1}
fetch("myaccount.php?ac_serverid="+server_id)
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const char1 = doc.querySelector("#zero-config > tbody > tr:nth-child(1) > td:nth-child(2) > a").outerHTML.match(/href="([^"]*)"/i)[1].toString().replace("amp;","")
window.location.href=char1})}
}
if (GM_getValue("bauth_r") != undefined){
if (GM_getValue("bauth_r").match("Full") != null){
let toolbar_sub = document.createElement('li');
toolbar_sub.innerHTML = `<a href="javascript:void(0);" id="authhelp"><img src=https://studiomoxxi.com/moxximod/logo_plus.png onmouseover="statspopup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Click for help with RGA auths')" onmouseout="kill()"></a>`
toolbar_sub.setAttribute("class","nav-item more-dropdown little-space hide-on-mob")
insertAfter(toolbar_sub, toolbar.children[3]);
document.getElementById ("authhelp").addEventListener("click", task18, false);
}}
function locker_button (divid) {
fetch("ajax/backpackcontents.php?tab=key")
.then(response => response.text())
.then((response) => {
var key = response.match(/data-name="Veiled Teleporter".*data-iid="([0-9]+)"/i)
if (key == null) {alert("you do not have the item required")}
fetch('ajax/backpack_action.php', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
'action': 'activate',
'itemids[]': key[1]
})})
.then(res => res.text())
.then(res => {
if (res.match("activated!") != null) {window.location.href="world"}
});})}
function veldara_button (divid) {
fetch("ajax/backpackcontents.php?tab=key")
.then(response => response.text())
.then((response) => {
var key = response.match(/data-name="Veldara Teleporter".*data-iid="([0-9]+)"/i)
if (key == null) {alert("you do not have the item required")}
fetch('ajax/backpack_action.php', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
'action': 'activate',
'itemids[]': key[1]
})})
.then(res => res.text())
.then(res => {
if (res.match("activated!") != null) {window.location.href="world"}
});})}
function kix_button (divid) {
fetch("ajax/backpackcontents.php?tab=key")
.then(response => response.text())
.then((response) => {
var key = response.match(/data-name="Radiation Meter".*data-iid="([0-9]+)"/i)
if (key == null) {alert("you do not have the item required")}
fetch('ajax/backpack_action.php', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
'action': 'activate',
'itemids[]': key[1]
})})
.then(res => res.text())
.then(res => {
if (res.match("activated!") != null) {window.location.href="world"}
});})}
function astral_button (divid) {
fetch("ajax/backpackcontents.php?tab=key")
.then(response => response.text())
.then((response) => {
var key = response.match(/data-name="Astral Teleporter".*data-iid="([0-9]+)"/i)
if (key == null) {alert("you do not have the item required")}
fetch('ajax/backpack_action.php', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
'action': 'activate',
'itemids[]': key[1]
})})
.then(res => res.text())
.then(res => {
if (res.match("activated!") != null) {window.location.href="world"}
});})}
function plane_button (divid) {
fetch("ajax/backpackcontents.php?tab=key")
.then(response => response.text())
.then((response) => {
var key = response.match(/data-name="Planes Teleporter".*data-iid="([0-9]+)"/i)
if (key == null) {alert("you do not have the item required")}
fetch('ajax/backpack_action.php', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
'action': 'activate',
'itemids[]': key[1]
})})
.then(res => res.text())
.then(res => {
if (res.match("activated!") != null) {window.location.href="world"}
});})}
function underground_button (divid) {
fetch("ajax/backpackcontents.php?tab=key")
.then(response => response.text())
.then((response) => {
var key = response.match(/data-name="Experimental Teleporter".*data-iid="([0-9]+)"/i)
if (key == null) {alert("you do not have the item required")}
fetch('ajax/backpack_action.php', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
'action': 'activate',
'itemids[]': key[1]
})})
.then(res => res.text())
.then(res => {
if (res.match("activated!") != null) {window.location.href="world"}
});})}
GM_xmlhttpRequest ( {
method: 'GET',
url: '/ajax/backpackcontents.php?tab=quest',
onload: function (responseDetails) {
const ammyID = /Amulet of Achievement" data-itemqty="([0-9]*)"/g;
const ammyRes = ammyID.exec(responseDetails.responseText);
const badgeID = /Badge Reputation" data-itemqty="([0-9]*)"/g;
const badgeRes = badgeID.exec(responseDetails.responseText);
fetch('ajax/challenge_status.php')
.then(response => response.text())
.then((response) => {
var claimed = response.match(/tokens":"(.*)","p_tokens"/i)
var freeTok = '';
if (claimed[1] < 30){freeTok = claimed[1]}
if (claimed[1] > 29){freeTok = "<font color=#e2b300>"+claimed[1]+"</font>"}
var ammyPrint = '';
if (ammyRes != null){ammyPrint = ammyRes[1]}
if (ammyRes == null){ammyPrint = "0"}
var badgePrint = '';
if (badgeRes != null){badgePrint = badgeRes[1]}
if (badgeRes == null){badgePrint ="0"}
var ammyCnt = ammyPrint
var ammy = ammyCnt;
var badgeCnt = badgePrint
var badge = '';
if (badgeCnt < 15){badge = badgeCnt}
if (badgeCnt > 14){badge = '<font color=#79e300>'+badgeCnt+'</font>'}
var currency = '$';
if (badgeCnt < 15){currency += "$"}
if (badgeCnt > 14){currency += '<font color=#00CC00>$</font>'}
if (claimed[1] < 30){currency += "$"}
if (claimed[1] > 29){currency += "<font color=#ff0000>$</font>"}
var goldPrint = document.body.innerHTML.match(/<tr><td><b>Gold:<\/b><\/td><td>(.*)<\/td><\/tr>/i);
var pbPrint = document.body.innerHTML.match(/<tr><td><b>Points:<\/b><\/td><td><font size=2 color=#00FF00>(.*)<\/font><\/td><\/tr>/i);
var prPrint = document.body.innerHTML.match(/Premium:<\/b><\/td><td><font size=2 color=#00FF00>.*?\.<\/font><font color=#00CC00>[0-9]+<\/font>/i).toString().replace("</font><font color=#00CC00>","").replace("Premium:</b></td><td><font size=2 color=#00FF00>","").replace("</font>","");
var tkPrint = document.body.innerHTML.match(/<tr><td><b>Tokens:<\/b><\/td><td><font size=2 color=#00FF00>(.*)<\/font>/i);
var skPrint = document.body.innerHTML.match(/<tr><td><b>Skill:<\/b><\/td><td>(.*)<\/td><\/tr>/i);
document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li.nav-item.more-dropdown.little-space.hide-on-mob.ml-3 > a").outerHTML =
`<a href="#" onmouseover="statspopup(event,'<table><tr><td><b>Points:</b></td><td>`+pbPrint[1]+`</td></tr><tr><td><b>Premium:</b></td><td>`+prPrint+`</td></tr><tr><td><b>Free Tokens:</b></td><td>`+freeTok+`</td></tr><tr><td><b>Prem Tokens:</b></td><td>`+(tkPrint[1]-claimed[1])+`</td></tr><tr><td><b>Skill Points:</b></td><td>`+skPrint[1]+`</td></tr><tr><td><b>Badge Reps:</b></td><td>`+badge+`</td></tr><tr><td><b>Amulets:</b></td><td>`+ammy+`</td></tr><tr><td><b>Gold:</b></td><td>`+goldPrint[1]+`</td></tr></table>')" onmouseout="kill()"><img border="0" src="images/toolbar/Points.png" id="currency" align="middle"></a>`
if (badgeCnt >= 15){GM_addStyle(`#currency{filter: hue-rotate(90deg) !important;}`)}
if (claimed[1] == 30){GM_addStyle(`#currency{filter: hue-rotate(65deg) !important;}`)}
})}});
var toolbar_icons = document.querySelector("body > center > div.sub-header-container > header > ul.navbar-item.flex-row.ml-auto");
if (GM_getValue("bauth_r") == undefined || GM_getValue("bauth_r").match("Full") == null){
let auth_icon = document.createElement('li');
auth_icon.innerHTML = `<a href="javascript:void(0);" class="nav-link dropdown-toggle" id="auth_me" onmouseover="statspopup(event,'Activate MoxxiMod+ subscription after being authed on discord')" onmouseout="kill()">
<img src="https://studiomoxxi.com/moxximod/bot.png" width="25px" height="25px" class="navbar-logo" alt="logo">
</a>`
auth_icon.setAttribute("class","nav-item dropdown notification-dropdown hide-on-mob")
toolbar_icons.insertBefore(auth_icon, toolbar_icons.firstElementChild);
document.querySelector("#auth_me").addEventListener("click", auth_me, false);
function auth_me(){
server_go()
task18()
}
}
let download_icon = document.createElement('li');
download_icon.innerHTML = `<a id="downloadpng" href="javascript:void(0);" class="nav-link dropdown-toggle" id="slider" onmouseover="statspopup(event,'Download this page as a PNG image')" onmouseout="kill()">
<img src="https://studiomoxxi.com/moxximod/32x32[1].png" width="25px" height="25px" class="navbar-logo" alt="logo">
</a>`
download_icon.setAttribute("class","nav-item dropdown notification-dropdown hide-on-mob tb-icon-shift")
download_icon.setAttribute("id","li_downloadpng")
toolbar_icons.insertBefore(download_icon, toolbar_icons.firstElementChild);
let slider_icon = document.createElement('li');
slider_icon.innerHTML = `<a href="javascript:void(0);" class="nav-link dropdown-toggle" id="slider" onmouseover="statspopup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Skills and potions quick cast panel')" onmouseout="kill()">
<img src="https://studiomoxxi.com/moxximod/skillspots.webp" width="27px" height="27px" class="navbar-logo" alt="logo">
</a>`
slider_icon.setAttribute("class","nav-item dropdown notification-dropdown hide-on-mob tb-icon-shift")
toolbar_icons.insertBefore(slider_icon, toolbar_icons.firstElementChild);
let discord_icon = document.createElement('li');
discord_icon.innerHTML = `<a href="https://discord.com/invite/f35cccbWU8?utm_source=Discord%20Widget&utm_medium=Connect" target="BLANK" class="nav-link dropdown-toggle" id="notificationDropdown" onmouseover="statspopup(event,'Studio Moxxi Discord')" onmouseout="kill()">
<img src="https://studiomoxxi.com/moxximod/disicon.png" width="25px" height="25px" class="navbar-logo" alt="logo">
</a>`
discord_icon.setAttribute("class","nav-item dropdown notification-dropdown hide-on-mob tb-icon-shift")
toolbar_icons.insertBefore(discord_icon, toolbar_icons.firstElementChild);
if (document.URL.indexOf("home") != -1 ||
document.URL.indexOf("world") != -1 ||
document.URL.indexOf("myaccount") != -1 ||
document.URL.indexOf("user_preferences") != -1 ||
document.URL.indexOf("boss_stats") != -1) {
$("#li_downloadpng").remove()} else {
document.querySelector("#downloadpng").addEventListener("click", downloadpng_all, false)}
function downloadpng_all(){
html2canvas(document.querySelector("#content"), {
letterRendering: 1,
allowTaint: true,
onrendered: function(canvas) {
var ctx = canvas.getContext("2d");
ctx.textBaseline = "top";
ctx.font = "18px sans-serif";
ctx.fillStyle = "red";
ctx.fillText("IMAGE CREATED USING MOXXIMOD FOR OUTWAR: WWW.STUDIOMOXXI.COM", 5, 5);
return Canvas2Image.saveAsPNG(canvas);
}})}
if (document.URL.indexOf("home") != -1 && (document.URL.indexOf("crew_home") == -1 && error == false)) {
document.querySelector("#content-header-row > div.col-lg-4.col-md-4.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget.widget-table-one > div.widget-heading > h6").innerHTML = `<h6>SHOUTBOX <a href="homepost">(POST)</a>`
var home_tools = `
<h6>MOXXIMOD TOOLS</h6>`+MMbuttons
fetch("https://greasyfork.org/en/scripts/444107-moxximod")
.then(response => response.text())
.then((response) => {
var total_installs = response.match(/<span>Total installs<\/span>.*[\n\r].*><span>([0-9]+)<\/span>/i)[1]
document.querySelector("#total_installs").innerHTML = total_installs+` INSTALLATIONS`;})
var menu_left = document.querySelector("#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing");
function insertAfter(newNode, existingNode) {existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);}
let div_left = document.createElement('div');
div_left.innerHTML = `<h6>PLAYER RANKINGS</h6><span id="rankings"><center><img src=https://studiomoxxi.com/moxximod/loading-gif.gif class="loader"></center></span>`
div_left.setAttribute("class","widget widget-chart-one mb-3 rankings")
insertAfter(div_left, menu_left.children[0]);
let div_rankings = document.createElement('div');
div_rankings.innerHTML = `<h6>ALERT TILES</h6><span id="tiles"><center><img src=https://studiomoxxi.com/moxximod/loading-gif.gif class="loader"></center></span>`
div_rankings.setAttribute("class","widget widget-chart-one mb-3 tiles")
insertAfter(div_rankings, menu_left.children[0]);
let div_buttons = document.createElement('div');
div_buttons.innerHTML = home_tools
div_buttons.setAttribute("class","widget widget-chart-one mb-3 buttons")
insertAfter(div_buttons, menu_left.children[0]);
var menu_right = document.querySelector("#content-header-row > div.col-lg-4.col-md-4.col-sm-12.col-12.layout-spacing.layout-spacing");
let div_right = document.createElement('div');
div_right.innerHTML = `<h6>EQUIPMENT</h6><span id="eqhome"><img src=https://studiomoxxi.com/moxximod/loading-gif.gif class="loader"></span>`
div_right.setAttribute("class","widget widget-chart-one mb-3")
menu_right.insertBefore(div_right, menu_right.firstElementChild);
let div_tools_right = document.createElement('div');
div_tools_right.innerHTML = `<h6>THANK YOU FOR USING MOXXIMOD</h6><span id="total_installs"></span>`
div_tools_right.setAttribute("class","widget widget-chart-one mb-3")
menu_right.insertBefore(div_tools_right, menu_right.firstElementChild);
let div_expchart = document.createElement('div');
div_expchart.innerHTML = `<h6>OUTWAR LEVEL CHART</h6><div id="chart">LOADING</div>`
div_expchart.setAttribute("class","widget widget-chart-one mb-3 tiles")
div_expchart.setAttribute("style","margin-top: 1rem !important;")
insertAfter(div_expchart, menu_right.children[2]);
buttons();
if (GM_getValue("hometiles") == true){tiles()}
if (GM_getValue("hometiles") != true){
GM_addStyle (`div.tiles{min-height:35px !important;}`)
document.querySelector("#tiles").innerHTML = `Alert tiles have been disabled in <a href="user_preferences">player preferences</a>`
}
document.querySelector("#rankings").innerHTML = `<table><tr>
<td class="rankings">CHAR ELE DMG<div id="charele" class="ranking_div list-group-item"></div></td>
<td class="rankings">CHAR POWER<div id="charpower" class="ranking_div list-group-item"></div></td>
<td class="rankings">CHAR CHAOS<div id="charchaos" class="ranking_div list-group-item"></div></td>
</tr></table>`
GM_xmlhttpRequest ({
method: 'GET',
url: 'https://torax.outwar.com/ajax/rankings.php?type=char_power',
onload: function (responseDetails) {
const EQ = /.*/i;
const EQprint = EQ.exec(responseDetails.responseText);
function selectCategory(category, title, isCrew) {
$('#rank-title').html(title);
$('#ranks').hide();
$('#ranks').html('');
$('#last-updated').html('');
$.getJSON('ajax/rankings.php?type=char_power', function(data) {
$.each(data.results, function(key, value) {
var profileUrl = 'profile.php?id=' + value.id;
var stat = '0';
if(value.stat) {stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}
var html = '<li class="list-group-item list-group-item-action ranksulli">'
+ '<div class="media">'
+ '<div class="mr-3">'
+ '<div class="rank-row top">'
+ '<table><tr><td width=40px class=homerankings><div class="rank-row-number"><span> ' + value.rank + '</span></div></td><td width=215px>'
+ '<div class="rank-row-image">'
+ '<a href="' + profileUrl + '">'
+ '</a>'
+ '</div></div></div>'
+ '<div class="media-body">'
+ '<a href="' + profileUrl + '">' + value.name + '</a></td><td>'+ stat +'</h5></td></tr></table>'
+ '</div>'
+ '</li>'
$('#charpower').append(html.replaceAll(`<td width=215px><div class="rank-row-image"><a href="profile.php?id=`+charid+`"></a></div></div></div><div class="media-body"><a href="profile.php?id=`+charid+`">`,`<td style="background:#000000" width=215px><div class="rank-row-image"><a href="profile.php?id=`+charid+`"></a></div></div></div><div class="media-body"><a href="profile.php?id=`+charid+`"><font color="#FFFFFF">`))})
$('#ranks').show();}, "json")}
$(document).ready(function() {var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html())})
}})
GM_xmlhttpRequest ({
method: 'GET',
url: 'https://torax.outwar.com/ajax/rankings.php?type=char_elepower',
onload: function (responseDetails) {
const EQ = /.*/i;
const EQprint = EQ.exec(responseDetails.responseText);
function selectCategory(category, title, isCrew) {
$('#rank-title').html(title);
$('#ranks').hide();
$('#ranks').html('');
$('#last-updated').html('');
$.getJSON('ajax/rankings.php?type=char_elepower', function(data) {
$.each(data.results, function(key, value) {
var profileUrl = 'profile.php?id=' + value.id;
var stat = '0';
if(value.stat) {stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}
var html = '<li class="list-group-item list-group-item-action ranksulli">'
+ '<div class="media">'
+ '<div class="mr-3">'
+ '<div class="rank-row top">'
+ '<table><tr><td width=40px class=homerankings><div class="rank-row-number"><span> ' + value.rank + '</span></div></td><td width=215px>'
+ '<div class="rank-row-image">'
+ '<a href="' + profileUrl + '">'
+ '</a>'
+ '</div></div></div>'
+ '<div class="media-body">'
+ '<a href="' + profileUrl + '">' + value.name + '</a></td><td>'+ stat +'</h5></td></tr></table>'
+ '</div>'
+ '</li>'
$('#charele').append(html.replaceAll(`<td width=215px><div class="rank-row-image"><a href="profile.php?id=`+charid+`"></a></div></div></div><div class="media-body"><a href="profile.php?id=`+charid+`">`,`<td style="background:#000000" width=215px><div class="rank-row-image"><a href="profile.php?id=`+charid+`"></a></div></div></div><div class="media-body"><a href="profile.php?id=`+charid+`"><font color="#FFFFFF">`))})
$('#ranks').show();}, "json")}
$(document).ready(function() {var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html())})
}})
GM_xmlhttpRequest ({
method: 'GET',
url: 'https://torax.outwar.com/ajax/rankings.php?type=char_chaos',
onload: function (responseDetails) {
const EQ = /.*/i;
const EQprint = EQ.exec(responseDetails.responseText);
function selectCategory(category, title, isCrew) {
$('#rank-title').html(title);
$('#ranks').hide();
$('#ranks').html('');
$('#last-updated').html('');
$.getJSON('ajax/rankings.php?type=char_chaos', function(data) {
$.each(data.results, function(key, value) {
var profileUrl = 'profile.php?id=' + value.id;
var stat = '0';
if(value.stat ) {stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}
var html = '<li class="list-group-item list-group-item-action ranksulli">'
+ '<div class="media">'
+ '<div class="mr-3">'
+ '<div class="rank-row top">'
+ '<table><tr><td width=40px class=homerankings><div class="rank-row-number"><span> ' + value.rank + '</span></div></td><td width=215px>'
+ '<div class="rank-row-image">'
+ '<a href="' + profileUrl + '">'
+ '</a>'
+ '</div></div></div>'
+ '<div class="media-body">'
+ '<a href="' + profileUrl + '">' + value.name + '</a></td><td>'+ stat +'</h5></td></tr></table>'
+ '</div>'
+ '</li>'
$('#charchaos').append(html.replaceAll(`<td width=215px><div class="rank-row-image"><a href="profile.php?id=`+charid+`"></a></div></div></div><div class="media-body"><a href="profile.php?id=`+charid+`">`,`<td style="background:#000000" width=215px><div class="rank-row-image"><a href="profile.php?id=`+charid+`"></a></div></div></div><div class="media-body"><a href="profile.php?id=`+charid+`"><font color="#FFFFFF">`))
})
$('#ranks').show();}, "json")}
$(document).ready(function() {var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html())})
}})
document.querySelector("#chart").innerHTML =
`<table><tr><td width="45px">Level</td><td width="125px">Experience</td><td width="35px">SP</td><td width="70px">ATK</td><td width="70x">DEF</td></tr></table>
<div class="table-responsive" id="expchart"><table>
<tr><td width="45px">1</td><td width="125px">0</td><td width="35px">0</td><td width="70px">1</td><td width="70px">3</td></tr>
<tr><td>2</td><td>7</td><td>0</td><td>2</td><td>5</td></tr>
<tr><td>3</td><td>25</td><td>0</td><td>4</td><td>8</td></tr>
<tr><td>4</td><td>50</td><td>0</td><td>6</td><td>12</td></tr>
<tr><td>5</td><td>150</td><td>0</td><td>9</td><td>16</td></tr>
<tr><td>6</td><td>250</td><td>0</td><td>12</td><td>21</td></tr>
<tr><td>7</td><td>450</td><td>0</td><td>15</td><td>27</td></tr>
<tr><td>8</td><td>700</td><td>0</td><td>18</td><td>36</td></tr>
<tr><td>9</td><td>1,000</td><td>0</td><td>22</td><td>44</td></tr>
<tr><td>10</td><td>1,500</td><td>1</td><td>26</td><td>50</td></tr>
<tr><td>11</td><td>3,000</td><td>1</td><td>30</td><td>62</td></tr>
<tr><td>12</td><td>5,000</td><td>2</td><td>36</td><td>71</td></tr>
<tr><td>13</td><td>8,000</td><td>2</td><td>38</td><td>85</td></tr>
<tr><td>14</td><td>12,000</td><td>3</td><td>43</td><td>92</td></tr>
<tr><td>15</td><td>18,000</td><td>3</td><td>48</td><td>107</td></tr>
<tr><td>16</td><td>28,000</td><td>4</td><td>53</td><td>115</td></tr>
<tr><td>17</td><td>40,000</td><td>4</td><td>58</td><td>226</td></tr>
<tr><td>18</td><td>55,000</td><td>5</td><td>63</td><td>231</td></tr>
<tr><td>19</td><td>75,000</td><td>5</td><td>68</td><td>242</td></tr>
<tr><td>20</td><td>100,000</td><td>6</td><td>73</td><td>257</td></tr>
<tr><td>21</td><td>130,000</td><td>6</td><td>78</td><td>264</td></tr>
<tr><td>22</td><td>165,000</td><td>7</td><td>83</td><td>272</td></tr>
<tr><td>23</td><td>215,000</td><td>7</td><td>88</td><td>281</td></tr>
<tr><td>24</td><td>260,000</td><td>8</td><td>95</td><td>290</td></tr>
<tr><td>25</td><td>310,000</td><td>8</td><td>100</td><td>300</td></tr>
<tr><td>26</td><td>370,000</td><td>9</td><td>106</td><td>320</td></tr>
<tr><td>27</td><td>445,000</td><td>9</td><td>112</td><td>335</td></tr>
<tr><td>28</td><td>525,000</td><td>10</td><td>118</td><td>350</td></tr>
<tr><td>29</td><td>625,000</td><td>10</td><td>125</td><td>370</td></tr>
<tr><td>30</td><td>735,000</td><td>11</td><td>132</td><td>392</td></tr>
<tr><td>31</td><td>838,500</td><td>11</td><td>150</td><td>412</td></tr>
<tr><td>32</td><td>950,000</td><td>12</td><td>160</td><td>426</td></tr>
<tr><td>33</td><td>1,082,250</td><td>12</td><td>185</td><td>438</td></tr>
<tr><td>34</td><td>1,224,000</td><td>13</td><td>200</td><td>453</td></tr>
<tr><td>35</td><td>1,378,125</td><td>13</td><td>215</td><td>487</td></tr>
<tr><td>36</td><td>1,530,000</td><td>14</td><td>230</td><td>500</td></tr>
<tr><td>37</td><td>1,732,500</td><td>14</td><td>260</td><td>526</td></tr>
<tr><td>38</td><td>1,920,000</td><td>15</td><td>300</td><td>556</td></tr>
<tr><td>39</td><td>2,131,250</td><td>15</td><td>330</td><td>575</td></tr>
<tr><td>40</td><td>2,325,000</td><td>16</td><td>345</td><td>600</td></tr>
<tr><td>41</td><td>2,537,500</td><td>16</td><td>360</td><td>650</td></tr>
<tr><td>42</td><td>2,800,000</td><td>17</td><td>380</td><td>704</td></tr>
<tr><td>43</td><td>3,105,000</td><td>17</td><td>400</td><td>747</td></tr>
<tr><td>44</td><td>3,380,000</td><td>18</td><td>415</td><td>811</td></tr>
<tr><td>45</td><td>3,687,500</td><td>18</td><td>425</td><td>856</td></tr>
<tr><td>46</td><td>3,990,000</td><td>19</td><td>450</td><td>879</td></tr>
<tr><td>47</td><td>4,312,500</td><td>19</td><td>475</td><td>911</td></tr>
<tr><td>48</td><td>4,620,000</td><td>20</td><td>500</td><td>932</td></tr>
<tr><td>49</td><td>4,935,000</td><td>20</td><td>550</td><td>956</td></tr>
<tr><td>50</td><td>5,250,000</td><td>21</td><td>650</td><td>1,000</td></tr>
<tr><td>51</td><td>6,500,000</td><td>21</td><td>700</td><td>1,032</td></tr>
<tr><td>52</td><td>7,750,000</td><td>22</td><td>750</td><td>1,067</td></tr>
<tr><td>53</td><td>9,250,000</td><td>22</td><td>800</td><td>1,103</td></tr>
<tr><td>54</td><td>11,050,000</td><td>23</td><td>850</td><td>1,250</td></tr>
<tr><td>55</td><td>12,750,000</td><td>23</td><td>875</td><td>1,500</td></tr>
<tr><td>56</td><td>14,750,000</td><td>24</td><td>900</td><td>1,750</td></tr>
<tr><td>57</td><td>17,250,000</td><td>24</td><td>950</td><td>2,000</td></tr>
<tr><td>58</td><td>19,750,000</td><td>25</td><td>1,000</td><td>2,200</td></tr>
<tr><td>59</td><td>22,250,000</td><td>25</td><td>1,250</td><td>2,400</td></tr>
<tr><td>60</td><td>24,750,000</td><td>26</td><td>1,500</td><td>2,500</td></tr>
<tr><td>61</td><td>28,000,000</td><td>26</td><td>1,750</td><td>2,650</td></tr>
<tr><td>62</td><td>31,750,000</td><td>27</td><td>2,000</td><td>2,800</td></tr>
<tr><td>63</td><td>35,750,000</td><td>27</td><td>2,250</td><td>3,000</td></tr>
<tr><td>64</td><td>39,750,000</td><td>28</td><td>2,500</td><td>3,200</td></tr>
<tr><td>65</td><td>44,750,000</td><td>28</td><td>2,750</td><td>3,500</td></tr>
<tr><td>66</td><td>49,750,000</td><td>29</td><td>3,000</td><td>3,800</td></tr>
<tr><td>67</td><td>55,750,000</td><td>29</td><td>3,250</td><td>4,100</td></tr>
<tr><td>68</td><td>61,750,000</td><td>30</td><td>3,500</td><td>4,400</td></tr>
<tr><td>69</td><td>68,750,000</td><td>30</td><td>3,750</td><td>4,700</td></tr>
<tr><td>70</td><td>77,000,000</td><td>31</td><td>4,000</td><td>5,000</td></tr>
<tr><td>71</td><td>90,650,000</td><td>31</td><td>4,150</td><td>5,200</td></tr>
<tr><td>72</td><td>106,900,000</td><td>32</td><td>4,300</td><td>5,450</td></tr>
<tr><td>73</td><td>126,400,000</td><td>32</td><td>4,500</td><td>5,750</td></tr>
<tr><td>74</td><td>152,400,000</td><td>33</td><td>4,750</td><td>6,100</td></tr>
<tr><td>75</td><td>184,900,000</td><td>33</td><td>5,000</td><td>6,500</td></tr>
<tr><td>76</td><td>385,000,000</td><td>34</td><td>5,250</td><td>6,800</td></tr>
<tr><td>77</td><td>675,000,000</td><td>34</td><td>5,500</td><td>7,100</td></tr>
<tr><td>78</td><td>995,600,000</td><td>35</td><td>5,800</td><td>7,500</td></tr>
<tr><td>79</td><td>1,450,920,000</td><td>35</td><td>6,150</td><td>7,900</td></tr>
<tr><td>80</td><td>2,000,000,000</td><td>36</td><td>6,500</td><td>8,500</td></tr>
<tr><td>81</td><td>3,000,000,000</td><td>36</td><td>6,900</td><td>9,200</td></tr>
<tr><td>82</td><td>4,500,000,000</td><td>37</td><td>7,350</td><td>10,000</td></tr>
<tr><td>83</td><td>6,750,000,000</td><td>37</td><td>7,850</td><td>10,900</td></tr>
<tr><td>84</td><td>10,000,000,000</td><td>38</td><td>8,400</td><td>11,900</td></tr>
<tr><td>85</td><td>15,000,000,000</td><td>38</td><td>9,000</td><td>13,000</td></tr>
<tr><td>86</td><td>20,000,000,000</td><td>39</td><td>9,650</td><td>14,200</td></tr>
<tr><td>87</td><td>26,000,000,000</td><td>39</td><td>10,350</td><td>15,500</td></tr>
<tr><td>88</td><td>33,000,000,000</td><td>40</td><td>11,100</td><td>16,900</td></tr>
<tr><td>89</td><td>41,000,000,000</td><td>40</td><td>11,900</td><td>18,400</td></tr>
<tr><td>90</td><td>50,000,000,000</td><td>41</td><td>12,750</td><td>20,000</td></tr>
</table></div>`
GM_addStyle (`
.home-analysis{height:223px !important;margin-top:0.5rem;}
#home_widget > tbody > tr > td{font-face:"Verdana, Arial, Helvetica, sans-serif";font-size:11px;}
#home_widget > tbody > tr > td:nth-child(1){font-weight: bold;}
#home_widget > tbody > tr > td:nth-child(2){padding-right:2rem;}
#missingslayer{font-weight: normal;}
`)
var homediv_left = document.querySelector("#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div:nth-child(5) > div > div > div:nth-child(1) > div")
var homediv_right = document.querySelector("#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div:nth-child(5) > div > div > div:nth-child(2) > div")
var l1 = `
<div class="d-flex b-skills">
<div class="w-100">
<h5>GOD SLAYER</h5>
<div class="table-responsive">
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="table table-striped" id="home_widget">
<tbody>
<tr><td>God Slayer Level:</td><td align="right"><span id="slayerlvl">0</span></td></tr>
<tr><td>Attack from God Slayer Skill:</td><td align="right"><span id="gs_atk">0</span></td></tr>
<tr><td>Hit Points from God Slayer Skill:</td><td align="right"><span id="gs_hp">0</span></td></tr>
<tr><td>Ele Damage from God Slayer Skill:</td><td align="right"><span id="gs_ele">0</span></td></tr>
<tr><td>God Slayer Missing:</td><td align="right"><span id="slayerlvlx">0</span></td></tr>
</tbody></table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="table table-striped" id="home_widget">
<tr><td><span id="missingslayer"></span></td></tr>
</table>
</div>
</div>
</div>
`
var r1 = `
<div class="d-flex b-skills">
<div class="w-100">
<button id='mra' class='btn btn-primary'>MAX RAGE ANALYSIS</button><br><span id="mra_check"></span>
<div class="table-responsive home-analysis">
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="table table-striped" id="home_widget">
<tbody>
<tr><td><font color="#FFFF00">Does not include core</font></td><td align="right"></td></tr>
<tr><td>Total Gems in Items:</td><td align="right"><span id="mra1">--</span></td></tr>
<tr><td>Available Gems to Buy:</td><td align="right"><span id="mra2">--</span></td></tr>
<tr><td>Cost to Full Gem All Items:</td><td align="right"><span id="mra3">--</span></td></tr>
<tr><td>Max Rage from Items (not augs):</td><td align="right"><span id="mra4">--</span></td></tr>
<tr><td>MR Total if Gemmed:</td><td align="right"><span id="mra5">--</span></td></tr>
<tr><td>MR Gained if Gemmed:</td><td align="right"><span id="mra6">--</span></td></tr>
<tr><td>MR Gained per Point:</td><td align="right"><span id="mra7">--</span></td></tr>
</tbody></table>
</div>
</div>
</div>
`
let data_widget_l1 = document.createElement('div');
data_widget_l1.innerHTML = l1
data_widget_l1.setAttribute("class","col-12 mb-3")
insertAfter(data_widget_l1, homediv_left.children[3]);
let data_widget_r1 = document.createElement('div');
data_widget_r1.innerHTML = r1
data_widget_r1.setAttribute("class","col-12 mb-3")
insertAfter(data_widget_r1, homediv_right.children[0]);
fetch('/profile')
.then(response => response.text())
.then((response) => {
if (response.match(/<a href="\/crew_profile\?id=[0-9]+">/i) != null) {crewid = response.match(/<a href="\/crew_profile\?id=([0-9]+)">/i)[1]}
const doc = new DOMParser().parseFromString(response, 'text/html');
const gslayer = doc.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-8.col-md-7 > div > div:nth-child(5) > div").innerHTML
.replace(/<h5 class="card-title">GOD SLAYER<\/h5>[\n\r]/i,"")
.replaceAll(/<div class="divGodSlayerImg" style="display: inline-block;height:50px;width:50px;background-image: url\('[^']*'\); background-position: [0-9]+px;" onmouseover="popup\(event,'<b>/g,"")
.replaceAll(/<\/b><br>First Slayed: .*<br>Kill Count: [0-9]+'\);" onmouseout="kill\(\);"><\/div>/g,"")
const gs = gslayer.split(/[\n\r]/g).filter(item => item)
document.querySelector("#slayerlvl").innerHTML = gs.length
document.querySelector("#gs_atk").innerHTML = (gs.length)*10
document.querySelector("#gs_hp").innerHTML = (gs.length)*20
document.querySelector("#gs_ele").innerHTML = (gs.length)*10
document.querySelector("#slayerlvlx").innerHTML = allgods.length-gs.length
document.querySelector("#missingslayer").innerHTML = `<font color="#FFFF00">God Slayer missing:</font><br>`+(allgods.filter(x => !gs.includes(x))).join("<br>");
const crests = doc.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(3) > div > div").outerHTML
const eq = doc.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(2) > div").innerHTML.replace(`<h5 class="card-title">EQUIPMENT</h5>`,"")+crests
document.querySelector("#eqhome").innerHTML = eq
if (GM_getValue("mmpopdisable"+version) != true){
GM_addStyle (`
#mmpop{position:absolute;top:10px;right:20px;background:#000000;color:#FFFFFF;width:401px;height:630px;border-radius:10px;opacity:0.9;padding:20px;-webkit-box-shadow:0px 0px 11px 2px rgba(238,46,255,0.9);-moz-box-shadow: 0px 0px 11px 2px rgba(238,46,255,0.9);box-shadow: 0px 0px 11px 2px rgba(238,46,255,0.9);font-family: monospace, monospace;letter-spacing:1px;font-size:16px;text-align:left;}
#mmpop_stop{position:absolute;bottom:10px;}
#mmpop_x{position:absolute;top:0px;right:10px;font-size:22px;}
#mmpopdisable{font-size:10px;}
`)
var mmpop = `
<b>Dear Moxximod User,</b>
<p style="margin-top:10px;">
Some Moxximod features are turned off by default. If you haven't already configured your setttings, <a href="user_preferences">CLICK HERE</a> and browse through all of the settings tabs at the top of the page.
<p style="margin-top:10px;">
All of Moxximod's tools and features are free to use except for those indicated by the Moxximod+ icon. Moxximod+ is a monthly <a href="https://www.patreon.com/moxximod">PATREON</a> subscription. <img src="https://studiomoxxi.com/moxximod/bot.png" height="17px" width="17px" style="margin-left:-3px;">
<p style="margin-top:10px;">
If you're not in the <b>Studio Moxxi</b> Discord server, please <a href="https://discord.com/invite/f35cccbWU8?utm_source=Discord%20Widget&utm_medium=Connect">JOIN HERE</a> so that you can be notified of new updates, features, and share any ideas or suggestions for the mod!
<p style="margin-top:10px; font-family: Brush Script MT, Brush Script Std, cursive;font-size:36px;text-align:right;">
-Moxxi
<div id="mmpop_stop">
<a href="javascript:void(0);" id="mmpopdisable">DON'T SHOW THIS MESSAGE AGAIN</a>
</div>
<div id="mmpop_x">
<a href="javascript:void(0);" id="mmpopclose">X</a>
</div>
`
$("#content").append(`
<div id="mmpop">
`+mmpop+`
</div>`)
document.querySelector("#mmpopdisable").addEventListener("click", mmpopdisable);
function mmpopdisable(){GM_setValue("mmpopdisable"+version, true);$("#mmpop").remove();}
document.querySelector("#mmpopclose").addEventListener("click", mmpopclose);
function mmpopclose(){$("#mmpop").remove();}
}
document.getElementById ("mra").addEventListener("click", mra, false);
function mra(){
fetch('equipment')
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
var mra_count = 0; for (let itemnum = 2; itemnum < 11; itemnum++) {if (doc.querySelector("body > div:nth-child(1) > div:nth-child("+itemnum+")").outerHTML.match("img") != null){mra_count += 1}}
if (mra_count != 9){document.querySelector("#mra_check").innerHTML = `<font color="#FF0000"><b>ERROR: MISSING ITEMS</b></font>`}
if (mra_count == 9){document.querySelector("#mra_check").innerHTML = ""
var mra_gems = 0;
var mra_cost = 0;
var mra_total = 0;
var mra_if = 0;
for (let itemnum = 2; itemnum < 11; itemnum++) {
fetch("item_rollover.php?id="+doc.querySelector("body > div:nth-child(1) > div:nth-child("+itemnum+")").innerHTML.match(/"itempopup\(event,'([0-9]+)'\)"/i)[1])
.then(response => response.text())
.then((response) => {
var m01r = response.match(/<td colspan="2" style="height:20px;font-size:12pt;text-shadow: #47462E 1px 1px 2px;color:#([A-Za-z0-9]+)" align="left">.*<\/td>/i)[1]
var m01g = '';
if (response.match(/<img src="\/images\/gemslot2\.jpg">/g) != null){m01g = 4-(response.match(/<img src="\/images\/gemslot2\.jpg">/g).length)}
if (response.match(/<img src="\/images\/gemslot2\.jpg">/g) == null){m01g = 4}
mra_gems += m01g
var m01m = parseInt(response.replaceAll(",","").replaceAll(/<span style="color:#00FF00"> \(\+[0-9]+\)<\/span>/g,"").match(/<br>\+([0-9]+) max rage/i)[1])
mra_total += m01m
var m01p = '';
if (m01g == 0){m01p = Math.round(m01m*1.74900625)}
if (m01g == 1){m01p = Math.round(m01m*1.52087500)}
if (m01g == 2){m01p = Math.round(m01m*1.32250000)}
if (m01g == 3){m01p = Math.round(m01m*1.15000000)}
if (m01g == 4){m01p = Math.round(m01m*1.00000000)}
mra_if += m01p
if (m01r == "CCCCCC"){if (m01g == 0){mra_cost += 10}; if (m01g == 1){mra_cost += 9}; if (m01g == 2){mra_cost += 7}; if (m01g == 3){mra_cost += 4}; if (m01g == 4){mra_cost += 0}}
if (m01r == "FFFFFF"){if (m01g == 0){mra_cost += 25}; if (m01g == 1){mra_cost += 23}; if (m01g == 2){mra_cost += 18}; if (m01g == 3){mra_cost += 10}; if (m01g == 4){mra_cost += 0}}
if (m01r == "1eff00"){if (m01g == 0){mra_cost += 50}; if (m01g == 1){mra_cost += 45}; if (m01g == 2){mra_cost += 35}; if (m01g == 3){mra_cost += 20}; if (m01g == 4){mra_cost += 0}}
if (m01r == "ffde5b"){if (m01g == 0){mra_cost += 100}; if (m01g == 1){mra_cost += 90}; if (m01g == 2){mra_cost += 70}; if (m01g == 3){mra_cost += 40}; if (m01g == 4){mra_cost += 0}}
if (m01r == "CA1111"){if (m01g == 0){mra_cost += 200}; if (m01g == 1){mra_cost += 180}; if (m01g == 2){mra_cost += 140}; if (m01g == 3){mra_cost += 80}; if (m01g == 4){mra_cost += 0}}
if (m01r == "0070ff"){if (m01g == 0){mra_cost += 300}; if (m01g == 1){mra_cost += 270}; if (m01g == 2){mra_cost += 210}; if (m01g == 3){mra_cost += 120}; if (m01g == 4){mra_cost += 0}}
if (m01r == "ff8000"){if (m01g == 0){mra_cost += 400}; if (m01g == 1){mra_cost += 360}; if (m01g == 2){mra_cost += 280}; if (m01g == 3){mra_cost += 160}; if (m01g == 4){mra_cost += 0}}
if (m01r == "9000ba"){if (m01g == 0){mra_cost += 500}; if (m01g == 1){mra_cost += 450}; if (m01g == 2){mra_cost += 350}; if (m01g == 3){mra_cost += 200}; if (m01g == 4){mra_cost += 0}}
document.querySelector("#mra1").innerHTML = mra_gems
document.querySelector("#mra2").innerHTML = 36-mra_gems
document.querySelector("#mra3").innerHTML = mra_cost.toLocaleString("en-US")
document.querySelector("#mra4").innerHTML = mra_total.toLocaleString("en-US")
document.querySelector("#mra5").innerHTML = mra_if.toLocaleString("en-US")
document.querySelector("#mra6").innerHTML = (mra_if-mra_total).toLocaleString("en-US")
document.querySelector("#mra7").innerHTML = Math.round((mra_if-mra_total)/mra_cost)
})}}
})}
})
}
if (document.URL.indexOf("home") == -1 || (document.URL.indexOf("crew_home") != -1 && error == false)) {
if (GM_getValue("tbnotifications") == true && document.URL.indexOf("treasury.php?type=vision") == -1 && document.URL.indexOf("user_preferences") == -1){
GM_addStyle (`#tiles > img,#tiles > a > img{height:30px; width:30px;margin-right:3px;margin-left:3px;border:2px #000000 SOLID;border-radius:10px;}`)
let toolbar_tiles = document.createElement('li');
toolbar_tiles.innerHTML = `<span id="tiles"><img src=https://studiomoxxi.com/moxximod/loading-gif.gif style="border:0px SOLID !important;height:25px !important;width:25px !important;" onmouseover="popup(event,'Notifications loading. Can be disabled on preferences menu')" onmouseout="kill()"></span>`
toolbar_tiles.setAttribute("class","nav-item more-dropdown little-space hide-on-mob")
insertAfter(toolbar_tiles, toolbar.lastElementChild);
tiles()
}}
function tiles(){
var tiles = '';
var tile_count_1 = 0;
if (GM_getValue("tileon_trade") == true){tile_count_1 += 1}
if (GM_getValue("tileon_glad") == true){tile_count_1 += 3}
if (GM_getValue("tileon_gods") == true){tile_count_1 += 1}
if (GM_getValue("tileon_brawl") == true){tile_count_1 += 1}
if (GM_getValue("tileon_boss") == true){tile_count_1 += 1}
if (GM_getValue("tileon_supplies") == true){tile_count_1 += 1}
if (GM_getValue("tileon_strength") == true){tile_count_1 += 1}
if (GM_getValue("tileon_veiled") == true){tile_count_1 += 1}
if (GM_getValue("tileon_hovok") == true){tile_count_1 += 1}
if (GM_getValue("tileon_corvok") == true){tile_count_1 += 1}
if (GM_getValue("tileon_golems") == true){tile_count_1 += 1}
if (GM_getValue("tileon_raid") == true){tile_count_1 += 1}
if (GM_getValue("tileon_events") == true){tile_count_1 += 2}
if (GM_getValue("tileon_camps") == true){tile_count_1 += 1}
var tile_count_2 = 0;
if (GM_getValue("tileon_trade") == true){
fetch("myaccount")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const myaccount_table = doc.querySelector("#zero-config").innerHTML
if (myaccount_table.match(/<a href="trade\?suid=[0-9]+&serverid=[0-9]+"><img border="0" height="13" src="http:\/\/torax\.outwar\.com\/images\/toolbar\/Trade\.png" alt="Trade"><\/a>/i) != null) {
var trade_url = myaccount_table.match(/<a href=("trade\?suid=[0-9]+&serverid=[0-9]+")><img border="0" height="13" src="http:\/\/torax\.outwar\.com\/images\/toolbar\/Trade\.png" alt="Trade"><\/a>/i)[1]
tiles += `<a href=`+trade_url+` onmouseover="popup(event,'Active trade')" onmouseout="kill()"><img src="https://studiomoxxi.com/moxximod/trade.png" class="glad"></a>`}
tile_count_2 += 1;
})}
const epoch = Math.round(new Date().getTime())
if (GM_getValue("tileon_glad") == true){
fetch("gladiator?mobid=4029")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
if (doc.querySelector("#divGlad").innerHTML.match("Will retreat in") != null){
var ends = parseInt(doc.querySelector("#divGlad > div > div:nth-child(1) > div:nth-child(1) > script").innerHTML.toString().match(/countdown = ([0-9]+)/i)[1])*1000
tiles += `<a href=gladiator?mobid=4029 onmouseover="popup(event,'Teva will retreat in `+Math.ceil((ends-epoch)/(3.6e+6))+` hours')" onmouseout="kill()"><img src=images/mobs/topgladiator.jpg class="glad teva"></a>`}
if (Math.ceil((ends-epoch)/(3.6e+6)) < 24){GM_addStyle (`img.teva{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
tile_count_2 += 1;
})
fetch("gladiator?mobid=3991")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
if (doc.querySelector("#divGlad > div > div:nth-child(1) > div:nth-child(1) > div.divQuestTime").innerHTML.match("Will retreat in") != null){
var ends = parseInt(doc.querySelector("#divGlad > div > div:nth-child(1) > div:nth-child(1) > script").innerHTML.toString().match(/countdown = ([0-9]+)/i)[1])*1000
tiles += `<a href=gladiator?mobid=3991 onmouseover="popup(event,'Zerx will retreat in `+Math.ceil((ends-epoch)/(3.6e+6))+` hours')" onmouseout="kill()"><img src=images/mobs/mobc34.jpg class="glad zerx"></a>`}
if (Math.ceil((ends-epoch)/(3.6e+6)) < 24){GM_addStyle (`img.zerx{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
tile_count_2 += 1;
})
fetch("gladiator?mobid=4391")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
if (doc.querySelector("#divGlad > div > div:nth-child(1) > div:nth-child(1) > div.divQuestTime").innerHTML.match("Will retreat in") != null){
var ends = parseInt(doc.querySelector("#divGlad > div > div:nth-child(1) > div:nth-child(1) > script").innerHTML.toString().match(/countdown = ([0-9]+)/i)[1])*1000
tiles += `<a href=gladiator?mobid=4391 onmouseover="popup(event,'Vork will retreat in `+Math.ceil((ends-epoch)/(3.6e+6))+` hours')" onmouseout="kill()"><img src=images/mobs/velgladiator.jpg class="glad vork"></a>`}
if (Math.ceil((ends-epoch)/(3.6e+6)) < 24){GM_addStyle (`img.vork{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
tile_count_2 += 1;
})
}
if (GM_getValue("tileon_events") == true){
fetch("event?eventid=top")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
if (doc.querySelector("#content-header-row > div.row.w-100 > div.col-12.col-lg-8 > div:nth-child(1) > script:nth-child(5)") != null){
var countdown = parseInt(doc.querySelector("#content-header-row > div.row.w-100 > div.col-12.col-lg-8 > div:nth-child(1) > script:nth-child(5)").innerHTML.toString().match(/countdown = ([0-9]+)/i)[1])*1000
if (Math.ceil((countdown-epoch)/(3.6e+6)) <= 336){tiles += `<a href=event?eventid=top onmouseover="popup(event,'Trial of Power: `+Math.ceil((countdown-epoch)/(3.6e+6)/24)+` days remaining')" onmouseout="kill()"><img src=https://studiomoxxi.com/moxximod/top.png class="glad top"></a>`}
}
if (Math.ceil((countdown-epoch)/(3.6e+6)/24) <= 14){GM_addStyle (`img.top{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
tile_count_2 += 1;
})
fetch("event?eventid=woz")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
if (doc.querySelector("#content-header-row > div.row.w-100 > div.col-12.col-lg-8 > div:nth-child(1) > script:nth-child(5)") != null){
var countdown = parseInt(doc.querySelector("#content-header-row > div.row.w-100 > div.col-12.col-lg-8 > div:nth-child(1) > script:nth-child(5)").innerHTML.toString().match(/countdown = ([0-9]+)/i)[1])*1000
if (Math.ceil((countdown-epoch)/(3.6e+6)) <= 336){tiles += `<a href=event?eventid=woz onmouseover="popup(event,'Trial of Power: `+Math.ceil((countdown-epoch)/(3.6e+6)/24)+` days remaining')" onmouseout="kill()"><img src=https://studiomoxxi.com/moxximod/woz.png class="glad woz"></a>`}
}
if (Math.ceil((countdown-epoch)/(3.6e+6)/24) <= 14){GM_addStyle (`img.woz{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
tile_count_2 += 1;
})
}
if (GM_getValue("tileon_camps") == true){
fetch("ajax_changeroomb.php")
.then(res => res.text())
.then((responseText) => {
if (responseText.match(/"isDead":true,"type":1,"lastKilledBy":"[^"]*"/i) != null){
var godName = '';
if (responseText.match(/\{"name":"([^"]*)","level":"[0-9]+","rage":"[0-9]+","h":"[^"]*","encid":"[^"]*","mobId":"[0-9]+","spawnId":"[0-9]+","image":"[^"]*","isDead":true,"type":1/i) != null){
godName = responseText.match(/\{"name":"([^"]*)","level":"[0-9]+","rage":"[0-9]+","h":"[^"]*","encid":"[^"]*","mobId":"[0-9]+","spawnId":"[0-9]+","image":"[^"]*","isDead":true,"type":1/i)[1]} else {
godName = responseText.match(/\{"name":"([^"]*)","level":"[0-9]+","rage":"[0-9]+","h":"[^"]*","encid":"[^"]*","mobId":"[0-9]+","spawnId":"[0-9]+","image":"[^"]*","nft":"[^"]*","isDead":true,"type":1/i)[1]}
fetch("godstatus")
.then(res => res.text())
.then((responseText) => {
var statusTable = new DOMParser().parseFromString(responseText, 'text/html').querySelector("#content-header-row > div > table").innerHTML
if (statusTable.match(godName) == null){tiles += `<a href="world"><img src="https://studiomoxxi.com/moxximod/camp.webp" class="glad" onmouseover="popup(event,'Youre in the same room as<br><a>`+godName+`</a><br>who hasnt been killed in the last 24 hours<br>so you may be camped')" onmouseout="kill()"></a>`}
})}
tile_count_2 += 1;
})
}
if (GM_getValue("tileon_gods") == true){
var gods = '';
fetch("raidtools")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const godtable = doc.querySelector("#content-header-row > div > div").innerHTML
if (godtable.match("Teleport to") != null) {gods = godtable
.replace(`<h4>Raid Tools</h4>`,"")
.replace(`<p id="displayWait"><font color="#00CC00">Notice:</font> Teleporting to`,"")
.replace(`a guardian mob will cost 5 points.</p>`,"")
.replaceAll(`></a><br>`,"")
.replaceAll(/<strong><a href="#" onclick="sendTeleportRequest\('[0-9]+', '[^']*'\)"><font color="#FFFFFF">Teleport to /g,`onmouseover="popup(event,'`)
.replaceAll(`</font></a></strong><br>`,` has spawned')" onmouseout="kill()" class="glad">`)
.replaceAll("<br>","")
.replaceAll(/<a href="javascript:void\(0\);" onclick="sendTeleportRequest\('[0-9]+', '[^']*'\)">/g,"")
.replaceAll(/border="0"[\n\r]/g,`border="0"`)
.replaceAll(`height="200" width="200" `,"")
.replace(/(\r\n|\n|\r)/gm, "")
}
tiles += gods
tile_count_2 += 1;
})}
if (GM_getValue("tileon_brawl") == true){
var brawlimg = "https://images.emojiterra.com/google/android-pie/512px/1f94a.png"
fetch('closedpvp')
.then(response => response.text())
.then((response) => {
var brawl_active = response.match(/<h5>Brawl ends in<\/h5>/i)
var brawl_attacks = response.match(/images\/atk_player_icon\.jpg/i)
if (document.querySelector("#content-header-row > script:nth-child(6)") != null){
var starts = parseInt(new DOMParser().parseFromString(response, 'text/html').querySelector("#content-header-row > script:nth-child(6)").innerHTML.toString().match(/countdown = ([0-9]+)/i)[1])*1000
if ((starts-epoch)/(3.6e+6) <= 48 && brawl_active == null){
tiles += `<a href="closedpvp" onmouseover="popup(event,'Brawl starts in `+Math.ceil((starts-epoch)/(3.6e+6))+` hours')" onmouseout="kill()"><img src="`+brawlimg+`" style="filter:grayscale(100%)" class="glad almostbrawl"></a>`
GM_addStyle (`img.almostbrawl{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}}
if (brawl_active != null && brawl_attacks != null){tiles += `<a href="closedpvp" onmouseover="popup(event,'Brawl is active')" onmouseout="kill()"><img src="`+brawlimg+`" class="glad"></a>`}
if (brawl_active != null && brawl_attacks == null){tiles += `<a href="closedpvp" onmouseover="popup(event,'Brawl is active')" onmouseout="kill()"><img src="`+brawlimg+`" style="filter:grayscale(100%)" class="glad"></a>`}
tile_count_2 += 1;
})}
if (GM_getValue("tileon_boss") == true){
fetch('/crew_bossspawns')
.then(response => response.text())
.then((response) => {
var cosmos = '';
if (response.match(/images\/CosmosGreatAllBeing\.jpg/i) != null){cosmos = response.match(/Cosmos, Great All Being.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)%[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i)}
if (response.match(/images\/CosmosGreatAllBeing\.jpg/i) != null){tiles += cosmos[2]+`<img src="images/CosmosGreatAllBeing.jpg" class="boss cosmos" onmouseover="popup(event,'<b>Cosmos, Great All Being</b><br>Health: `+cosmos[1]+`%<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`}
if (parseInt(cosmos[1]) <= 10){GM_addStyle (`img.cosmos{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
var death = '';
if (response.match(/images\/DeathReaperOfSouls\.jpg/i) != null){death = response.match(/Death, Reaper of Souls.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)%[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i)}
if (response.match(/images\/DeathReaperOfSouls\.jpg/i) != null){tiles += death[2]+`<img src="images/DeathReaperOfSouls.jpg" class="boss death" onmouseover="popup(event,'<b>Death, Reaper of Souls</b><br>Health: `+death[1]+`%<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`}
if (parseInt(death[1]) <= 10){GM_addStyle (`img.death{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
var maekrix = '';
if (response.match(/images\/MaekrixDreadedStriker\.jpg/i) != null){maekrix = response.match(/Maekrix, Dreaded Striker.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)%[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i)}
if (response.match(/images\/MaekrixDreadedStriker\.jpg/i) != null){tiles += maekrix[2]+`<img src="images/MaekrixDreadedStriker.jpg" class="boss maekrix" onmouseover="popup(event,'<b>Maekrix, Dreaded Striker</b><br>Health: `+maekrix[1]+`%<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`}
if (parseInt(maekrix[1]) <= 10){GM_addStyle (`img.maekrix{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
var blackhand = '';
if (response.match(/images\/BlackhandReborn\.png/i) != null){blackhand = response.match(/Blackhand Reborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)%[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i)}
if (response.match(/images\/BlackhandReborn\.png/i) != null){tiles += blackhand[2]+`<img src="images/BlackhandReborn.png" class="boss blackhand" onmouseover="popup(event,'<b>Blackhand Reborn</b><br>Health: `+blackhand[1]+`%<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`}
if (parseInt(blackhand[1]) <= 10){GM_addStyle (`img.blackhand{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
var zyrak = '';
if (response.match(/images\/velserverboss\.jpg/i) != null){zyrak = response.match(/Zyrak, Vision of Madness.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)%[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i)}
if (response.match(/images\/velserverboss\.jpg/i) != null){tiles += zyrak[2]+`<img src="images/velserverboss.jpg" class="boss zyrak" onmouseover="popup(event,'<b>Zyrak, Vision of Madness</b><br>Health: `+zyrak[1]+`%<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`}
if (parseInt(zyrak[1]) <= 10){GM_addStyle (`img.zyrak{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
var arkon = '';
if (response.match(/images\/Arkron\.jpg/i) != null){arkon = response.match(/Arkron, God of Trials.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)%[\n\r].*(<a href="boss_stats\.php\?spawnid=[0-9]+">)\(stats\)<\/a>/i)}
if (response.match(/images\/Arkron\.jpg/i) != null){tiles += arkon[2]+`<img src="images/Arkron.jpg" class="boss arkron" onmouseover="popup(event,'<b>Arkron, God of Trials</b><br>Health: `+arkon[1]+`%<br><font color=#fcfcfc>(click for stats)')" onmouseout="kill()"></a>`}
if (parseInt(arkon[1]) <= 10){GM_addStyle (`img.arkron{border: 2px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}`)}
tile_count_2 += 1;
})}
var supplies = 0;
if (GM_getValue("tileon_supplies") == true){
fetch('supplies')
.then(response => response.text())
.then((response) => {
supplies = parseInt(response.match(/<img border="0" src="images\/suppliestriangle\.gif" width="11" height="11">[\n\r](.*)%<\/td>/i)[1]);
if (supplies < 100 && tiles.match("supplies") == null) {tiles += `<a href="javascript:void(0);" id="max_sup" onmouseover="popup(event,'Supplies: `+supplies+`%<br>Click to max')" onmouseout="kill()"><img src=https://studiomoxxi.com/moxximod/supplies.png class="char"></a>`}
tile_count_2 += 1;
})}
if (GM_getValue("tileon_strength") == true){
var strength = parseInt(document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li.nav-item.more-dropdown.little-space.hide-on-mob.progress-top > div").innerHTML.match(/role="progressbar" style="width: ([0-9]+)%"/i)[1])
if (strength < 100) {tiles += `<a onmouseover="popup(event,'Strength: `+strength+`%')" onmouseout="kill()"><img src=https://studiomoxxi.com/moxximod/strength.png class="char"></a>`}
tile_count_2 += 1;
}
if (GM_getValue("tileon_veiled") == true){
var veiledkeyid = '';
var veiledmob = 'dead';
fetch("ajax/backpackcontents.php?tab=key")
.then(response => response.text())
.then((response) => {
if (response.match(/data-name="Veiled Teleporter".*data-iid="([0-9]+)"/i) != null){veiledkeyid = response.match(/data-name="Veiled Teleporter".*data-iid="([0-9]+)"/i)[1]}
fetch("mob_search.php?target=5301")
.then(response => response.text())
.then((response) => {
if (response.match(/Quest help activated!/i) != null) {veiledmob = "alive"}
if (veiledmob == "alive" && veiledkeyid != "") {tiles += `<a href="javascript:void(0);" id='vbutton'><img class="mob" src="images/mobs/veiledguard.png" onmouseover="popup(event,'<b>Veiled Guard is available!<br></b>(click to teleport)')" onmouseout="kill()"></a>`}
tile_count_2 += 1;
})})}
fetch("world_questHelper")
.then(response => response.text())
.then((response) => {
if (response.match("Quantum Crest of Class") != null || response.match("Explosive Crest of Ferocity") != null || response.match("Violent Crest of Preservation") != null || response.match("Onslaught Crest of Affliction") != null)
{var crests = "active"}
if (response.match("Seeping Chaos Golem") != null)
{var seepingquest = "active"}
if (response.match("Volatile Chaos Golem") != null)
{var volatilequest = "active"}
if (response.match("Deluged Chaos Golem") != null)
{var delugedquest = "active"}
if (response.match("Normok Reputation 2") != null)
{var normok2 = "active"}
if (GM_getValue("tileon_hovok") == true){
fetch("mob_search.php?target=4046")
.then(response => response.text())
.then((response) => {
if (response.match(/Quest help activated!/i) != null) {var hovok = "alive"}
if (hovok == "alive" && crests == "active") {tiles += `<img class="mob" src="images/mobs/mobm91.jpg" onmouseover="popup(event,'<b>Hovok the Archfiend is available!')" onmouseout="kill()">`}
tile_count_2 += 1;
})}
if (GM_getValue("tileon_corvok") == true){
fetch("mob_search.php?target=4050")
.then(response => response.text())
.then((response) => {
if (response.match(/Quest help activated!/i) != null) {var corvok = "alive"}
if (corvok == "alive" && normok2 == "active") {tiles += `<img class="mob" src="images/mobs/mobd12.jpg" onmouseover="popup(event,'<b>Corvok the Sinister Cyborg is available!')" onmouseout="kill()">`}
tile_count_2 += 1;
})}
if (GM_getValue("tileon_golems") == true){
fetch("mob_search.php?target=4380")
.then(response => response.text())
.then((response) => {
if (response.match(/Quest help activated!/i) != null) {var deluged = "alive"}
if (deluged == "alive" && delugedquest == "active") {tiles += `<a href="world" onclick="getQuestHelpData2('2093', '4380', '', '9812', '21862');"><img class="mob" src="images/mobs/chaosgolem2.jpg" onmouseover="popup(event,'<b>Deluged Chaos Golem is available!<br></b>(click to build a path)')" onmouseout="kill()">`}
fetch("mob_search.php?target=4379")
.then(response => response.text())
.then((response) => {
if (response.match(/Quest help activated!/i) != null) {var seeping = "alive"}
if (seeping == "alive" && seepingquest == "active") {tiles += `<a href="world" onclick="getQuestHelpData2('2092', '4379', '', '9810', '21852');"><img class="mob" src="images/mobs/chaosgolem5.jpg" onmouseover="popup(event,'<b>Seeping Chaos Golem is available!<br></b>(click to build a path)')" onmouseout="kill()"></a>`}
fetch("mob_search.php?target=4381")
.then(response => response.text())
.then((response) => {
if (response.match(/Quest help activated!/i) != null) {var volatile = "alive"}
if (volatile == "alive" && volatilequest == "active") {tiles += `<a href="world" onclick="getQuestHelpData2('2094', '4381', '', '9814', '21864');"><img class="mob" src="images/mobs/chaosgolem4.jpg" onmouseover="popup(event,'<b>Volatile Chaos Golem is available!<br></b>(click to build a path)')" onmouseout="kill()">`}
tile_count_2 += 1;
})})})}
if (GM_getValue("tileon_raid") == true){
var crewid = '';
var godimg = ['','',''];
var crewname = ['','',''];
fetch('/profile')
.then(response => response.text())
.then((response) => {
if (response.match(/<a href="\/crew_profile\?id=[0-9]+">/i) != null) {crewid = response.match(/<a href="\/crew_profile\?id=([0-9]+)">/i)[1]}
fetch('crew_raidresults.php?all_results=Display+all+raid+results&crewid='+crewid)
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
if (crewid != '' && doc.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(2) > td:nth-child(4) > a") != null){var raidid = doc.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(2) > td:nth-child(4) > a").toString().match(/[0-9]+/i) || ''};
fetch("raidattack.php?raidid="+raidid)
.then(response => response.text())
.then((response) => {
if (crewid != '') {godimg = response.match(/<h4 class="text-center d-flex align-items-center justify-content-center">(.*)<\/h4>.*[\n\r].*[\n\r].*<div class="defenderimage skinborder d-flex justify-content-center align-items-center mb-3">.*[\n\r](.*)/i)}
if (crewid != '') {crewname = response.match(/.*<b>(.*) has (.*)!<\/b>/i)}
if (raidid != undefined) {tiles += `<a href=raidattack.php?raidid=`+raidid.toString().replace(/https:\/\/[a-zA-Z]+\.outwar\.com\/raidattack\.php\?raidid=/i,"")+` onmouseover="popup(event,'`+crewname[1]+` `+crewname[2]+` vs. `+godimg[1]+`<br>(click to view raid)')" onmouseout="kill()">`+godimg[2].replace(`<img src=`,`<img class="raid" style="filter:grayscale(100%)" src=`)+`</a>`}
tile_count_2 += 1;
})})})}
tile_count(); function tile_count(){if (tile_count_1 == tile_count_2){insert_tiles()} else {setTimeout(function() {tile_count()},500)}}
function insert_tiles(){
document.querySelector("#tiles").innerHTML = tiles
if (GM_getValue("tileon_veiled") == true && veiledmob == "alive" && veiledkeyid != ""){document.querySelector("#vbutton").addEventListener("click", vbutton, false);}
if (GM_getValue("tileon_supplies") == true && supplies <= 99 && tiles.match("https://studiomoxxi.com/moxximod/supplies.png") != null){document.querySelector("#max_sup > img").addEventListener("click", max_sup, false);}
}
function vbutton (divid) {
fetch('ajax/backpack_action.php', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
'action': 'activate',
'itemids[]': veiledkeyid
})
}).then(res => res.text())
.then(res => {
if (res.match("activated!") != null) {window.location.href="world"}
})}}
)}
if (GM_getValue("auto_max_sup") == true){max_sup()}
function max_sup (zEvent) {
fetch('supplies', {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({'buymax': 'Buy Max',})
})
GM_addStyle (`#max_sup{display:none !important;`)}
if (document.querySelector("body").innerHTML.match(/Expires<br>[\n\r]([0-9]+) minutes/i) != null){
var minutes = document.querySelector("body").innerHTML.match(/Expires<br>[\n\r]([0-9]+) minutes/i)[1]
var datemath = new Date();
datemath.setMinutes(datemath.getMinutes() + parseInt(minutes));
var expires = datemath.toString().match(/[a-zA-Z]+ [a-zA-Z]+ [0-9]+ [0-9]+ [0-9]+:[0-9]+/i)+" OW TIME"
var itemtable = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2)")
itemtable.innerHTML = itemtable.innerHTML+expires
}
if (document.URL.indexOf("spawntimeview") != -1 && error == false) {
if (document.querySelector("#content-header-row > form > input[type=submit]") != null){
GM_addStyle ( `
#content-header-row > table{width:700px !important;}
#content-header-row > table > tbody > tr:nth-child(2) > td > table > tbody > tr > td{padding:20px !important;}
#button1,#button2,#button3,#button4,#button5,#button6,#button7,#button8{border:0px !important;box-shadow: 5px 5px 14px #000000,-5px -5px 14px #000000;}
`)
var content = document.querySelector("#content-header-row")
content.innerHTML = `<table class="shortcuts"><tr><td>`+content.innerHTML+`</td></tr>
<tr><td>
<table><tr><td>
<button id='button1' class='button'><img src=/images/mobs/agnargod.png width="150px" height="150px" onmouseover="popup(event,'Agnar')" onmouseout="kill()"></button>
</td><td>
<button id='button2' class='button'><img src=/images/mobs/valzekdeathgod.png width="150px" height="150px" onmouseover="popup(event,'Valzek')" onmouseout="kill()"></button>
</td><td>
<button id='button3' class='button'><img src=/images/mobs/velendgamegod.jpg width="150px" height="150px" onmouseover="popup(event,'Thanox')" onmouseout="kill()"></button>
</td><td>
<button id='button4' class='button'><img src=/images/mobs/kinarkgod.png width="150px" height="150px" onmouseover="popup(event,'Kinark')" onmouseout="kill()"></button>
</td>
</tr><tr><td>
<button id='button5' class='button'><img src=/images/mobs/shayargod.png width="150px" height="150px" onmouseover="popup(event,'Shayar')" onmouseout="kill()"></button>
</td><td>
<button id='button6' class='button'><img src=/images/mobs/firangod.png width="150px" height="150px" onmouseover="popup(event,'Firan')" onmouseout="kill()"></button>
</td><td>
<button id='button7' class='button'><img src=/images/mobs/arcongod.png width="150px" height="150px" onmouseover="popup(event,'Arcon')" onmouseout="kill()"></button>
</td><td>
<button id='button8' class='button'><img src=/images/mobs/holgorgod.png width="150px" height="150px" onmouseover="popup(event,'Holgor')" onmouseout="kill()"></button>
</td></tr></table>
</td></tr></table>`
document.querySelector("#content-header-row > table > tbody > tr:nth-child(1) > td > form > select").setAttribute("id","godlist")
var agnar = document.querySelector("#godlist")
agnar.innerHTML = agnar.innerHTML.replace(`<option value="4789">`,`<option value="4789" id="agnar">`)
var valzek = document.querySelector("#godlist")
valzek.innerHTML = valzek.innerHTML.replace(`<option value="4790">`,`<option value="4790" id="valzek">`)
var thanox = document.querySelector("#godlist")
thanox.innerHTML = thanox.innerHTML.replace(`<option value="4389">`,`<option value="4389" id="thanox">`)
var kinark = document.querySelector("#godlist")
kinark.innerHTML = kinark.innerHTML.replace(`<option value="4787">`,`<option value="4787" id="kinark">`)
var shayar = document.querySelector("#godlist")
shayar.innerHTML = shayar.innerHTML.replace(`<option value="4788">`,`<option value="4788" id="shayar">`)
var firan = document.querySelector("#godlist")
firan.innerHTML = firan.innerHTML.replace(`<option value="4786">`,`<option value="4786" id="firan">`)
var arcon = document.querySelector("#godlist")
arcon.innerHTML = arcon.innerHTML.replace(`<option value="4785">`,`<option value="4785" id="arcon">`)
var holgor = document.querySelector("#godlist")
holgor.innerHTML = holgor.innerHTML.replace(`<option value="4784">`,`<option value="4784" id="holgor">`)
document.getElementById ("button1").addEventListener ("click", Button1, false);
function Button1 (zEvent) {
document.querySelector("#agnar").setAttribute("selected","true");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button2").addEventListener ("click", Button2, false);
function Button2 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").setAttribute("selected","true");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button3").addEventListener ("click", Button3, false);
function Button3 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").setAttribute("selected","true");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button4").addEventListener ("click", Button4, false);
function Button4 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").setAttribute("selected","true");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button5").addEventListener ("click", Button5, false);
function Button5 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").setAttribute("selected","true");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button6").addEventListener ("click", Button6, false);
function Button6 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").setAttribute("selected","true");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button7").addEventListener ("click", Button7, false);
function Button7 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").setAttribute("selected","true");
document.querySelector("#holgor").removeAttribute("selected");
}
document.getElementById ("button8").addEventListener ("click", Button8, false);
function Button8 (zEvent) {
document.querySelector("#agnar").removeAttribute("selected");
document.querySelector("#valzek").removeAttribute("selected");
document.querySelector("#thanox").removeAttribute("selected");
document.querySelector("#kinark").removeAttribute("selected");
document.querySelector("#shayar").removeAttribute("selected");
document.querySelector("#firan").removeAttribute("selected");
document.querySelector("#arcon").removeAttribute("selected");
document.querySelector("#holgor").setAttribute("selected","true");
}}
var oracleMsg = document.querySelector("#content-header-row").innerHTML.match("You may view the Oracle's prediction in your message center.")
if (oracleMsg != null){
fetch("ow_messagecenter")
.then(response => response.text())
.then((response) => {
var msgLink = response.match(/<a href="(view_ow_message\.php\?id=[0-9]+)/i)
window.location.href = msgLink[1]
})}}
if (document.URL.indexOf("itemtransfer") != -1 && error == false) {
GM_addStyle ( `
#divItemtransfer > form > div > div > h3 {display:none !important;}
#content > div.layout-px-spacing{background:#1A1C2D;box-shadow: 5px 5px 14px #02030a,-5px -5px 14px #0a0d26;}
#divItemtransfer > form > div > div{padding: 5px;position: relative;background-color: #0e1726;border-bottom-left-radius: 1px;border-bottom-right-radius: 1px;}
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
#divHeader > img{display:none !important;}
#divHeader{height:60px !important;max-width: 100% !important;}
.col-12{padding-left:0px !important;padding-right:0px !important;}
#transfer_div{position:absolute !important;left:10px !important;top:5px !important;}
`)
var def_char;
if (GM_getValue("default_char") == undefined){
def_char = ''}
if (GM_getValue("default_char") != undefined){
def_char = GM_getValue("default_char")}
document.querySelector("#divHeader").setAttribute("class","widget-content widget-content-area my-2 text-center")
document.querySelector("#divHeader").innerHTML = document.querySelector("#divHeader").innerHTML+`<h5>TRANSFER ITEMS</h5>
<div id="transfer_div"><input id="default_char" type="text" name="default_char" placeholder="`+def_char+`" class="form-control" style="width:160px !important;display:inline !important;height:32px !important;font-size:10px !important;">
<button id="transfer_divbtn" class="btn btn-primary" style="display:inline !important;height:32px !important;font-size:12px !important;">SET DEFAULT CHAR</button></div>`
setTimeout(function() {
document.querySelector("#transfer_divbtn").addEventListener("click", transfer_divbtn, false);
},500)
function transfer_divbtn(){
GM_setValue("default_char", document.querySelector("#default_char").value)
def_char = GM_getValue("default_char")
location.reload()}
$("#divHeader > select option:contains(" + def_char + ")").attr('selected', 'selected')
var cat4a = document.querySelector("#divItemtransfer > form > div:nth-child(2) > div").innerHTML
if (cat4a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(2) > div{display:none !important;}`)
var cat5a = document.querySelector("#divItemtransfer > form > div:nth-child(3) > div").innerHTML
if (cat5a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(3) > div{display:none !important;}`)
var cat6a = document.querySelector("#divItemtransfer > form > div:nth-child(4) > div").innerHTML
if (cat6a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(4) > div{display:none !important;}`)
var cat7a = document.querySelector("#divItemtransfer > form > div:nth-child(5) > div").innerHTML
if (cat7a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(5) > div{display:none !important;}`)
var cat8a = document.querySelector("#divItemtransfer > form > div:nth-child(6) > div").innerHTML
if (cat8a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(6) > div{display:none !important;}`)
var cat9a = document.querySelector("#divItemtransfer > form > div:nth-child(7) > div").innerHTML
if (cat9a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(7) > div{display:none !important;}`)
var cat10a = document.querySelector("#divItemtransfer > form > div:nth-child(8) > div").innerHTML
if (cat10a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(8) > div{display:none !important;}`)
var cat11a = document.querySelector("#divItemtransfer > form > div:nth-child(9) > div").innerHTML
if (cat11a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(9) > div{display:none !important;}`)
var cat12a = document.querySelector("#divItemtransfer > form > div:nth-child(10) > div").innerHTML
if (cat12a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(10) > div{display:none !important;}`)
var cat13a = document.querySelector("#divItemtransfer > form > div:nth-child(11) > div").innerHTML
if (cat13a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(11) > div{display:none !important;}`)
var cat14a = document.querySelector("#divItemtransfer > form > div:nth-child(12) > div").innerHTML
if (cat14a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(12) > div{display:none !important;}`)
var cat15a = document.querySelector("#divItemtransfer > form > div:nth-child(13) > div").innerHTML
if (cat15a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(13) > div{display:none !important;}`)
var cat16a = document.querySelector("#divItemtransfer > form > div:nth-child(14) > div").innerHTML
if (cat16a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(14) > div{display:none !important;}`)
var cat17a = document.querySelector("#divItemtransfer > form > div:nth-child(15) > div").innerHTML
if (cat17a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(15) > div{display:none !important;}`)
var cat18a = document.querySelector("#divItemtransfer > form > div:nth-child(16) > div").innerHTML
if (cat18a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(16) > div{display:none !important;}`)
var cat19a = document.querySelector("#divItemtransfer > form > div:nth-child(17) > div").innerHTML
if (cat19a.match(/You have no items in this category/i) != null) GM_addStyle (`#divItemtransfer > form > div:nth-child(17) > div{display:none !important;}`)
}
if (document.URL.indexOf("crew_vault") != -1 && error == false) {
if (document.querySelector("#content-header-row > form > div.row.mt-3.w-100") != null){
GM_addStyle ( `
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions{width:285px !important;vertical-align: top !important;background:transaprent !important;padding-right:1rem !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.vaultitems{vertical-align: top !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td:nth-child(2){background:transparent !important;}
.col-lg-6{max-width: 100% !important;}
.custom-control-label::before{background: #060707;border-color: #060707;}
.custom-control-input:checked~.custom-control-label::before{color: #fff;border-color: #fff;background-color: #fff;}
#content-header-row > div.col-12.layout-spacing,#content-header-row > div.w-100.mb-3{display:none !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div.btn-group.show > div{background:#0F0F0F !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div.text{padding-right:20px !important;margin-bottom:20px !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(5) > div > div > label{color:#FFFFFF !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(7) > div > div > label{color:#FFFFFF !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div.btn-group{margin-right:20px !important;}
#content-header-row > form > div.widget-content.widget-content-area.w-100.mx-3{display:none !important;}
#content > div.layout-px-spacing{margin-top:40px !important;}
#selected > img {width:28px !important;height:28px !important;margin:2px !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div.text > div > div > p{margin-top:1rem !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(6){margin-top:1rem !important;}
#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(7){margin-top:1rem !important;}
#aname{padding:6px !important;border-radius:6px !important;height:45px}
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
#content-header-row > div.row{margin-top:-40px !important;}
#content-header-row > form{margin-top:-2rem !important;}
#aname::placeholder{padding-left:0.5rem}
.dropdown-image{display:inline-block;margin:3px;width:35px;height:35px;}
`)
document.querySelector("#content-header-row > form > div.row.mt-3.w-100 > table > tbody > tr > td.actions > div:nth-child(6) > div:nth-child(1) > select")
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
});
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 rgb\(204, 0, 0\)/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(/<img alt="[^"]*" class="[^"]*" id="[^"]*" src="[^"]*" style="border: 2px solid rgb\(204, 0, 0\);" onmouseover="[^"]*" onmouseout="[^"]*" ondblclick="[^"]*" onclick="[^"]*">/g).toString().replaceAll(/class="[^"]*"/g,"").replaceAll(`rgb(204, 0, 0)`,`#131313`).replaceAll(",","").replaceAll(/onclick="[^"]*"/g,"").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 = ''}
}},500);
var title = document.querySelector("#content-header-row > div.col-12.layout-spacing > div > div.row > div.col-auto.text-left > h4").innerHTML.match(/<img src="\/img\/CrewPoints\.png" onmouseover="popup\(event,'(.*) Crew Points'\);" onmouseout="kill\(\);"> (.*)/i)
var storage = document.querySelector("#content-header-row > div.w-100.mb-3").innerHTML.match(/Currently Storing <b>(.*) \/ (.*)<\/b> Items/i)
var crewid = document.querySelector("#content-header-row > div.col-12.layout-spacing > div > div.btn-group.mb-3.mr-2").innerHTML.match(/crew_raidresults\.php\?crewid=(.*)">Raid Results<\/a>/i)
var actions = document.querySelector("#content-header-row > form > div.row.mt-3.w-100").innerHTML
.replace("To award an item to a crew member, click the item(s) you would like to award above, then select the crew member to award it to below","")
.replace(`<a href="/crew_actionlog.php?l=Award%20Item">View awarded item log</a>`,"")
.replace(`<font size="1">Note: To deposit an item into your crew's vault, your crew must have the Two Way Vault upgrade from the Treasury.</font>`,"")
.replace(`<h5>Award Item</h5>`,"")
.replace(`<h5>Raidbound Items</h5>`,"")
.replace(`<p>Choose a crew member to select all raidbound items available to them.</p>`,"")
.replace(`<a href="/crew_actionlog.php?l=Delete%20Item">View deleted item log</a>`,"")
.replace(`<p>To delete an item from the vault, click the item(s) you would like to delete above, check the check box, then click the delete items button below.</p>`,"")
var items = document.querySelector("#content-header-row > form > div.widget-content.widget-content-area.w-100.mx-3 > div > div").innerHTML
document.querySelector("#content-header-row > form > div.row.mt-3.w-100").innerHTML = `
<table><tr><td class="actions">
<div class="btn-group" role="group">
<button id="btnGroupDefault" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Menu <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDefault" style="will-change: transform;">
<a class="dropdown-item" href="/crew_pointbank">Point Bank</a>
<a class="dropdown-item" href="/crew_stones">Upgrade Stones</a>
<a class="dropdown-item" href="/crew_treasury">Treasury</a>
<a class="dropdown-item" href="/crew_actionlog.php?l=Award%20Item">Award Log</a>
<a class="dropdown-item" href="/crew_actionlog.php?l=Delete%20Item">Deleted Log</a>
</div>
</div>
<div class="btn-group" role="group">
<button id="btnGroupDefault" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Select all <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDefault" style="will-change: transform;">
<a class="dropdown-item" href="javascript:void(0);" id="selectall_eth">Ethereal</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_ep">Exalted Perfection</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_fa">Foundry Augs</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_dr">Dragon Set</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_lf">Life Forces</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_nl">Nobel Lord</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_per">Perfectionist</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_sw">Spiral World</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_sg">Soul Gems</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_wilk">Wilker Quest Items</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_wle">Wonderland Eq</a>
<a class="dropdown-item" href="javascript:void(0);" id="selectall_wlp">Wonderland Pots</a>
</div>
</div>
<p style="margin-top:10px">
<div class="col-12 col-lg-6">
<div class="widget-content widget-content-area w-100 text-left mt-3"><b>ITEMS SELECTED:</b> <span id="cnt">0</span><p><span id="selected"></span></div>
<div class="widget-content widget-content-area w-100 text-left mt-3" style="margin-bottom:1rem"><input type="text" placeholder="AWARD BY NAME" id="aname" name="aname" class="form-control"></div>
</div>`+actions+`</td><td class="vaultitems">
<a href="javascript:void(0);" id="click" onmouseover="statspopup(event,'Download crew vault as PNG image')" onmouseout="kill()">
<img src="https://studiomoxxi.com/moxximod/32x32[1].png" width="22px" height="22px" style="display:inline-block;margin-right:5px;margin-top:-8px;"></a>
<h6 style="font-size:22px;display:inline-block;margin-bottom:0rem;"><b>`+title[2]+`</b> | `+storage[1]+` / `+storage[2]+` items | `+title[1]+` points | Sort by: <a href="/crew_vault?order=1">Alpha</a> / <a href="/crew_vault?order=2">Newest</a></h6><p><div id="cvitems">`+items+"</div>"
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 += `<p style="margin-top:0.5rem"><button class="btn btn-primary" id="cv_chaostele">CHAOS TELEPORTERS<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Load chaos teleporters on this RGA')" onmouseout="kill()"></button>`
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(`
<div id="eq_photo">
<a href="javascript:void(0);" id="click" onmouseover="statspopup(event,'Download crew vault as PNG image')" onmouseout="kill()">
<img src="https://studiomoxxi.com/moxximod/32x32[1].png" width="40px" height="40px"></a>
</div>`)
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(`
<div id="export_screen"><div id="export"><center><img src="https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif" class="loading">
</div></div>`)
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]+"><strong>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(/<a href="\/send_ow_message\?name=(.*)">/i)[1]+","
data += profile.match(/CHARACTER CLASS.*[\n\r].*<font size="2">Level ([0-9]+)(.*)<\/b><\/td>/i)[1]+","
data += profile.match(/TOTAL EXPERIENCE.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font><\/b><\/td>/i)[1].replaceAll(",","")+","
data += profile.match(/ELEMENTAL ATTACK.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/ELEMENTAL RESIST.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/ATTACK.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/HIT POINTS.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/CHAOS DAMAGE.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",","")+","
data += profile.match(/Maximum:<\/b><\/td><td>(.*?)<\/td><\/tr>/i)[1].replaceAll(",","")+","
var corei = (profile.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/i) || `src="0" id=0&`).toString().replaceAll("http://torax.","").replaceAll("http://sigil.","").match(/src="([^"]*)"/i)[1]+","
var corel = (profile.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:118px; top:7px; width:62px; height:46px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:197px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:45px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:121px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:198px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:61px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:118px; top:175px; width:62px; height:75px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:197px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:118px; top:262px; width:62px; height:66px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:10px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:54px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r]<img .*<\/div>/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(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\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(/<div style="position:absolute; left:214px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r]<img .*<\/div>/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 = `<input type="text" id="exlink" class="form-control" name="" size="50" autocomplete="off" onclick="this.select();"><p style="margin-top:1rem;"><button class="btn btn-primary" id="exportcopy">COPY</button> <button class="btn btn-primary" id="exportexit">EXIT</button> <span id="msg" style="margin-left:1rem"></span>`
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]+"><strong>PLAY!/g)
for (const match of chars) {charids += `<tr><td>`+match[1]+`</td><td class="rgadata"></td><td class="rgadata"></td><td class="rgadata"></td><td class="rgadata"></td><td class="rgadata"></td></tr>`}
$("body").append(`
<div id="fullscreen">
<div id="rgamove"><center><table id="rgadata"><tr><td>CHAR ID</td><td>NAME</td><td>CIRC</td><td>CURRENT ROOM</td><td>NUMBER</td><td><input type="checkbox" id="checkall"></td></tr>`+charids+`</table></div></div>
<div id="mover_buttons"><button class="rga-move" id="rgamoveexit">EXIT</button><input type="text" placeholder="room #" id="rgamovenum" size="10" autocomplete="off"><button class="rga-move" id="multimove">GO TO ROOM</button>
</div>`)
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 size="3">(.*)<\/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(`<input type="checkbox" class="moveme" name="moveme" value="`+document.querySelector("#rgadata > 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(`<img src="https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif" height="15px" width="15px">`)
$("#rgadata > tbody > tr:nth-child("+row+") > td.rgadata").eq(3).html(`<img src="https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif" height="15px" width="15px">`)
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 = `<button class="rga-move" id="multimove" disabled="disabled" style="opacity:0.5;">GO TO ROOM</button>`
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(`<div id="searchPop"><a href="javascript:void(0);" id="closeSearch">X</a><br><div id="searchTable">
<input type="text" class="search" id="rgaSearch" autocomplete="off" placeholder="enter full item name (case sensitive)">
<p><button class="btn btn-primary" id="rgasearch_go" style="width:250px;margin-left:5px;">SEARCH BACKPACKS</button>
</div></div>`)
$("#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 += `<tr><td>`+match[1]+`</td><td>`+match[2]+`</td><td class="quantity"></td></tr>`}
document.querySelector("#searchTable").innerHTML = `
<span id="search4">searching for `+document.querySelector("#rgaSearch").value+`</span><p>
<img id="loadimg" src="https://studiomoxxi.com/moxximod/loading-gif.gif" style="width:50px;height:50px;margin:15px;"><p>
<table id="results">
<tr><td width="80px"><b>char id</b></td><td width="290px"><b>char name</b></td><td width="75px"><b>QNTY</b></td></tr>
`+searchtable+`</table>`
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 (`
#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]+"><strong>PLAY!/g)
for (const match of chars) {charids += `<tr><td>`+match[1]+`</td><td class="chaosdata">name</td><td class="chaosdata">backpack</td><td class="chaosdata">skills</td><td class="chaosdata">rage</td></tr>`}
$("body").append(`<div id="chaos_telescreen"><div id="chaostele"><center><img src="https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif" class="loading"><table id="chaosdata"><tr><td>CHAR ID</td><td>NAME</td><td>TELE</td><td>CIRC</td><td>RAGE</td></tr>`+charids+`</table><p>
<button class="btn btn-primary" id="chaosteleexit">EXIT</button>
<button class="btn btn-primary" id="useteleporters">USE TELEPORTERS</button></div></div>`)
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 = `<img src="https://torax.outwar.com/images/items/arenateleporter.jpg">`} 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 size="3">(.*)<\/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 class="toolbar_rage">(.*)<\/span>/i)[1])
var teleqnt = (document.querySelector("#chaosdata").innerHTML.match(/<img src="https:\/\/torax\.outwar\.com\/images\/items\/arenateleporter\.jpg">/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 = `
<div class="tools">
Set default trade quantity<br>
<input id="trade_qnt" type="text" name="trade_qnt" placeholder="`+qnt+`" class="form-control" style="width:110px !important;margin-bottom:1rem !important;display:inline !important;">
<button id="trade_qntbtn" class="btn btn-primary " style="display:inline !important;height:39px !important;margin-bottom:4px;">SET</button>
</div>
<div class="tools" id="autoadd">
aaa
</div>
`
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 add<br><button id="autoaddbtn" class="btn btn-primary" style="display:inline !important;height:39px !important;margin-bottom:4px;">TURN OFF</button>`
document.querySelector("#autoaddbtn").addEventListener("click", autoadd_off, false);
} else {
document.querySelector("#autoadd").innerHTML = `Automatically add<br><button id="autoaddbtn" class="btn btn-primary" style="display:inline !important;height:39px !important;margin-bottom:4px;">TURN ON</button>`
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;}`)
}}}
if (document.URL.indexOf("godstatus") != -1 && error == false) {
GM_addStyle (`
`)
var Agnar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Agnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Agnar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Agnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Agnar == ""){Agnar = "Agnar"}
var Valzek = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Valzek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Valzek = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Valzek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Valzek == ""){Valzek = "Valzek"}
var Arcon = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Arcon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Arcon = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Arcon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Arcon == ""){Arcon = "Arcon"}
var Firan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Firan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Firan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Firan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Firan == ""){Firan = "Firan"}
var Kinark = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Kinark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Kinark = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Kinark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Kinark == ""){Kinark = "Kinark"}
var Shayar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shayar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Shayar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shayar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Shayar == ""){Shayar = "Shayar"}
var Holgor = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Holgor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Holgor = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Holgor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Holgor == ""){Holgor = "Holgor"}
var Envar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Envar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Envar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Envar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Envar == ""){Envar = "Envar"}
var Banok = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Banok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Banok = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Banok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Banok == ""){Banok = "Banok"}
var Rezun = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rezun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Rezun = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rezun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Rezun == ""){Rezun = "Rezun"}
var Rillax = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rillax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Rillax = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rillax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Rillax == ""){Rillax = "Rillax"}
var Villax = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Villax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Villax = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Villax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Villax == ""){Villax = "Villax"}
var Dexor = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dexor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Dexor = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dexor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Dexor == ""){Dexor = "Dexor"}
var Gregov = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gregov.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Gregov = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gregov.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Gregov == ""){Gregov = "Gregov"}
var Murfax = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Murfax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Murfax = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Murfax.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Murfax == ""){Murfax = "Murfax"}
var Thanox = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Thanox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Thanox = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Thanox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Thanox == ""){Thanox = "Thanox"}
var Skarthul = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Skarthul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Skarthul = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Skarthul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Skarthul == ""){Skarthul = "Skarthul"}
var Straya = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Straya.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Straya = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Straya.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Straya == ""){Straya = "Straya"}
var Dlanod = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dlanod.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Dlanod = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dlanod.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Dlanod == ""){Dlanod = "Dlanod"}
var Viserion = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Viserion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Viserion = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Viserion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Viserion == ""){Viserion = "Viserion"}
var Balerion = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Balerion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Balerion = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Balerion.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Balerion == ""){Balerion = "Balerion"}
var Xynak = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Xynak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Xynak = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Xynak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Xynak == ""){Xynak = "Xynak"}
var Crolvak = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crolvak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Crolvak = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crolvak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Crolvak == ""){Crolvak = "Crolvak"}
var Esquin = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Esquin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Esquin = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Esquin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Esquin == ""){Esquin = "Esquin"}
var Raiyar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Raiyar, the Shadow Master.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Raiyar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Raiyar, the Shadow Master.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Raiyar == ""){Raiyar = "Raiyar"}
var Bolkor = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Bolkor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Bolkor = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Bolkor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Bolkor == ""){Bolkor = "Bolkor"}
var Nafir = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nafir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Nafir = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nafir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Nafir == ""){Nafir = "Nafir"}
var Yirkon = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Yirkon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Yirkon = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Yirkon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Yirkon == ""){Yirkon = "Yirkon"}
var Keeper = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Keeper of Nature.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Keeper = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Keeper of Nature.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Keeper == ""){Keeper = "Keeper"}
var Akkel = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Akkel.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Akkel = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Akkel.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Akkel == ""){Akkel = "Akkel"}
var Nayark = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nayark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Nayark = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nayark.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Nayark == ""){Nayark = "Nayark"}
var Apparition = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Apparition.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Apparition = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Apparition.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Apparition == ""){Apparition = "Apparition"}
var Zikkir = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zikkir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Zikkir = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zikkir.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Zikkir == ""){Zikkir = "Zikkir"}
var Volgan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Volgan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Volgan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Volgan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Volgan == ""){Volgan = "Volgan"}
var Jorun = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Jorun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Jorun = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Jorun.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Jorun == ""){Jorun = "Jorun"}
var Tarkin = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tarkin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Tarkin = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tarkin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Tarkin == ""){Tarkin = "Tarkin"}
var Sarcrina = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*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(/<a href="raidattack\.php\?raidid=.*">.*Sarcrina.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Sarcrina == ""){Sarcrina = "Sarcrina"}
var Karvaz = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Karvaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Karvaz = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Karvaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Karvaz == ""){Karvaz = "Karvaz"}
var Felroc = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Felroc.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Felroc = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Felroc.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Felroc == ""){Felroc = "Felroc"}
var Kretok = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Kretok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Kretok = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Kretok.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Kretok == ""){Kretok = "Kretok"}
var Drake = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Drake.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Drake = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Drake.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Drake == ""){Drake = "Drake"}
var Captain = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Captain.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Captain = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Captain.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Captain == ""){Captain = "Captain"}
var Qsec = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Q-SEC.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Qsec = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Q-SEC.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Qsec == ""){Qsec = "Q-SEC"}
var Dragonite = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dragonite.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Dragonite = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dragonite.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Dragonite == ""){Dragonite = "Dragonite"}
var Beast = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Beast.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Beast = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Beast.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Beast == ""){Beast = "Beast"}
var Slug = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Slug.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Slug = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Slug.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Slug == ""){Slug = "Slug"}
var Sylvanna = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sylvanna.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Sylvanna = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sylvanna.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Sylvanna == ""){Sylvanna = "Sylvanna"}
var Lacuste = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Lacuste.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Lacuste = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Lacuste.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Lacuste == ""){Lacuste = "Lacuste"}
var Anvilfist = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Anvilfist.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Anvilfist = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Anvilfist.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Anvilfist == ""){Anvilfist = "Anvilfist"}
var Gorganus = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gorganus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Gorganus = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gorganus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Gorganus == ""){Gorganus = "Gorganus"}
var Ormsul = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ormsul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Ormsul = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ormsul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Ormsul == ""){Ormsul = "Ormsul"}
var Skybrine = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Skybrine.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Skybrine = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Skybrine.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Skybrine == ""){Skybrine = "Skybrine"}
var Windstrike = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Windstrike.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Windstrike = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Windstrike.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Windstrike == ""){Windstrike = "Windstrike"}
var Grivvek = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Grivvek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Grivvek = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Grivvek.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Grivvek == ""){Grivvek = "Grivvek"}
var Varsanor = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Varsanor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Varsanor = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Varsanor.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Varsanor == ""){Varsanor = "Varsanor"}
var Crantos = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crantos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Crantos = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crantos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Crantos == ""){Crantos = "Crantos"}
var Emerald = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Emerald.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Emerald = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Emerald.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Emerald == ""){Emerald = "Emerald"}
var Murderface = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Murderface.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Murderface = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Murderface.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Murderface == ""){Murderface = "Murderface"}
var Detox = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Detox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Detox = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Detox.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Detox == ""){Detox = "Detox"}
var Samatha = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Samatha.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Samatha = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Samatha.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Samatha == ""){Samatha = "Samatha"}
var Anguish = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Anguish.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Anguish = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Anguish.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Anguish == ""){Anguish = "Anguish"}
var Numerocure = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Numerocure.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Numerocure = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Numerocure.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Numerocure == ""){Numerocure = "Numerocure"}
var Hackerphage = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Hackerphage.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Hackerphage = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Hackerphage.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Hackerphage == ""){Hackerphage = "Hackerphage"}
var Howldroid = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Howldroid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Howldroid = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Howldroid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Howldroid == ""){Howldroid = "Howldroid"}
var Slashbrood = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Slashbrood.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Slashbrood = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Slashbrood.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Slashbrood == ""){Slashbrood = "Slashbrood"}
var Neudeus = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Neudeus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Neudeus = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Neudeus.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Neudeus == ""){Neudeus = "Neudeus"}
var Baron = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Baron.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Baron = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Baron.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Baron == ""){Baron = "Baron"}
var Freezebreed = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Freezebreed.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Freezebreed = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Freezebreed.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Freezebreed == ""){Freezebreed = "Freezebreed"}
var Rotborn = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rotborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Rotborn = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rotborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Rotborn == ""){Rotborn = "Rotborn"}
var Melt = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Melt.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Melt = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Melt.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Melt == ""){Melt = "Melt"}
var Chaos = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Lady Chaos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Chaos = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Lady Chaos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Chaos == ""){Chaos = "Chaos"}
var Gnorb = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gnorb.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Gnorb = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Gnorb.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Gnorb == ""){Gnorb = "Gnorb"}
var Nessam = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nessam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Nessam = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nessam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Nessam == ""){Nessam = "Nessam"}
var Crane = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crane.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Crane = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Crane.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Crane == ""){Crane = "Crane"}
var Pinosis = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Pinosis.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Pinosis = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Pinosis.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Pinosis == ""){Pinosis = "Pinosis"}
var Tsort = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tsort.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Tsort = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tsort.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Tsort == ""){Tsort = "Tsort"}
var Shadow = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shadow<\/a>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Shadow = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shadow<\/a>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Shadow == ""){Shadow = "Shadow"}
var Xordam = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Xordam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Xordam = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Xordam.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Xordam == ""){Xordam = "Xordam"}
var Ebliss = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ebliss.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Ebliss = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ebliss.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Ebliss == ""){
Ebliss = "Ebliss"}
var Brutalitar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Brutalitar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Brutalitar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Brutalitar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Brutalitar == ""){Brutalitar = "Brutalitar"}
var Dreg = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dreg.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Dreg = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Dreg.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Dreg == ""){Dreg = "Dreg"}
var Ashnar = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ashnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Ashnar = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ashnar.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Ashnar == ""){Ashnar = "Ashnar"}
var Zhul = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zhul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Zhul = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zhul.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Zhul == ""){Zhul = "Zhul"}
var Ganja = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ganja.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Ganja = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ganja.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Ganja == ""){Ganja = "Ganja"}
var Sibannac = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sibannac.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Sibannac = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sibannac.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Sibannac == ""){Sibannac = "Sibannac"}
var Smoot = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Smoot.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Smoot = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Smoot.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Smoot == ""){Smoot = "Smoot"}
var Bloodchill = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Bloodchill.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Bloodchill = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Bloodchill.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Bloodchill == ""){Bloodchill = "Bloodchill"}
var Nabak = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nabak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Nabak = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Nabak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Nabak == ""){Nabak = "Nabak"}
var Shuk = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shuk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Shuk = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Shuk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Shuk == ""){Shuk = "Shuk"}
var Varan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Varan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Varan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Varan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Varan == ""){Varan = "Varan"}
var Narada = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Narada.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Narada = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Narada.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Narada == ""){Narada = "Narada"}
var Ariella = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ariella.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Ariella = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ariella.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Ariella == ""){Ariella = "Ariella"}
var Suka = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Suka.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Suka = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Suka.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Suka == ""){Suka = "Suka"}
var Ganeshan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ganeshan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Ganeshan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Ganeshan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Ganeshan == ""){Ganeshan = "Ganeshan"}
var Garland = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Garland.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Garland = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Garland.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Garland == ""){Garland = "Garland"}
var Tylos = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tylos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Tylos = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Tylos.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Tylos == ""){Tylos = "Tylos"}
var Threk = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Threk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Threk = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Threk.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Threk == ""){Threk = "Threk"}
var Jazzmin = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Jazzmin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Jazzmin = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Jazzmin.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Jazzmin == ""){Jazzmin = "Jazzmin"}
var Sigil = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sigil.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Sigil = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Sigil.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Sigil == ""){Sigil = "Sigil"}
var Synge = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Synge.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Synge = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Synge.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Synge == ""){Synge = "Synge"}
var Rancid = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rancid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Rancid = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Rancid.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Rancid == ""){Rancid = "Rancid"}
var Terrance = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Terrance.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Terrance = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Terrance.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Terrance == ""){Terrance = "Terrance"}
var Zertan = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zertan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Zertan = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Zertan.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Zertan == ""){Zertan = "Zertan"}
var Quiver = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Quiver.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Quiver = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Quiver.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Quiver == ""){Quiver = "Quiver"}
var Wanhiroeaz = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Wanhiroeaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Wanhiroeaz = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Wanhiroeaz.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Wanhiroeaz == ""){Wanhiroeaz = "Wanhiroeaz"}
var Vitkros = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Vitkros.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Vitkros = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Vitkros.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Vitkros == ""){Vitkros = "Vitkros"}
var Hyrak = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Hyrak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Hyrak = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Hyrak.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Hyrak == ""){Hyrak = "Hyrak"}
var Mistress = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Mistress.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Mistress = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Mistress.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Mistress == ""){Mistress = "Mistress"}
var Traxodon = '';
if (document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Traxodon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g) != null){
Traxodon = document.querySelector("#content-header-row > div > table").innerHTML.match(/<a href="raidattack\.php\?raidid=.*">.*Traxodon.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]/g).toString().replaceAll("<td>","").replaceAll("</td>","<br>").replace(`<a href="crew_profile`,`<hr class="hr"><a href="crew_profile`).replace(/,.*/g,"")}
if (Traxodon == ""){Traxodon = "Traxodon"}
var header = document.querySelector("#content-header-row > h2")
var style2 = "height: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<p>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/agnargod.png style="`+style2+`" alt="agnar"><div class="centered">`+Agnar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/valzekdeathgod.png style="`+style2+`" alt="valzek"><div class="centered">`+Valzek+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/arcongod.png style="`+style5+`" alt="arcon"><div class="centered">`+Arcon+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/firangod.png style="`+style5+`" alt="firan"><div class="centered">`+Firan+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/kinarkgod.png style="`+style5+`" alt="kinark"><div class="centered">`+Kinark+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/shayargod.png style="`+style5+`" alt="shayar"><div class="centered">`+Shayar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/holgorgod.png style="`+style5+`" alt="holgor"><div class="centered">`+Holgor+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/vomgod1.jpg style="`+style5+`" alt="envar"><div class="centered">`+Envar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/vomgod2.jpg style="`+style5+`" alt="banok"><div class="centered">`+Banok+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/vomgod3.jpg style="`+style5+`" alt="rezun"><div class="centered">`+Rezun+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/Rillaxgod.png style="`+style5+`" alt="rillax"><div class="centered">`+Rillax+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/villaxgod.png style="`+style5+`" alt="villax"><div class="centered">`+Villax+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/velgod1.jpg style="`+style4+`" alt="dexor"><div class="centered">`+Dexor+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/velgod2.jpg style="`+style4+`" alt="gregov"><div class="centered">`+Gregov+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/velgod3.jpg style="`+style4+`" alt="murfax"><div class="centered">`+Murfax+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/velendgamegod.jpg style="`+style4+`" alt="thanox"><div class="centered">`+Thanox+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/moba98.jpg style="`+style5+`" alt="skarthul"><div class="centered">`+Skarthul+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/mobb11.jpg style="`+style5+`" alt="straya"><div class="centered">`+Straya+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/dlanod.jpg style="`+style5+`" alt="dlanod"><div class="centered">`+Dlanod+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/winterosdragon1.jpg style="`+style5+`" alt="viserion"><div class="centered">`+Viserion+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/mobe79.jpg style="`+style5+`" alt="balerion"><div class="centered">`+Balerion+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3arcane.jpg style="`+style6+`" alt="xynak"><div class="centered">`+Xynak+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3fire.jpg style="`+style6+`" alt="crolvak"><div class="centered">`+Crolvak+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3kinetic.jpg style="`+style6+`" alt="esquin"><div class="centered">`+Esquin+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3shadow.jpg style="`+style6+`" alt="raiyar"><div class="centered">`+Raiyar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod3holy.jpg style="`+style6+`" alt="bolkor"><div class="centered">`+Bolkor+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegodultimate.jpg style="`+style6+`" alt="nafir"><div class="centered">`+Nafir+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2shadow.jpg style="`+style5+`" alt="yirkon"><div class="centered">`+Yirkon+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2kinetic.jpg style="`+style5+`" alt="keeper"><div class="centered">`+Keeper+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2fire.jpg style="`+style5+`" alt="akkel"><div class="centered">`+Akkel+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2arcane.jpg style="`+style5+`" alt="nayark"><div class="centered">`+Nayark+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod2holy.jpg style="`+style5+`" alt="apparition"><div class="centered">`+Apparition+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1shadow.jpg style="`+style5+`" alt="zikkir"><div class="centered">`+Zikkir+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1kinetic.jpg style="`+style5+`" alt="volgan"><div class="centered">`+Volgan+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1fire.jpg style="`+style5+`" alt="jorun"><div class="centered">`+Jorun+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1arcane.jpg style="`+style5+`" alt="tarkin"><div class="centered">`+Tarkin+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/runegod1holy.jpg style="`+style5+`" alt="Sarcrina"><div class="centered">`+Sarcrina+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/lordkarvazbase.jpg style="`+style3+`" alt="karvaz"><div class="centered">`+Karvaz+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/firemob43.jpg style="`+style3+`" alt="felroc"><div class="centered">`+Felroc+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/natureboss1.jpg style="`+style3+`" alt="kretok"><div class="centered">`+Kretok+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/under_undeadDragon.jpg style="`+style6+`" alt="drake"><div class="centered">`+Drake+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/under_zombie1.jpg style="`+style6+`" alt="captain"><div class="centered">`+Captain+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/qsecCommander.jpg style="`+style6+`" alt="qsec"><div class="centered">`+Qsec+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/jadedragonite.jpg style="`+style6+`" alt="dragonite"><div class="centered">`+Dragonite+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/cardBeast.jpg style="`+style6+`" alt="beast"><div class="centered">`+Beast+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/noxSlug.jpg style="`+style6+`" alt="slug"><div class="centered">`+Slug+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/sylvanna_torlai.jpg style="`+style5+`" alt="sylvanna"><div class="centered">`+Sylvanna+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lacuste.jpg style="`+style5+`" alt="lacuste"><div class="centered">`+Lacuste+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/anvilfist.jpg style="`+style5+`" alt="anvilfist"><div class="centered">`+Anvilfist+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/gorganus.jpg style="`+style5+`" alt="gorganus"><div class="centered">`+Gorganus+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/ormsul.jpg style="`+style5+`" alt="ormsul"><div class="centered">`+Ormsul+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/skyb.jpg style="`+style5+`" alt="skybrine"><div class="centered">`+Skybrine+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/windstrike.jpg style="`+style5+`" alt="windstrike"><div class="centered">`+Windstrike+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/zomg-assasinzz.jpg style="`+style5+`" alt="grivvek"><div class="centered">`+Grivvek+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/Cave%20Bat%20Lord.jpg style="`+style5+`" alt="varsanor"><div class="centered">`+Varsanor+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/mobs/bossqsecbloke.jpg style="`+style5+`" alt="crantos"><div class="centered">`+Crantos+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian1.gif style="`+style5+`" alt="emerald"><div class="centered">`+Emerald+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian5.gif style="`+style5+`" alt="murderface"><div class="centered">`+Murderface+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian4.gif style="`+style5+`" alt="detox"><div class="centered">`+Detox+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian3.gif style="`+style5+`" alt="samatha"><div class="centered">`+Samatha+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zhulguardian2.gif style="`+style5+`" alt="anguish"><div class="centered">`+Anguish+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob7.jpg style="`+style4+`" alt="hackerphage"><div class="centered">`+Hackerphage+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob8.jpg style="`+style4+`" alt="howldroid"><div class="centered">`+Howldroid+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob9.jpg style="`+style4+`" alt="slashbrood"><div class="centered">`+Slashbrood+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob10.jpg style="`+style4+`" alt="neudeus"><div class="centered">`+Neudeus+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob2.jpg style="`+style6+`" alt="baron"><div class="centered">`+Baron+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob1.jpg style="`+style6+`" alt="freezebreed"><div class="centered">`+Freezebreed+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob4.jpg style="`+style6+`" alt="rotborn"><div class="centered">`+Rotborn+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob3.jpg style="`+style6+`" alt="melt"><div class="centered">`+Melt+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob5.jpg style="`+style6+`" alt="chaos"><div class="centered">`+Chaos+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/coesmobs/mob6.jpg style="`+style6+`" alt="numerocure"><div class="centered">`+Numerocure+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Gnorb.jpg style="`+style7+`" alt="gnorb"><div class="centered">`+Gnorb+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Nessam.jpg style="`+style7+`" alt="nessam"><div class="centered">`+Nessam+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Crane.jpg style="`+style7+`" alt="crane"><div class="centered">`+Crane+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Pinosis.jpg style="`+style7+`" alt="pinosis"><div class="centered">`+Pinosis+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Tsort.jpg style="`+style7+`" alt="tsort"><div class="centered">`+Tsort+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Shadow.jpg style="`+style7+`" alt="shadow"><div class="centered">`+Shadow+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/LF/Xordam.jpg style="`+style7+`" alt="xordam"><div class="centered">`+Xordam+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/stoneravenboss4.jpg style="`+style5+`" alt="ebliss"><div class="centered">`+Ebliss+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/guardset4boss2.jpg style="`+style5+`" alt="brutalitar"><div class="centered">`+Brutalitar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/guardset4boss3.jpg style="`+style5+`" alt="dreg"><div class="centered">`+Dreg+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/guardset4boss4.jpg style="`+style5+`" alt="ashnar"><div class="centered">`+Ashnar+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/guardset4boss5.jpg style="`+style5+`" alt="zhul"><div class="centered">`+Zhul+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/ganja.jpg style="`+style6+`" alt="ganja"><div class="centered">`+Ganja+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/sibannac.jpg style="`+style6+`" alt="sibannac"><div class="centered">`+Sibannac+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/smoot.jpg style="`+style6+`" alt="smoot"><div class="centered">`+Smoot+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/grizzlybear.jpg style="`+style6+`" alt="blood"><div class="centered">`+Bloodchill+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/abomination.jpg style="`+style6+`" alt="ag"><div class="centered">`+Nabak+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/newdemon6.jpg style="`+style6+`" alt="kro"><div class="centered">`+Shuk+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/lord_varan.gif style="`+style5+`" alt="varan"><div class="centered">`+Varan+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lord_narada.gif style="`+style5+`" alt="narada"><div class="centered">`+Narada+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lady_ariella.gif style="`+style5+`" alt="ariella"><div class="centered">`+Ariella+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lord_suka.gif style="`+style5+`" alt="suka"><div class="centered">`+Suka+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lord_ganesha.gif style="`+style5+`" alt="ganeshan"><div class="centered">`+Ganeshan+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod1.jpg style="`+style5+`" alt="wanhiroeaz"><div class="centered">`+Wanhiroeaz+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod2.jpg style="`+style5+`" alt="vitkros"><div class="centered">`+Vitkros+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod3.jpg style="`+style5+`" alt="hyrak"><div class="centered">`+Hyrak+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod4.jpg style="`+style5+`" alt="mistress"><div class="centered">`+Mistress+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/lowbiegod5.jpg style="`+style5+`" alt="traxodon"><div class="centered">`+Traxodon+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/council1.jpg style="`+style5+`" alt="garland"><div class="centered">`+Garland+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/council2.jpg style="`+style5+`" alt="tylos"><div class="centered">`+Tylos+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/council3.jpg style="`+style5+`" alt="threk"><div class="centered">`+Threk+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/council4.jpg style="`+style5+`" alt="jazzmin"><div class="centered">`+Jazzmin+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/council5.jpg style="`+style5+`" alt="sigil"><div class="centered">`+Sigil+`</div></div></td>
</tr></table>
<table class="godstatus"><tr>
<td><div class="godbox"><img src=https://www.outwar.com/images/reddragon.jpg style="`+style5+`" alt="synge"><div class="centered">`+Synge+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/rancid.jpg style="`+style5+`" alt="rancid"><div class="centered">`+Rancid+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/terrance.jpg style="`+style5+`" alt="terrance"><div class="centered">`+Terrance+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/zertan.jpg style="`+style5+`" alt="zertan"><div class="centered">`+Zertan+`</div></div></td>
<td><div class="godbox"><img src=https://www.outwar.com/images/quiver.jpg style="`+style5+`" alt="quiver"><div class="centered">`+Quiver+`</div></div></td>
</tr></table>
`
header.innerHTML = godtabs
}
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]+) <span style="color:#00FFFF/g);
if (holyaug == null){holyaug = 0}
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null){arcaneaug = 0}
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null){fireaug = 0}
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null){kineticaug = 0}
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null){shadowaug = 0}
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null){chaosaug = 0}
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null){psaug = 0}
var aug1holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug1arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug1fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug1kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug1shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug1chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug1ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
fetch("/item_rollover.php?id="+itemID+"_2")
.then(response => response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) <span style="color:#00FFFF/g);
if (holyaug == null){holyaug = 0}
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null){arcaneaug = 0}
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null){fireaug = 0}
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null){kineticaug = 0}
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null){shadowaug = 0}
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null){chaosaug = 0}
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null){psaug = 0}
var aug2holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug2arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug2fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug2kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug2shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug2chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug2ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
fetch("/item_rollover.php?id="+itemID+"_3")
.then(response => response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) <span style="color:#00FFFF/g);
if (holyaug == null){holyaug = 0}
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null){arcaneaug = 0}
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null){fireaug = 0}
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null){kineticaug = 0}
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null){shadowaug = 0}
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null){chaosaug = 0}
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null){psaug = 0}
var aug3holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug3arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug3fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug3kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug3shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug3chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug3ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
fetch("/item_rollover.php?id="+itemID+"_4")
.then(response => response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) <span style="color:#00FFFF/g);
if (holyaug == null){holyaug = 0}
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null){arcaneaug = 0}
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null){fireaug = 0}
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null){kineticaug = 0}
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null){shadowaug = 0}
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null){chaosaug = 0}
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null){psaug = 0}
var aug4holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug4arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug4fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug4kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug4shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug4chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug4ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
fetch("/item_rollover.php?id="+itemID+"_5")
.then(response => response.text())
.then((response) => {
var holyaug = response.match(/ \+([0-9]+) <span style="color:#00FFFF/g);
if (holyaug == null){holyaug = 0}
var arcaneaug = response.match(/ \+([0-9]+) <span style="color:#FFFF00/g);
if (arcaneaug == null){arcaneaug = 0}
var fireaug = response.match(/ \+([0-9]+) <span style="color:#FF0000/g);
if (fireaug == null){fireaug = 0}
var kineticaug = response.match(/ \+([0-9]+) <span style="color:#00FF00/g);
if (kineticaug == null){kineticaug = 0}
var shadowaug = response.match(/ \+([0-9]+) <span style="color:#7e01bc/g);
if (shadowaug == null){shadowaug = 0}
var chaosaug = response.match(/ \+([0-9]+) <span style="color:#f441be/g);
if (chaosaug == null){chaosaug = 0}
var psaug = response.match(/\+([0-9]+)% perfect strike/g);
if (psaug == null){psaug = 0}
var aug5holy = parseInt(holyaug.toString().replace(/ <span style="color:#00FFFF/i,"").replace(/ \+/i,""))
var aug5arcane = parseInt(arcaneaug.toString().replace(/ <span style="color:#FFFF00/i,"").replace(/ \+/i,""))
var aug5fire = parseInt(fireaug.toString().replace(/ <span style="color:#FF0000/i,"").replace(/ \+/i,""))
var aug5kinetic = parseInt(kineticaug.toString().replace(/ <span style="color:#00FF00/i,"").replace(/ \+/i,""))
var aug5shadow = parseInt(shadowaug.toString().replace(/ <span style="color:#7e01bc/i,"").replace(/ \+/i,""))
var aug5chaos = parseInt(chaosaug.toString().replace(/ <span style="color:#f441be/i,"").replace(/ \+/i,""))
var aug5ps = parseInt(psaug.toString().replace(/% perfect strike/i,"").replace(/\+/i,""))
var aholy = aug1holy+aug2holy+aug3holy+aug4holy+aug5holy
var aarcane = aug1arcane+aug2arcane+aug3arcane+aug4arcane+aug5arcane
var afire = aug1fire+aug2fire+aug3fire+aug4fire+aug5fire
var akinetic = aug1kinetic+aug2kinetic+aug3kinetic+aug4kinetic+aug5kinetic
var ashadow = aug1shadow+aug2shadow+aug3shadow+aug4shadow+aug5shadow
var achaos = aug1chaos+aug2chaos+aug3chaos+aug4chaos+aug5chaos
var aps = aug1ps+aug2ps+aug3ps+aug4ps+aug5ps
var Gslot1 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(3)").outerHTML.replace(/<img src="\/images\/gemslot2\.jpg">/i,1).replace(/<img src="\/images\/gem_.*\.jpg">/i,0)
var Gslot2 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(4)").outerHTML.replace(/<img src="\/images\/gemslot2\.jpg">/i,1).replace(/<img src="\/images\/gem_.*\.jpg">/i,0)
var Gslot3 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(5)").outerHTML.replace(/<img src="\/images\/gemslot2\.jpg">/i,1).replace(/<img src="\/images\/gem_.*\.jpg">/i,0)
var Gslot4 = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(2) > img:nth-child(6)").outerHTML.replace(/<img src="\/images\/gemslot2\.jpg">/i,1).replace(/<img src="\/images\/gem_.*\.jpg">/i,0)
var sum = Math.round(Gslot1+Gslot2+Gslot3+Gslot4)
var gems = '';
if (sum == "0"){gems = "4"}
if (sum == "1"){gems = "3"}
if (sum == "11"){gems = "2"}
if (sum == "111"){gems = "1"}
if (sum == "1111"){gems = "0"}
var item = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(1)").outerHTML.replace(/<span style="color:#00FF00"> \(\+[0-9]+\)<\/span>/g,"").replaceAll(",","");
var atk = item.match(/\+([0-9]+) ATK/) ?? 0
var holy = item.match(/\+([0-9]+) <span style="color:#.*">Holy/) ?? 0
var arcane = item.match(/\+([0-9]+) <span style="color:#.*">Arcane/) ?? 0
var shadow = item.match(/\+([0-9]+) <span style="color:#.*">Shadow/) ?? 0
var fire = item.match(/\+([0-9]+) <span style="color:#.*">Fire/) ?? 0
var kinetic = item.match(/\+([0-9]+) <span style="color:#.*">Kinetic/) ?? 0
var chaos = item.match(/\+([0-9]+) <span style="color:#.*">Chaos/) ?? 0
var vile = item.match(/\+([0-9]+) vile energy/) ?? 0
var hp = item.match(/\+([0-9]+) HP/) ?? 0
var holyr = item.match(/\+([0-9]+) Holy Resist/) ?? 0
var arcaner = item.match(/\+([0-9]+) Arcane Resist/) ?? 0
var shadowr = item.match(/\+([0-9]+) Shadow Resist/) ?? 0
var firer = item.match(/\+([0-9]+) Fire Resist/) ?? 0
var kineticr = item.match(/\+([0-9]+) Kinetic Resist/) ?? 0
var chaosr = item.match(/\+([0-9]+) Chaos Resist/) ?? 0
var block = item.match(/\+([0-9]+)% block/) ?? 0
var eblock = item.match(/\+([0-9]+)% elemental block/) ?? 0
var rpt = item.match(/\+([0-9]+) rage per hr/) ?? 0
var ept = item.match(/\+([0-9]+) exp per hr/) ?? 0
var ramp = item.match(/\+([0-9]+)% rampage/) ?? 0
var ps = item.match(/\+([0-9]+)% perfect strike/) ?? 0
var mr = item.match(/\+([0-9]+) max rage/) ?? 0
var crit = item.match(/\+([0-9]+)% critical hit/) ?? 0
var edititem = document.querySelector("#itemtable > tbody > tr:nth-child(2) > td:nth-child(1)");
if (aholy != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#00FFFF">Holy/," +"+(parseInt(holy[1])-aholy)+" <font color=00FF00>(+"+aholy+")</font><font color=00FFFF> Holy</font>")}
if (aarcane != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#FFFF00">Arcane/," +"+(parseInt(arcane[1])-aarcane)+" <font color=00FF00>(+"+aarcane+")</font><font color=FFFF00> Arcane</font>")}
if (afire != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#FF0000">Fire/," +"+(parseInt(fire[1])-afire)+" <font color=00FF00>(+"+afire+")</font><font color=FF0000> Fire</font>")}
if (akinetic != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#00FF00">Kinetic/," +"+(parseInt(kinetic[1])-akinetic)+" <font color=00FF00>(+"+akinetic+")</font<font color=00FF00> Kinetic</font>")}
if (ashadow != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#7e01bc">Shadow/," +"+(parseInt(shadow[1])-ashadow)+" <font color=00FF00>(+"+ashadow+")</font><font color=7e01bc> Shadow</font>")}
if (achaos != 0){edititem.innerHTML = edititem.innerHTML.replace(/ \+.* <span style="color:#f441be">Chaos/," +"+(parseInt(chaos[1])-achaos)+" <font color=00FF00>(+"+achaos+")</font><font color=f441be> Chaos</font>")}
if (aps != 0){edititem.innerHTML = edititem.innerHTML.replace(/% perfect strike/," <font color=00FF00>(+"+aps+")</font>% perfect strike")}
var g1 = '';
var g2 = '';
var g3 = '';
var g4 = '';
if (atk[1] > 0){
g1 += "+"+Math.round(atk[1]*1.15)+" ATK<br>"
g2 += "+"+Math.round(atk[1]*1.3225)+" ATK<br>"
g3 += "+"+Math.round(atk[1]*1.520875)+" ATK<br>"
g4 += "+"+Math.round(atk[1]*1.74900625)+" ATK<br>"}
if (holy[1]-aholy > 0){
g1 += " +"+(parseInt(holy[1]))+" <font color=00FFFF>Holy</font><br>"
g2 += " +"+(parseInt(holy[1]))+" <font color=00FFFF>Holy</font><br>"
g3 += " +"+(parseInt(holy[1]))+" <font color=00FFFF>Holy</font><br>"
g4 += " +"+(parseInt(holy[1]))+" <font color=00FFFF>Holy</font><br>"}
if (arcane[1]-aarcane > 0){
g1 += " +"+(parseInt(arcane[1]))+" <font color=FFFF00>Arcane</font><br>"
g2 += " +"+(parseInt(arcane[1]))+" <font color=FFFF00>Arcane</font><br>"
g3 += " +"+(parseInt(arcane[1]))+" <font color=FFFF00>Arcane</font><br>"
g4 += " +"+(parseInt(arcane[1]))+" <font color=FFFF00>Arcane</font><br>"}
if (shadow[1]-ashadow > 0){
g1 += " +"+(parseInt(shadow[1]))+" <font color=7E01BC>Shadow</font><br>"
g2 += " +"+(parseInt(shadow[1]))+" <font color=7E01BC>Shadow</font><br>"
g3 += " +"+(parseInt(shadow[1]))+" <font color=7E01BC>Shadow</font><br>"
g4 += " +"+(parseInt(shadow[1]))+" <font color=7E01BC>Shadow</font><br>"}
if (fire[1]-afire > 0){
g1 += " +"+(parseInt(fire[1]))+" <font color=FF0000>Fire</font><br>"
g2 += " +"+(parseInt(fire[1]))+" <font color=FF0000>Fire</font><br>"
g3 += " +"+(parseInt(fire[1]))+" <font color=FF0000>Fire</font><br>"
g4 += " +"+(parseInt(fire[1]))+" <font color=FF0000>Fire</font><br>"}
if (kinetic[1]-akinetic > 0){
g1 += " +"+(parseInt(kinetic[1]))+" <font color=00FF00>Kinetic</font><br>"
g2 += " +"+(parseInt(kinetic[1]))+" <font color=00FF00>Kinetic</font><br>"
g3 += " +"+(parseInt(kinetic[1]))+" <font color=00FF00>Kinetic</font><br>"
g4 += " +"+(parseInt(kinetic[1]))+" <font color=00FF00>Kinetic</font><br>"}
if (chaos[1]-achaos > 0){
g1 += " +"+(parseInt(chaos[1]))+" <font color=E93EB5>Chaos</font><br>"
g2 += " +"+(parseInt(chaos[1]))+" <font color=E93EB5>Chaos</font><br>"
g3 += " +"+(parseInt(chaos[1]))+" <font color=E93EB5>Chaos</font><br>"
g4 += " +"+(parseInt(chaos[1]))+" <font color=E93EB5>Chaos</font><br>"}
if (vile[1] > 0){
g1 += " +"+vile[1]+" vile energy<br>"
g2 += " +"+vile[1]+" vile energy<br>"
g3 += " +"+vile[1]+" vile energy<br>"
g4 += " +"+vile[1]+" vile energy<br>"}
if (hp[1] > 0){
g1 += "+"+Math.round(hp[1]*1.15)+" HP<br>"
g2 += "+"+Math.round(hp[1]*1.3225)+" HP<br>"
g3 += "+"+Math.round(hp[1]*1.520875)+" HP<br>"
g4 += "+"+Math.round(hp[1]*1.74900625)+" HP<br>"}
if (holyr[1] != undefined){
g1 += " +"+holyr[1]+" Holy Resist<br>"
g2 += " +"+holyr[1]+" Holy Resist<br>"
g3 += " +"+holyr[1]+" Holy Resist<br>"
g4 += " +"+holyr[1]+" Holy Resist<br>"}
if (arcaner[1] > 0){
g1 += " +"+arcaner[1]+" Arcane Resist<br>"
g2 += " +"+arcaner[1]+" Arcane Resist<br>"
g3 += " +"+arcaner[1]+" Arcane Resist<br>"
g4 += " +"+arcaner[1]+" Arcane Resist<br>"}
if (shadowr[1] > 0){
g1 += " +"+shadowr[1]+" Shadow Resist<br>"
g2 += " +"+shadowr[1]+" Shadow Resist<br>"
g3 += " +"+shadowr[1]+" Shadow Resist<br>"
g4 += " +"+shadowr[1]+" Shadow Resist<br>"}
if (firer[1] > 0){
g1 += " +"+firer[1]+" Fire Resist<br>"
g2 += " +"+firer[1]+" Fire Resist<br>"
g3 += " +"+firer[1]+" Fire Resist<br>"
g4 += " +"+firer[1]+" Fire Resist<br>"}
if (kineticr[1] > 0){
g1 += " +"+kineticr[1]+" Kinetic Resist<br>"
g2 += " +"+kineticr[1]+" Kinetic Resist<br>"
g3 += " +"+kineticr[1]+" Kinetic Resist<br>"
g4 += " +"+kineticr[1]+" Kinetic Resist<br>"}
if (chaosr[1] > 0){
g1 += " +"+chaosr[1]+" Chaos Resist<br>"
g2 += " +"+chaosr[1]+" Chaos Resist<br>"
g3 += " +"+chaosr[1]+" Chaos Resist<br>"
g4 += " +"+chaosr[1]+" Chaos Resist<br>"}
if (block[1] > 0){
g1 += "+"+block[1]+"% block<br>"
g2 += "+"+block[1]+"% block<br>"
g3 += "+"+block[1]+"% block<br>"
g4 += "+"+block[1]+"% block<br>"}
if (eblock[1] > 0){
g1 += "+"+eblock[1]+"% elemental block<br>"
g2 += "+"+eblock[1]+"% elemental block<br>"
g3 += "+"+eblock[1]+"% elemental block<br>"
g4 += "+"+eblock[1]+"% elemental block<br>"}
if (rpt[1] > 0){
g1 += "+"+Math.round(rpt[1]*1.15)+" rage per hour<br>"
g2 += "+"+Math.round(rpt[1]*1.3225)+" rage per hour<br>"
g3 += "+"+Math.round(rpt[1]*1.520875)+" rage per hour<br>"
g4 += "+"+Math.round(rpt[1]*1.74900625)+" rage per hour<br>"}
if (ept[1] > 0){
g1 += "+"+Math.round(ept[1]*1.15)+" exp per hour<br>"
g2 += "+"+Math.round(ept[1]*1.3225)+" exp per hour<br>"
g3 += "+"+Math.round(ept[1]*1.520875)+" exp per hour<br>"
g4 += "+"+Math.round(ept[1]*1.74900625)+" exp per hour<br>"}
if (ramp[1] > 0){
g1 += "+"+ramp[1]+"% rampage<br>"
g2 += "+"+ramp[1]+"% rampage<br>"
g3 += "+"+ramp[1]+"% rampage<br>"
g4 += "+"+ramp[1]+"% rampage<br>"}
if (ps[1] > 0){
g1 += "+"+ps[1]+"<br>% perfect strike<br>"
g2 += "+"+ps[1]+"<br>% perfect strike<br>"
g3 += "+"+ps[1]+"<br>% perfect strike<br>"
g4 += "+"+ps[1]+"<br>% perfect strike<br>"}
if (mr[1] > 0){
g1 += "+"+Math.round(mr[1]*1.15)+" max rage<br>"
g2 += "+"+Math.round(mr[1]*1.3225)+" max rage<br>"
g3 += "+"+Math.round(mr[1]*1.520875)+" max rage<br>"
g4 += "+"+Math.round(mr[1]*1.74900625)+" max rage<br>"}
if (crit[1] > 0){
g1 += "+"+crit[1]+"% critical hit<br>"
g2 += "+"+crit[1]+"% critical hit<br>"
g3 += "+"+crit[1]+"% critical hit<br>"
g4 += "+"+crit[1]+"% critical hit<br>"}
var openslot = document.querySelectorAll("img[src='/images/gemslot2.jpg']");
if (openslot[0] != null){openslot[0].setAttribute(`onmouseover`, `popup(event,'<div id=gemcalc>`+g1+`</div>');`);}
if (openslot[0] != null){openslot[0].setAttribute(`onmouseout`, `kill()`);}
if (openslot[1] != null){openslot[1].setAttribute(`onmouseover`, `popup(event,'<div id=gemcalc>`+g2+`</div>')`);}
if (openslot[1] != null){openslot[1].setAttribute(`onmouseout`, `kill()`);}
if (openslot[2] != null){openslot[2].setAttribute(`onmouseover`, `popup(event,'<div id=gemcalc>`+g3+`</div>')`);}
if (openslot[2] != null){openslot[2].setAttribute(`onmouseout`, `kill()`);}
if (openslot[3] != null){openslot[3].setAttribute(`onmouseover`, `popup(event,'<div id=gemcalc>`+g4+`</div>')`);}
if (openslot[3] != null){openslot[3].setAttribute(`onmouseout`, `kill()`);}
var itemNameColor = document.querySelector("#itemtable > tbody > tr:nth-child(1) > td").outerHTML.replace(/<td colspan="2" style="height:20px;font-size:12pt;text-shadow: #47462E 1px 1px 2px;color:#/g,"").replace(/" align="left">.*/g,"");
var itemRarity = '';
if (itemNameColor == "FFFFFF"){itemRarity = "Uncommon";}
if (itemNameColor == "1eff00"){itemRarity = "Rare";}
if (itemNameColor == "ffde5b"){itemRarity = "Elite";}
if (itemNameColor == "0070ff"){itemRarity = "Godly";}
if (itemNameColor == "CA1111"){itemRarity = "Brutal";}
if (itemNameColor == "ff8000"){itemRarity = "King";}
if (itemNameColor == "9000ba"){itemRarity = "Mythic"}
var gemTxt = `
<td colspan="2" style="padding:2px;" valign="top"><div id="itemGemCalc">
<table width=300px border=1 bordercolor=#D4D4D4 id=gemcalc><tr><td>
Item Rarity: <font color=`+itemNameColor+`>`+itemRarity+`
</td><td>
Number of Gems: `+gems+`
</td></tr></table>
<div id=mouseovergem>Mouseover empty gem slot to see gemmed stats</div><p>
</div></td>`
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);}
let menu = document.querySelector("#itemtable > tbody");
let tr = document.createElement('tr');
tr.innerHTML = gemTxt;
insertAfter(tr, menu.lastElementChild);
})})})})})}
GM_addStyle (`
#sidebar{display:revert !important;}
`)
var menu_1 = ''; if (GM_getValue("menu_1") == undefined){menu_1 = `
<li><a href="/myaccount">MY RGA</a></li>
<li><a href="/treasury.php?type=vision">MOXXIVISION</a></li>
<li><a href="https://studiomoxxi.com/moxximod" TARGET="blank">MOXXIMOD</a></li>
<li><a href="?cmd=logout">LOGOUT</a></li>`} else {menu_1 = GM_getValue("menu_1")}
var menu_2 = ''; if (GM_getValue("menu_2") == undefined){menu_2 = `
<li><a href="/profile">PROFILE</a></li>
<li><a href="/ow_messagecenter">MESSAGES</a></li>
<li><a href="/cast_skills">SKILLS</a></li>
<li><a href="/allies">MY ALLIES</a></li>
<li><a href="/underlings">UNDERLINGS</a></li>
<li><a href="/user_preferences">PREFERENCES</a></li>`} else {menu_2 = GM_getValue("menu_2")}
var menu_3 = ''; if (GM_getValue("menu_3") == undefined){menu_3 = `
<li><a href="/treasury?type=-1">BUY ITEMS</a></li>
<li><a href="/mytreasury">SELL ITEMS</a></li>
<li><a href="/supplies">SUPPLIES</a></li>
<li><a href="/pointtransfer">TRANSFER PNTS</a></li>`} else {menu_3 = GM_getValue("menu_3")}
var menu_4 = ''; if (GM_getValue("menu_4") == undefined){menu_4 = `
<li><a href="/attack_search">SEARCH</a></li>
<li><a href="/newrankings">RANKINGS</a></li>
<li><a href="/gladiator">GLADIATORS</a></li>
<li><a href="/event?eventid=woz">WAR OF ZHUL</a></li>
<li><a href="/event?eventid=top">TRIAL OF POWER</a></li>
<li><a href="/kotw">KOTW</a></li>
<li><a href="/news">NEWS</a></li>`} else {menu_4 = GM_getValue("menu_4")}
var menu_5 = ''; if (GM_getValue("menu_5") == undefined){menu_5 = `
<li><a href="/crew_home">CREW HOME</a></li>
<li><a href="/crew_profile">CREW PROFILE</a></li>
<li><a href="/crew_bossspawns">RAID BOSSES</a></li>
<li><a href="/crew_vault">CREW VAULT</a></li>
<li><a href="/godstatus">GOD STATUS</a></li>
<li><a href="/crewinvites">CREW INVITES</a></li>
<li><a href="/crew_leavecrew">LEAVE CREW</a></li>`} else {menu_5 = GM_getValue("menu_5")}
var menu_6 = ''; if (GM_getValue("menu_6") == undefined){menu_6 = `
<li><a href="/attacklog">ATTACK LOG</a></li>
<li><a href="/pvptourney">OPEN TOURNEY</a></li>
<li><a href="/closedpvp">PVP BRAWL</a></li>
<li><a href="/bounty">BOUNTY BOARD</a></li>
<li><a href="/crew_hitlist">CREW HITLIST</a></li>
<li><a href="/myhitlist">MY HITLIST</a></li>`} else {menu_6 = GM_getValue("menu_6")}
var menu_7 = ''; if (GM_getValue("menu_7") == undefined){menu_7 = `
<li><a href="/vault">VAULT</a></li>
<li><a href="/blacksmith">BLACKSMITH</a></li>
<li><a href="/augmentequip">ADD AUGMENTS</a></li>
<li><a href="/itemtransfer">ITEM TRANSFER</a></li>
<li><a href="/dungeons">DUNGEONS</a></li>
<li><a href="/cauldron">CAULDRON</a></li>`} else {menu_7 = GM_getValue("menu_7")}
var menu_8 = ''; if (GM_getValue("menu_8") == undefined){menu_8 = `
<li><a href="/weeklyquests">BOOSTERS</a></li>
<li><a href="/questlog">QUEST LOG</a></li>
<li><a href="/collections">COLLECTIONS</a></li>
<li><a href="/challenge">CHALLENGES</a></li>`} else {menu_8 = GM_getValue("menu_8")}
var buy_points_link = document.querySelector("#accordionExample > a").outerHTML.replace(`<a rel="shadowbox;height=494;width=775" class="sbox" href=`,"").replace(`<img src="/assets/img/getpoints.webp">`,"").replace(`</a>`,"")
var rganame = buy_points_link.match(/rg_sess_id=.*/i).toString().replace(`">`,"").replace(`rg_sess_id=`,"")
var char_id = document.querySelector("#charselectdropdown").innerHTML.match(/<option value="([0-9]+)" selected/i)[1]
var server_id = ''; if (window.location.href.replace("https://","").replace(/\.outwar\.com.*/i,"") == "sigil"){server_id = 1} if (window.location.href.replace("https://","").replace(/\.outwar\.com.*/i,"") == "torax"){server_id = 2}
if (document.querySelector("#sidebar").innerHTML.match(/<span>TRIAL OF PWR<\/span>/i) != null){
}
document.querySelector("#sidebar").innerHTML = `
<nav id="sidebar">
<ul class="list-unstyled menu-categories ps" id="accordionExample">
<li class="menu">
<a href="#rga" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<i class="fa fa-address-card"></i>
<span> MY RGA</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="rga" data-parent="#accordionExample">
<input type="text" value=`+rganame+` class="form-control" id="sessidbox" onclick="this.select();" style="margin:3px;height:15px !important;font-size:9px !important;width:80% !important">
`+menu_1+`
</ul>
</li>
<li class="menu">
<a href="/home" class="dropdown-toggle">
<div class="">
<i class="fa fa-home"></i>
<span> HOME</span>
</div>
</a>
</li>
<li class="menu">
<a href="#components" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<i class="fas fa-user fa-fw"></i>
<span>CHARACTER</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="components" data-parent="#accordionExample">
`+menu_2+`
<li><a href="https://rampidgaming.outwar.com/ppoverview_s2?owsrv=`+server_id+`&owchar=`+char_id+`&rg_sess_id=`+rganame+`" TARGET="BLANK"> PREFERRED PLAYER</a></li>
</ul>
</li>
<li class="menu">
<a href="#elements" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<i class="fa fa-shopping-cart fa-fw"></i>
<span>ECONOMY</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="elements" data-parent="#accordionExample">
`+menu_3+`
<li><a TARGET="BLANK" href=`+buy_points_link+` BUY POINTS</a></li>
</ul>
</li>
<li class="menu">
<a href="#datatables" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<i class="fas fa-location-arrow fa-fw"></i>
<span>SERVER</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="datatables" data-parent="#accordionExample">
`+menu_4+`
</ul>
</li>
<li class="menu">
<a href="#forms" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<i class="fas fa-shield fa-fw"></i>
<span>CREW</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="forms" data-parent="#accordionExample">
`+menu_5+`
</ul>
</li>
<li class="menu">
<a href="#pvp" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<i class="fas fa-shield-alt fa-fw"></i>
<span> PVP</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="pvp" data-parent="#accordionExample">
`+menu_6+`
</ul>
</li>
<li class="menu">
<a href="#items" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<i class="fas fa-shopping-bag fa-fw"></i>
<span>ITEMS</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="items" data-parent="#accordionExample">
`+menu_7+`
</ul>
</li>
<li class="menu">
<a href="#quests" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<i class="fas fa-book fa-fw"></i>
<span>QUESTS</span>
</div>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="quests" data-parent="#accordionExample">
`+menu_8+`
</ul>
</li>
<li class="menu fasttravel">
<a href="javascript:void(0);" class="dropdown-toggle" id="fastslide">
<div class="">
<i class="fas fa-plane fa-fw"></i>
<span>FAST TRAVEL</span>
</div>
</a>
</li>
<li class="menu">
<a href="/world" class="dropdown-toggle">
<div class="">
<i class="fas fa-globe fa-fw"></i>
<span>WORLD</span>
</div>
</a>
</li>
<p style="margin:0.1rem">
<form method="post" action="playersearch.php" target="_parent">
<input id="t-text" type="text" name="search" placeholder="player search" class="searchx form-control" style="width:130px !important;margin-left:5px !important;height: 25px !important;" required=""></form>
<p>
<form method="get" id="id_lookup" target="_parent">
<input type="text" name="procura" id="id_input" class="searchx form-control" style="width:130px !important;margin-left:5px !important;height: 25px !important;" placeholder="char id lookup"/></form>
<p>
<form method="post" action="crewsearch.php" target="_parent">
<input id="t-text" type="text" name="search" placeholder="crew search" class="searchx form-control" style="width:130px !important;margin-left:5px !important;height: 25px !important;" required=""></form>
<p style="margin:1rem">
MoxxiMod <span id="version">v`+version+`</span><p>
</nav>`
$("#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>.*<\/h4>/i,"").replace(/<marquee scrollamount="4" align="middle">.*<\/marquee>/i,"").replace(`<div class="widget-content widget-content-area br-6 pb-0">`,"")}
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(/<div class="mt-3 pt-3" style="border-top-color:#474565;border-top-style:solid;border-top-width: 1px;">[\n\r](.*)/i)[1].replace(/<img src=/i,"").replace(/ width="[0-9]+" height="[0-9]+">/i,"").replace(/ width="" height="">/i,"")
var crewname = crewpro.innerHTML.match(/<h2>.*<\/h2>/i)
var crewdesc = crewpro.innerHTML.match(/<div class="text-left">((.|\n)*)<div class="table-responsive">/i)[1]
var crewupgrades = crewpro.innerHTML.match(/<h5 class="card-title">CREW UPGRADES<\/h5>((.|\n)*)<div class="card mt-3">/i)[1].replace(/<div class="card mt-3(.|\n)*>/i,"")
var crewallies = crewpro.innerHTML.match(/<h5 class="card-title">(CREW ALLIES<\/h5>(.|\n)*)<div class="card mt-3">[\n\r]<div class="card-body">[\n\r]<h5 class="card-title">CREW ENEMIES<\/h5>/i)[1]
var crewenemies = crewpro.innerHTML.match(/<h5 class="card-title">(CREW ENEMIES<\/h5>(.|\n)*)<div class="col-lg-6 col-12 layout-spacing">/i)[1]
var members = document.querySelector("div.table-responsive").innerHTML.replace("<th>Rank</th>","<th>Rank▾</th>").replace("<th>Name</th>","<th>Name▾</th>").replace("<th>Level</th>","<th>Lvl▾</th>")
var createdon = crewpro.innerHTML.match(/<b>Created On:<\/b>(.*)<\/li>/i)[1]
var leader = crewpro.innerHTML.match(/<b>Leader:<\/b>(.*)<\/li>/i)[1]
var totmembers = crewpro.innerHTML.match(/<b>Total Members:<\/b>(.*)<\/li>/i)[1]
var avglevel = crewpro.innerHTML.match(/<b>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 += `<button class="btn btn-primary"><a href=crew_profile.php?id=`+cid+`&war=1>+ENEMY</a></button>`}
if (crewpro.innerHTML.match("Secure Relations") != null){links += `<button class="btn btn-primary"><a href=crew_profile.php?id=`+cid+`&war=2>-ENEMY</a></button>`}
if (crewpro.innerHTML.match("Form Alliance") != null){links += `<button class="btn btn-primary"><a href=crew_profile.php?id=`+cid+`&ally=1>+ALLY</a></button>`}
if (crewpro.innerHTML.match("Break Alliance") != null){links += `<button class="btn btn-primary"><a href=crew_profile.php?id=`+cid+`&ally=2>-ALLY</a></button>`}
if (mycrewmenu == ""){links += `
<button class="btn btn-primary"><a href=crew_raidresults.php?crewid=`+cid+`&most_recent=1>RAIDS</a></button>
<button class="btn btn-primary"><a href=trade?isCrewTrade=1&tradeWith=`+cid+`>TRADE</a></button>
<button class="btn btn-primary"><a href=treasury?search_for=`+crewname.toString().replaceAll(" ","+").replace("</h2>","").replace("<h2>","")+`>TREAS</a></button>
<button class="btn btn-primary"><a href=crew_trophyroom.php?crewid=`+cid+`>TROPHY</a></button>
<span id="atkcrew"></span>
`}
crewpro.innerHTML = `
<table id="crewprofile" border=0px>
<tr><td><table id="leftcolumn"><tr><td width="480px">
<div class="widget-chart-one mb-3 propic" style="width:480px;height:640px">
<center></center>
</div>
<table id="alliesandenemies"><tr><td width="510px">
<div class="widget widget-chart-one mb-3" style="height:65px"><center><span id="recentraid">LOADING</span></center></div>
<div class="widget widget-chart-one mb-3" style="height:140px;overflow-y:auto;overflow-x:hidden;"><center>`+crewallies+`</center></div>
<div class="widget widget-chart-one mb-3" style="height:140px;overflow-y:auto;overflow-x:hidden;"><center>`+crewenemies+`</center></div>
</td></tr></table>
</tr></td></table>
</td><td><table id="rightcolumn">
<tr><td>
<span id="mycrewmenu"></span>
<div class="widget widget-chart-one mb-3" style="height:75px"><center>`+crewname+`</center></div>
<div class="widget widget-chart-one mb-3" style="height:365px;overflow-y:auto">`+crewdesc+`</div>
<span id="crewlinks"></span>
<div class="widget widget-chart-one mb-3" id="crewstats">
<table id="stats" style="margin-left:20px">
<tr><td class="crewstat"><b>CREW</b><br>`+crewname.toString().replace("<h2>","")+`</td><td class="crewstat"><b>MEMBERS</b><br>`+totmembers+`</td><td class="crewstat"><b>LEADER</b><br><div id=leader>`+leader+`</div></td><td class="crewstat"><b>AVG LEVEL</b><br>`+avglevel+`</td></tr>
<tr><td class="crewstat"><b>TOT POWER</b><br><span id="totpower">LOADING</span></td><td class="crewstat"><b>AVG POWER</b><br><span id="avgpower">LOADING</span></td><td class="crewstat"><b>TOT ELE DMG</b><br><span id="totele">LOADING</span></td><td class="crewstat"><b>AVG ELE DMG</b><br><span id="avgele">LOADING</span></td></tr>
<tr><td class="crewstat"><b>TOT ATK</b><br><span id="totatk">LOADING</span></td><td class="crewstat"><b>AVG ATK</b><br><span id="avgatk">LOADING</span></td><td class="crewstat"><b>TOT HP</b><br><span id="tothp">LOADING</span></td><td class="crewstat"><b>AVG HP</b><br><span id="avghp">LOADING</span></td></tr>
<tr><td class="crewstat"><b>TOT CHAOS</b><br><span id="totchaos">LOADING</span></td><td class="crewstat"><b>AVG CHAOS</b><br><span id="avgchaos">LOADING</span></td><td class="crewstat"><b>TOT WILDER</b><br><span id="totwilder">LOADING</span></td><td class="crewstat"><b>AVG WILDER</b><br><span id="avgwilder">LOADING</span></td></tr>
<tr><td class="crewstat"><b>TOT GROWTH</b><br><span id="totgrowth">LOADING</span></td><td class="crewstat"><b>AVG GROWTH</b><br><span id="avggrowth">LOADING</span></td><td class="crewstat"><b>CREATED</b><br>`+createdon+`</td><td class="crewstat"><a href="javascript:void(0);" id="click" onmouseover="statspopup(event,'Download crew stats as PNG image')" onmouseout="kill()"><img src="https://studiomoxxi.com/moxximod/32x32[1].png" width="30px" height="30px"></a></td></tr>
</table></div></div>
<div class="widget widget-chart-one mb-3"><center>`+crewupgrades+`</center></div>
</td></tr></table>
</td></tr></table>
<span id="buttons"><p>LOADING</p></span>
<div class="widget widget-chart-one mb-3" style="width:1272px;">`+members+`</div>`
if (mycrewmenu == ""){document.querySelector("#crewlinks").innerHTML = `<div class="widget widget-chart-one mb-3" style="height:90px"><center>`+links+`</center></div>`}
if (mycrewmenu != ""){document.querySelector("#mycrewmenu").innerHTML = `<div class="widget widget-chart-one mb-3" style="height:90px"><center>`+mycrewmenu+`</center></div>`}
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 size="2">(.*)<\/font><\/b><\/td>/i)[1].replaceAll(",",""))
totpower += power
var eledmg = parseInt(response.match(/ELEMENTAL ATTACK.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
totele += eledmg
var attack = parseInt(response.match(/ATTACK.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
totatk += attack
var hp = parseInt(response.match(/HIT POINTS.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
tothp += hp
var chaos = parseInt(response.match(/CHAOS DAMAGE.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
totchaos += chaos
var wilderness = parseInt(response.match(/WILDERNESS LEVEL.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
totwilder += wilderness
var yesterday = parseInt(response.match(/GROWTH YESTERDAY.*[\n\r].*<font size="2">(.*)<\/font>/i)[1].replaceAll(",",""))
totgrowth += yesterday
var core = response.match(/<div style="position:absolute; left:61px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var head = response.match(/<div style="position:absolute; left:118px; top:7px; width:62px; height:46px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var neck = response.match(/<div style="position:absolute; left:197px; top:12px; width:41px; height:41px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var weapon = response.match(/<div style="position:absolute; left:45px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var body = response.match(/<div style="position:absolute; left:121px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var shield = response.match(/<div style="position:absolute; left:198px; top:67px; width:56px; height:96px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var pants = response.match(/<div style="position:absolute; left:118px; top:175px; width:62px; height:75px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var belt = response.match(/<div style="position:absolute; left:61px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var ring = response.match(/<div style="position:absolute; left:197px; top:192px; width:41px; height:41px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var foot = response.match(/<div style="position:absolute; left:118px; top:262px; width:62px; height:66px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var gem = response.match(/<div style="position:absolute; left:10px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var rune = response.match(/<div style="position:absolute; left:54px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var badge = response.match(/<div style="position:absolute; left:214px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var booster = response.match(/<div style="position:absolute; left:258px; top:346px; width:32px; height:32px;text-align:center">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var crest1 = response.match(/<div style="position:absolute; left:9px; top:9px; width:60px; height:60px;text-align:center;">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var crest2 = response.match(/<div style="position:absolute; left:83px; top:9px; width:60px; height:60px; text-align:center;">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var crest3 = response.match(/<div style="position:absolute; left:157px; top:9px; width:60px; height:60px; text-align:center;">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var crest4 = response.match(/<div style="position:absolute; left:231px; top:9px; width:60px; height:60px; text-align:center;">.*[\n\r](<img .*)<\/div>/i) || ["none","none"]
var orbs = response.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r](.*)<\/div>/i)[1]
var orbscnt = ''; if (orbs == ""){orbscnt = 0}; if (orbs != ""){orbscnt = orbs.match(/img/g).length}
var allorbs = '';
if (orbscnt == 1){allorbs = response.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r].*(<img .*)<\/div>/i)}
if (orbscnt == 2){allorbs = response.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r].*(<img .*)(<img .*)<\/div>/i)}
if (orbscnt == 3){allorbs = response.match(/<div style="position:absolute; left:100px; top:346px; width:99px; height:32px;text-align:center">.*[\n\r].*(<img .*)(<img .*)(<img .*)<\/div>/i)}
var orb1 = ''; if (orbscnt == 0) orb1 = "none"; if (orbscnt != 0) orb1 = allorbs[1]
var orb2 = ''; if (orbscnt <= 1) orb2 = "none"; if (orbscnt >= 2) orb2 = allorbs[2]
var orb3 = ''; if (orbscnt != 3) orb3 = "none"; if (orbscnt == 3) orb3 = allorbs[3]
const doc = new DOMParser().parseFromString(response, 'text/html');
var skills = doc.querySelector("#divSkillsCast").innerHTML.replace(/<img src="http:\/\/torax\.outwar\.com\/images\/profile\/ProfileSkills\.png">/i,"").replace(/<img src="http:\/\/sigil\.outwar\.com\/images\/profile\/ProfileSkills\.png">/i,"")
scrape += 1
var buttons = `<div id="tabbuts">
<button class="btn btn-primary" id=btn_stats>STATS</a></button>
<button class="btn btn-primary" id=btn_equipment>EQUIPMENT</a></button>
<button class="btn btn-primary" id=btn_items>ITEMS</a></button>
<button class="btn btn-primary" id=btn_skills>SKILLS</a></button></div>`
if (scrape == charsTableRows){
document.querySelector("#buttons").innerHTML = buttons
document.getElementById ("btn_stats").addEventListener("click", btn_stats, false);
function btn_stats (zEvent) {GM_addStyle (`.column{display:none!important}.stats{display:revert!important}`);}
document.getElementById ("btn_equipment").addEventListener("click", btn_equipment, false);
function btn_equipment (zEvent) {GM_addStyle (`.column{display:none!important}.equipment{display:revert!important}`);}
document.getElementById ("btn_items").addEventListener("click", btn_items, false);
function btn_items (zEvent) {GM_addStyle (`.column{display:none!important}.item{display:revert!important}`);}
document.getElementById ("btn_skills").addEventListener("click", btn_skills, false);
function btn_skills (zEvent) {GM_addStyle (`.column{display:none!important}.skills{display:revert!important}`);}
document.querySelector("#totpower").innerHTML = totpower.toLocaleString("en-US")
document.querySelector("#avgpower").innerHTML = Math.ceil(totpower/totmembers).toLocaleString("en-US")
document.querySelector("#totatk").innerHTML = totatk.toLocaleString("en-US")
document.querySelector("#avgatk").innerHTML = Math.ceil(totatk/totmembers).toLocaleString("en-US")
document.querySelector("#totchaos").innerHTML = totchaos.toLocaleString("en-US")
document.querySelector("#avgchaos").innerHTML = Math.ceil(totchaos/totmembers).toLocaleString("en-US")
document.querySelector("#totgrowth").innerHTML = totgrowth.toLocaleString("en-US")
document.querySelector("#avggrowth").innerHTML = Math.ceil(totgrowth/totmembers).toLocaleString("en-US")
document.querySelector("#totele").innerHTML = totele.toLocaleString("en-US")
document.querySelector("#avgele").innerHTML = Math.ceil(totele/totmembers).toLocaleString("en-US")
document.querySelector("#tothp").innerHTML = tothp.toLocaleString("en-US")
document.querySelector("#avghp").innerHTML = Math.ceil(tothp/totmembers).toLocaleString("en-US")
document.querySelector("#totwilder").innerHTML = totwilder.toLocaleString("en-US")
document.querySelector("#avgwilder").innerHTML = Math.ceil(totwilder/totmembers).toLocaleString("en-US")
GM_addStyle (`#crew_profile_loading{display:none !important;}`)
if (mycrewmenu == ""){
document.querySelector("#atkcrew").innerHTML=`<button id="pvpcrew" class="btn btn-primary">ATK <img src="https://studiomoxxi.com/moxximod/bot.png" class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>PVP attack every member of this crew')" onmouseout="kill()"></button>`
document.querySelector("#pvpcrew").addEventListener("click", task06, false);}
}
let memTable = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+")");
let TD1 = document.createElement('td');
TD1.innerHTML = power;
TD1.setAttribute("class","stats column")
insertAfter(TD1, memTable.lastElementChild);
let TD2 = document.createElement('td');
TD2.innerHTML = eledmg;
TD2.setAttribute("class","stats column")
insertAfter(TD2, memTable.lastElementChild);
let TD3 = document.createElement('td');
TD3.innerHTML = attack;
TD3.setAttribute("class","stats column")
insertAfter(TD3, memTable.lastElementChild);
let TD4 = document.createElement('td');
TD4.innerHTML = hp;
TD4.setAttribute("class","stats column")
insertAfter(TD4, memTable.lastElementChild);
let TD5 = document.createElement('td');
TD5.innerHTML = chaos;
TD5.setAttribute("class","stats column")
insertAfter(TD5, memTable.lastElementChild);
let TD6 = document.createElement('td');
TD6.innerHTML = wilderness;
TD6.setAttribute("class","stats column")
insertAfter(TD6, memTable.lastElementChild);
let TD7 = document.createElement('td');
TD7.innerHTML = yesterday;
TD7.setAttribute("class","stats column")
insertAfter(TD7, memTable.lastElementChild);
let TD8 = document.createElement('td');
TD8.innerHTML = core[1]
TD8.setAttribute("class","equipment column")
insertAfter(TD8, memTable.lastElementChild);
let TD9 = document.createElement('td');
TD9.innerHTML = head[1];
TD9.setAttribute("class","equipment column")
insertAfter(TD9, memTable.lastElementChild);
let TD10 = document.createElement('td');
TD10.innerHTML = neck[1];
TD10.setAttribute("class","equipment column")
insertAfter(TD10, memTable.lastElementChild);
let TD11 = document.createElement('td');
TD11.innerHTML = weapon[1];
TD11.setAttribute("class","equipment column")
insertAfter(TD11, memTable.lastElementChild);
let TD12 = document.createElement('td');
TD12.innerHTML = body[1];
TD12.setAttribute("class","equipment column")
insertAfter(TD12, memTable.lastElementChild);
let TD13 = document.createElement('td');
TD13.innerHTML = shield[1];
TD13.setAttribute("class","equipment column")
insertAfter(TD13, memTable.lastElementChild);
let TD14 = document.createElement('td');
TD14.innerHTML = belt[1];
TD14.setAttribute("class","equipment column")
insertAfter(TD14, memTable.lastElementChild);
let TD15 = document.createElement('td');
TD15.innerHTML = pants[1];
TD15.setAttribute("class","equipment column")
insertAfter(TD15, memTable.lastElementChild);
let TD16 = document.createElement('td');
TD16.innerHTML = ring[1];
TD16.setAttribute("class","equipment column")
insertAfter(TD16, memTable.lastElementChild);
let TD17 = document.createElement('td');
TD17.innerHTML = foot[1];
TD17.setAttribute("class","equipment column")
insertAfter(TD17, memTable.lastElementChild);
let TD18 = document.createElement('td');
TD18.innerHTML = gem[1];
TD18.setAttribute("class","item column")
insertAfter(TD18, memTable.lastElementChild);
let TD19 = document.createElement('td');
TD19.innerHTML = rune[1];
TD19.setAttribute("class","item column")
insertAfter(TD19, memTable.lastElementChild);
let TD20 = document.createElement('td');
TD20.innerHTML = orb1;
TD20.setAttribute("class","item column")
insertAfter(TD20, memTable.lastElementChild);
let TD25 = document.createElement('td');
TD25.innerHTML = orb2;
TD25.setAttribute("class","item column")
insertAfter(TD25, memTable.lastElementChild);
let TD26 = document.createElement('td');
TD26.innerHTML = orb3;
TD26.setAttribute("class","item column")
insertAfter(TD26, memTable.lastElementChild);
let TD21 = document.createElement('td');
TD21.innerHTML = badge[1];
TD21.setAttribute("class","item column")
insertAfter(TD21, memTable.lastElementChild);
let TD22 = document.createElement('td');
TD22.innerHTML = booster[1];
TD22.setAttribute("class","item column")
insertAfter(TD22, memTable.lastElementChild);
let TD23 = document.createElement('td');
TD23.innerHTML = crest1[1];
TD23.setAttribute("class","item column")
insertAfter(TD23, memTable.lastElementChild);
let TD27 = document.createElement('td');
TD27.innerHTML = crest2[1];
TD27.setAttribute("class","item column")
insertAfter(TD27, memTable.lastElementChild);
let TD28 = document.createElement('td');
TD28.innerHTML = crest3[1];
TD28.setAttribute("class","item column")
insertAfter(TD28, memTable.lastElementChild);
let TD29 = document.createElement('td');
TD29.innerHTML = crest4[1];
TD29.setAttribute("class","item column")
insertAfter(TD29, memTable.lastElementChild);
let TD24 = document.createElement('td');
TD24.innerHTML = skills;
TD24.setAttribute("class","skills column")
insertAfter(TD24, memTable.lastElementChild);
$("body").append ( `
<div id="crew_profile_loading">
<table border="1px"><tr><td width="500px" bgcolor="#0E1726">
<table><tr><td style="padding:10px" bgcolor="#060818" height="50px" width="`+(scrape/totmembers)*500+`px">LOADING:`+Math.ceil((scrape/totmembers)*100)+`%</td></tr></table>
</td></tr></table>
</div>
` );
})}
$('th').click(function(){
var table = $(this).parents('table').eq(0)
var rows = table.find('tr:gt(0)').toArray().sort(comparer($(this).index()))
this.asc = !this.asc
if (!this.asc){rows = rows.reverse()}
for (var i = 0; i < rows.length; i++){table.append(rows[i])}
})
function comparer(index) {
return function(a, b) {
var valA = getCellValue(a, index), valB = getCellValue(b, index)
return $.isNumeric(valA) && $.isNumeric(valB) ? valA - valB : valA.toString().localeCompare(valB)
}}
function getCellValue(row, index){ return $(row).children('td').eq(index).text() }
var godimg = '';
fetch('crew_raidresults.php?all_results=Display+all+raid+results&crewid='+cid)
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
var raidid = doc.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(2) > td:nth-child(4) > a")
if (raidid == null){document.querySelector("#recentraid").innerHTML = `none`}
if (raidid != null){
fetch("raidattack.php?raidid="+raidid.toString().match(/[0-9]+/i))
.then(response => response.text())
.then((response) => {
godimg = response.match(/<h4 class="text-center d-flex align-items-center justify-content-center">(.*)<\/h4>.*[\n\r].*[\n\r].*<div class="defenderimage skinborder d-flex justify-content-center align-items-center mb-3">.*[\n\r](.*)/i)
crewname = response.match(/.*<b>(.*) has (.*)!<\/b>/i)
document.querySelector("#recentraid").innerHTML = `<a href=raidattack.php?raidid=`+raidid.toString().replace(/https:\/\/[a-zA-Z]+\.outwar\.com\/raidattack\.php\?raidid=/i,"")+`>`+crewname[1]+` `+crewname[2]+` vs. `+godimg[1]+`</a>`
})}})}
GM_addStyle (`
#rga_dropdown,#dropdown{color:#FFFFFF !important;padding:2px !important;border-radius: 8px !important;text-align:left !important;border: 1px solid #3b3f5c!important;}
.char_drop {position: relative;padding: 20px;border-radius: 8px;border: none;background: #1A1C2D;}
#sessdrop{margin-left:1rem !important;}
`)
if (GM_getValue("stickydrops") == true){
var path = window.location.href.match(/outwar\.com\/(.*)/i)[1].replaceAll(/&.*/g,"")
var symbol = ''
if (path.match(/\?/i) == null){symbol = "?"}
if (path.match(/\?/i) != null){symbol = "&"}
var dropdown = document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li:nth-child(1)")
var charlist = document.querySelector("#charselectdropdown")
var newlist = `<select id="dropdown" name="dropdown" class="char_drop">`+charlist.innerHTML.replaceAll(`option value="`,`option value="`+path+symbol+`suid=`)+`</select><span id="sessdrop"></span>`
dropdown.innerHTML = newlist
document.getElementById("dropdown").addEventListener('change', function () {
window.location = this.value;
}, false);
}
if (GM_getValue("stickydrops") == false || GM_getValue("stickydrops") == undefined){
GM_addStyle (`body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li:nth-child(4){display:revert !important;}
body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li:nth-child(5){display:none !important;}`)
var toolbar_menu = document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav")
let rgadrop = document.createElement('li');
rgadrop.innerHTML = `<span id="sessdrop"></span>`
insertAfter(rgadrop, toolbar_menu.children[1]);
}
GM_addStyle (`#rga_dropdown{border: 1px solid #3b3f5c!important;border-radius: 8px!important;background: transparent!important;color: #e0e6ed!important;}
#rga_dropdown > option{background:#1A1C2D !important;padding:1rem !important;}`)
if (GM_getValue("sessioniddropdown") == undefined) {GM_setValue("sessioniddropdown","no sessions saved")}
var rga_list = ''
if (GM_getValue("sessioniddropdown") != "no sessions saved"){
rga_list = GM_getValue("sessioniddropdown")
document.querySelector("#sessdrop").innerHTML = `<select id="rga_dropdown" class="rga_drop">
<option disabled="disabled" selected="selected">Change RGA</option>
`+rga_list+`
</select>`
$(function(){
$('#rga_dropdown').on('change', function () {
var url = $(this).val();
if (url) {window.location = url;}
return false;
})});
}
if (document.URL.indexOf("crew_raidresults") != -1 && error == false) {
document.querySelector("#content-header-row > table > tbody > tr > td > form > p > input:nth-child(3)").outerHTML = `<input type="submit" class="btn btn-primary" name="most_recent" value="MoxxiMod raid results">`
if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 && error == false) {
GM_addStyle (`
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr > td{border:1px SOLID #131313 !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(1){width: 6% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(2){width: 12% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(3){width: 7% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(4){width: 5% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr > td:nth-child(5){display:none !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(6){width: 7% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(7){width: 8% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(8){width: 7% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(9){width: 5% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(10){width: 5% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(11){width: 5% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(12){width: 4% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(13){width: 4% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(14){width: 4% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(15){width: 5% !important;}
#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(16){width: 16% !important;}
`)
document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(1) > td:nth-child(1)").innerHTML = "<b>Time</b>"
document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table").setAttribute("class","table table-bordered table-striped mb-4 moxxiraids")
let rrHead11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead11 = document.createElement('td');
tdHead11.innerHTML = `<a onmouseover="popup\(event,'Total chars in the raid<br>(number of chars who died)'\)" onmouseout="kill\(\)"><b>Chars`;
insertAfter(tdHead11, rrHead11.lastElementChild);
let rrHead1 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead1 = document.createElement('td');
tdHead1.innerHTML = `<a onmouseover="popup\(event,'Total amount of attack damage<br>Mouseover to see details'\)" onmouseout="kill\(\)"><b>Dmg`;
insertAfter(tdHead1, rrHead1.lastElementChild);
let rrHead2 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead2 = document.createElement('td');
tdHead2.innerHTML = `<a onmouseover="popup\(event,'Average amount of attack damage per char'\)" onmouseout="kill\(\)"><b>Avg`;
insertAfter(tdHead2, rrHead2.lastElementChild);
let rrHead6 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead6 = document.createElement('td');
tdHead6.innerHTML = `<a onmouseover="popup\(event,'Average block rate of all chars'\)" onmouseout="kill\(\)"><font color="ff9e00"><b>Block`;
insertAfter(tdHead6, rrHead6.lastElementChild);
let rrHead7 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead7 = document.createElement('td');
tdHead7.innerHTML = `<a onmouseover="popup\(event,'Average ele block rate of all chars'\)" onmouseout="kill\(\)"><font color="00ff0b"><b>Block`;
insertAfter(tdHead7, rrHead7.lastElementChild);
let rrHead13 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead13 = document.createElement('td');
tdHead13.innerHTML = `<a onmouseover="popup\(event,'Average ele shield rate of all chars'\)" onmouseout="kill\(\)"><b>Shield`;
insertAfter(tdHead13, rrHead13.lastElementChild);
let rrHead14 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead14 = document.createElement('td');
tdHead14.innerHTML = `<a onmouseover="popup\(event,'Total number of individual attacks executed'\)" onmouseout="kill\(\)"><b>Atks`;
insertAfter(tdHead14, rrHead14.lastElementChild);
let rrHead10 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead10 = document.createElement('td');
tdHead10.innerHTML = `<a onmouseover="popup\(event,'Total number of rounds'\)" onmouseout="kill\(\)"><b>Rnds`;
insertAfter(tdHead10, rrHead10.lastElementChild);
let rrHead12 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead12 = document.createElement('td');
tdHead12.innerHTML = `<a onmouseover="popup\(event,'Was SIN applied during the raid?'\)" onmouseout="kill\(\)"><b>Sin`;
insertAfter(tdHead12, rrHead12.lastElementChild);
let rrHead5 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead5 = document.createElement('td');
tdHead5.innerHTML = `<a onmouseover="popup\(event,'Remaining health of the mob'\)" onmouseout="kill\(\)"><b>Health`;
insertAfter(tdHead5, rrHead5.lastElementChild);
let rrHead4 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr");
let tdHead4 = document.createElement('td');
tdHead4.innerHTML = `<a onmouseover="popup\(event,'Items dropped from raid'\)" onmouseout="kill\(\)"><b>Loot`;
insertAfter(tdHead4, rrHead4.lastElementChild);
var rrTable = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table");
var rrRowCount = 1+rrTable.rows.length;
for (let rownum = 2; rownum < rrRowCount; rownum++) {
let raidLink11 = '';
if (document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a") != null){
raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a")}
let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")")
let chars11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(3)").innerHTML;
let raidNameCell = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2)");
let raidName = '';
if (raidNameCell != null){
raidNameCell.innerHTML = '<a href='+raidLink11+'>'+raidNameCell.innerHTML.replaceAll(/,.*/g,"").replaceAll(/of.*/g,"").replaceAll("The","").replaceAll(/the.*/g,"").replaceAll(/the.*/g,"")+'</a>'}
let timeStampCell = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(1)");
let timeStampName = '';
if (timeStampCell != null){timeStampCell.innerHTML = timeStampCell.innerHTML.replaceAll(/[0-9]+-[0-9]+-[0-9]+/g,"")}
fetch(raidLink11)
.then(response => response.text())
.then((response) => {
var damage11 = response.match(/Damage: ([0-9,]*)/)[1];
var drops11 = '';
if (response.match(/popup\(event,'<b>(.*)<\/b>'\)" onmouseout="kill\(\)">[0-9]+ items<\/a>/i) == null){drops11 = `No items found`}
if (response.match(/popup\(event,'<b>(.*)<\/b>'\)" onmouseout="kill\(\)">[0-9]+ items<\/a>/i) != null){drops11 = response.match(/popup\(event,'<b>(.*)<\/b>'\)" onmouseout="kill\(\)">[0-9]+ items<\/a>/i)[1]}
var health11 = '';
if (response.match(/([0-9]+)%<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]<span id=/i)[1] < 1){health11 = `<font color=#02B602><b>`+response.match(/([0-9]+)%<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]<span id=/i)[1]+`%</font>`}
if (response.match(/([0-9]+)%<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]<span id=/i)[1] > 0){health11 = `<font color=#FF0000><b>`+response.match(/([0-9]+)%<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r]<span id=/i)[1]+`%</font>`}
fetch(raidLink11)
.then(response => response.text())
.then((response) => {
var attacks11 = response.match(/Base: [0-9]+/g).length;
var blocks11 = response.match(/images\/block\.jpg/g);
var eleblocks11 = response.match(/images\/block2\.jpg/g);
var shields11 = response.match(/_ele_shield\.jpg/g);
var dead11 = response.match(/images\/dead\.jpg/g);
var rounds11 = response.match(/\/img\/skin\/Bar_separator_little\.png/g).length;
var sincheck11 = response.match(/color:#CC0000;"><b>(.*)<\/b>/i);
const reducer = (accumulator, curr) => accumulator + curr
var BaseDmgArray = [];
var BaseMatch = response.matchAll(/onmouseover="popup\(event,.*Base: (.*)<div/g);
for (const BaseMatchLoop of BaseMatch) {
let BaseObj = [parseInt(BaseMatchLoop[1].replace(",",""))];
for (const BaseDmg of BaseObj) {
BaseDmgArray.push(BaseDmg);}}
var BaseNumbers = BaseDmgArray.map(Number)
var BaseDmgCheck = '';
if (BaseNumbers != ""){BaseDmgCheck = BaseNumbers}
if (BaseNumbers == ""){BaseDmgCheck = [0]}
var SumOfBase = BaseDmgCheck.reduce(reducer).toLocaleString("en-US");
var printBase = "<font color=#FFFFFF><b>+"+SumOfBase+" base<br>"
var FireDmgArray = [];
var FireMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) fire/g);
for (const FireMatchLoop of FireMatch) {
let FireObj = [parseInt(FireMatchLoop[1].replace(",",""))];
for (const FireDmg of FireObj) {
FireDmgArray.push(FireDmg);}}
var FireNumbers = FireDmgArray.map(Number)
var FireDmgCheck = '';
if (FireNumbers != ""){FireDmgCheck = FireNumbers}
if (FireNumbers == ""){FireDmgCheck = [0]}
var SumOfFire = FireDmgCheck.reduce(reducer).toLocaleString("en-US");
var printFire = "<font color=#ff0000><b>+"+SumOfFire+" fire<br>"
var ShadowDmgArray = [];
var ShadowMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) shadow/g);
for (const ShadowMatchLoop of ShadowMatch) {
let ShadowObj = [parseInt(ShadowMatchLoop[1].replace(",",""))];
for (const ShadowDmg of ShadowObj) {
ShadowDmgArray.push(ShadowDmg);}}
var ShadowNumbers = ShadowDmgArray.map(Number)
var ShadowDmgCheck = '';
if (ShadowNumbers != ""){ShadowDmgCheck = ShadowNumbers}
if (ShadowNumbers == ""){ShadowDmgCheck = [0]}
var SumOfShadow = ShadowDmgCheck.reduce(reducer).toLocaleString("en-US");
var printShadow = "<font color=#9f02d3><b>+"+SumOfShadow+" shadow<br>"
var HolyDmgArray = [];
var HolyMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) holy/g);
for (const HolyMatchLoop of HolyMatch) {
let HolyObj = [parseInt(HolyMatchLoop[1].replace(",",""))];
for (const HolyDmg of HolyObj) {
HolyDmgArray.push(HolyDmg);}}
var HolyNumbers = HolyDmgArray.map(Number)
var HolyDmgCheck = '';
if (HolyNumbers != ""){HolyDmgCheck = HolyNumbers}
if (HolyNumbers == ""){HolyDmgCheck = [0]}
var SumOfHoly = HolyDmgCheck.reduce(reducer).toLocaleString("en-US");
var printHoly = "<font color=#00FFFF><b>+"+SumOfHoly+" holy<br>"
var ArcaneDmgArray = [];
var ArcaneMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) arcane/g);
for (const ArcaneMatchLoop of ArcaneMatch) {
let ArcaneObj = [parseInt(ArcaneMatchLoop[1].replace(",",""))];
for (const ArcaneDmg of ArcaneObj) {
ArcaneDmgArray.push(ArcaneDmg);}}
var ArcaneNumbers = ArcaneDmgArray.map(Number)
var ArcaneDmgCheck = '';
if (ArcaneNumbers != ""){ArcaneDmgCheck = ArcaneNumbers}
if (ArcaneNumbers == ""){ArcaneDmgCheck = [0]}
var SumOfArcane = ArcaneDmgCheck.reduce(reducer).toLocaleString("en-US");
var printArcane = "<font color=#FFFF00><b>+"+SumOfArcane+" arcane<br>"
var KineticDmgArray = [];
var KineticMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) kinetic/g);
for (const KineticMatchLoop of KineticMatch) {
let KineticObj = [parseInt(KineticMatchLoop[1].replace(",",""))];
for (const KineticDmg of KineticObj) {
KineticDmgArray.push(KineticDmg);}}
var KineticNumbers = KineticDmgArray.map(Number)
var KineticDmgCheck = '';
if (KineticNumbers != ""){KineticDmgCheck = KineticNumbers}
if (KineticNumbers == ""){KineticDmgCheck = [0]}
var SumOfKinetic = KineticDmgCheck.reduce(reducer).toLocaleString("en-US");
var printKinetic = "<font color=#00FF00><b>+"+SumOfKinetic+" kinetic<br>"
var VileDmgArray = [];
var VileMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) vile/g);
for (const VileMatchLoop of VileMatch) {
let VileObj = [parseInt(VileMatchLoop[1].replace(",",""))];
for (const VileDmg of VileObj) {
VileDmgArray.push(VileDmg);}}
var VileNumbers = VileDmgArray.map(Number)
var VileDmgCheck = '';
if (VileNumbers != ""){VileDmgCheck = VileNumbers}
if (VileNumbers == ""){VileDmgCheck = [0]}
var SumOfVile = VileDmgCheck.reduce(reducer).toLocaleString("en-US");
var printVile = "<font color=#cccccc><b>+"+SumOfVile+" vile energy<br>"
var ChaosDmgArray = [];
var ChaosMatch = response.matchAll(/onmouseover="popup\(event,.*\+(.*) chaos/g);
for (const ChaosMatchLoop of ChaosMatch) {
let ChaosObj = [parseInt(ChaosMatchLoop[1].replace(",",""))];
for (const ChaosDmg of ChaosObj) {
ChaosDmgArray.push(ChaosDmg);}}
var ChaosNumbers = ChaosDmgArray.map(Number)
var ChaosDmgCheck = '';
if (ChaosNumbers != ""){ChaosDmgCheck = ChaosNumbers}
if (ChaosNumbers == ""){ChaosDmgCheck = [0]}
var SumOfChaos = ChaosDmgCheck.reduce(reducer).toLocaleString("en-US");
var printChaos = "<font color=#f441be><b>+"+SumOfChaos+" chaos"
var totdead11 = '';
if (dead11 != null){totdead11 = (dead11.length).toFixed(0)}
if (dead11 == null){totdead11 += "0"}
var shieldrate11 = '';
if (shields11 != null){shieldrate11 = (shields11.length/attacks11*100).toFixed(0)}
if (shields11 == null){shieldrate11 += "0"}
var sin11 = '';
if (sincheck11[1] != "0"){sin11 += "No"}
if (sincheck11[1] == "0"){sin11 += "Yes"}
var blockrate11 = '';
if (blocks11 != null){blockrate11 += (blocks11.length/attacks11*100).toFixed(0)}
if (blocks11 == null){blockrate11 += "0"}
var eleblockrate11 = '';
if (eleblocks11 != null){eleblockrate11 = (eleblocks11.length/attacks11*100).toFixed(0)}
if (eleblocks11 == null){eleblockrate11 += "0"}
let td112 = document.createElement('td');
td112.innerHTML = chars11+" (<span>🕱</span>"+totdead11+")";
insertAfter(td112, row11.lastElementChild);
let td11 = document.createElement('td');
td11.innerHTML = `<span class="dmgbox-text" onmouseover="popup(event,'</center>`+printBase+printFire+printShadow+printHoly+printArcane+printKinetic+printVile+printChaos+`');" onmouseout="kill();">`+damage11;
insertAfter(td11, row11.lastElementChild);
var cells11 = row11.getElementsByTagName("td");
let td12 = document.createElement('td');
var td12comma = Math.floor(damage11.replace(/,/g, '')/cells11[2].innerText);
td12.textContent = td12comma.toLocaleString("en-US");
insertAfter(td12, row11.lastElementChild);
let td61 = document.createElement('td');
td61.innerHTML = blockrate11+"%";
insertAfter(td61, row11.lastElementChild);
let td71 = document.createElement('td');
td71.innerHTML = eleblockrate11+"%";
insertAfter(td71, row11.lastElementChild);
let td111 = document.createElement('td');
td111.innerHTML = shieldrate11+"%";
insertAfter(td111, row11.lastElementChild);
let td13 = document.createElement('td');
td13.innerHTML = attacks11;
insertAfter(td13, row11.lastElementChild);
let td91 = document.createElement('td');
td91.innerHTML = rounds11;
insertAfter(td91, row11.lastElementChild);
let td101 = document.createElement('td');
td101.innerHTML = sin11;
insertAfter(td101, row11.lastElementChild);
let td51 = document.createElement('td');
td51.innerHTML = health11;
insertAfter(td51, row11.lastElementChild);
let td41 = document.createElement('td');
td41.innerHTML = drops11.replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"<br>");
insertAfter(td41, row11.lastElementChild);
})})}}}
if (document.URL.indexOf("world") != -1 && error == false) {
GM_addStyle (`
.ml-4{margin-left:0rem !important;}
#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-content > div.room-middle{display:none !important;}
#roomDetails > ul > li:nth-child(1) > div > div.ml-3.d-block.align-self-center > a > img[src*="atkicon"] {content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/atk_1.png") !important;}
#roomDetails > ul > li:nth-child(2) > div > div.ml-3.d-block.align-self-center > a > img[src*="atkicon"] {content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/atk_2.png") !important;}
#roomDetails > ul > li:nth-child(3) > div > div.ml-3.d-block.align-self-center > a > img[src*="atkicon"] {content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/atk_3.png") !important;}
#roomDetails > ul > li:nth-child(4) > div > div.ml-3.d-block.align-self-center > a > img[src*="atkicon"] {content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/atk_4.png") !important;}
#roomDetails > ul > li:nth-child(5) > div > div.ml-3.d-block.align-self-center > a > img[src*="atkicon"] {content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/atk_5.png") !important;}
#roomDetails > ul > li:nth-child(6) > div > div.ml-3.d-block.align-self-center > a > img[src*="atkicon"] {content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/atk_6.png") !important;}
#roomDetails > ul > li:nth-child(7) > div > div.ml-3.d-block.align-self-center > a > img[src*="atkicon"] {content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/atk_7.png") !important;}
#roomDetails > ul > li:nth-child(8) > div > div.ml-3.d-block.align-self-center > a > img[src*="atkicon"] {content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/atk_8.png") !important;}
#roomDetails > ul > li:nth-child(9) > div > div.ml-3.d-block.align-self-center > a > img[src*="atkicon"] {content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/atk_9.png") !important;}
.button {background: #060818 !important;margin: 6px !important;padding: 5px !important;margin-bottom: 5px !important;font-size: 12px !important;color: #e0e6ed !important;}
.button:hover {background:#3b3f5c !important;}
#gotormtab{margin-top:0.5rem !important;}
.atkn{background: #1B2E4B;border: 1px #1B2E4B SOLID;color: #FFFFFF !important;padding: 6px !important;border-radius: 6px !important;height:37px !important;margin-right:0.5rem !important;font-size:28px !important;}
#gladtable > tbody > tr > td:nth-child(2) > img{margin:5px !important;border: 1px #1b2e4b SOLID !important;border-radius: 6px !important;}
#questhelper{display:none !important;}
#roomDetails > ul > li{box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);-webkit-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);-moz-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);}
#content > div.layout-px-spacing{background:transparent !important;{box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
`)
setTimeout(function() {
var room_img = document.querySelector("#roomImage").outerHTML.match(/src="([^"]*)"/i)[1]
GM_addStyle (`
#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div:nth-child(1){background-image: url("`+room_img+`") !important;background-size: cover !important;min-height:400px !important;}
#roomImage{display:none !important;}
#roomDetails > ul > li{margin-bottom:0.25rem !important;}`)
},500)
var questhelper = document.querySelector("#content-header-row > div.col-xl-4.col-lg-12.col-md-12.col-sm-12.col-12.layout-spacing.px-1 > div.widget.widget-chart-two > div.widget-content.pt-0 > div > p")
questhelper.innerHTML = `<p>
<p><span id="quest_button"></span>
`
document.querySelector("#quest_button").innerHTML = `</a><button id="show_quests" class="btn btn-primary mmplus">SHOW QUESTS</button><p><a href="questlog">QUEST LOG</a>`
document.getElementById ("show_quests").addEventListener("click", show_quests, false);
function show_quests(){
GM_addStyle (`#questhelper{display:revert !important;}`)
document.querySelector("#quest_button").innerHTML = `</a><button id="hide_quests" class="btn btn-primary mmplus">HIDE QUESTS</button><p><a href="questlog">QUEST LOG</a>`
document.getElementById ("hide_quests").addEventListener("click", hide_quests, false);
}
function hide_quests(){
GM_addStyle (`#questhelper{display:none !important;}`)
document.querySelector("#quest_button").innerHTML = `</a><button id="show_quests" class="btn btn-primary mmplus">SHOW QUESTS</button><p><a href="questlog">QUEST LOG</a>`
document.getElementById ("show_quests").addEventListener("click", show_quests, false);
}
var hotkeys = true
var world_eq = document.querySelector("#content-header-row > div.col-xl-4.col-lg-12.col-md-12.col-sm-12.col-12.layout-spacing.px-1");
let div_right = document.createElement('div');
div_right.innerHTML = `<span id="eqworld"><img src="https://studiomoxxi.com/moxximod/loading-gif.gif" width="80px" height="80px"></span>`
div_right.setAttribute("class","widget widget-chart-one mb-3")
world_eq.insertBefore(div_right, world_eq.firstElementChild);
fetch('/profile')
.then(response => response.text())
.then((response) => {
if (response.match(/<a href="\/crew_profile\?id=.*">/) != null) {crewid = response.match(/<a href="\/crew_profile\?id=.*">/).toString().replace(/<a href="\/crew_profile\?id=/,"").replace(/">/,"")}
const doc = new DOMParser().parseFromString(response, 'text/html');
const crests = doc.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(3) > div > div").outerHTML
const eq = doc.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(2) > div").innerHTML.replace(`<h5 class="card-title">EQUIPMENT</h5>`,"")+crests
var roomid_display = document.querySelector("#roomid_display")
var map_display = document.querySelector("#mapHtml")
let observer1 = new MutationObserver(mutationRecords => {
attackframe()
automove()
automove_btn()
haste()
gladroom()
roomeq()
roomimg()
});
observer1.observe(roomid_display, {
childList: true,
subtree: true,
characterDataOldValue: true
});
let observer2 = new MutationObserver(mutationRecords => {
attackframe()
automove()
automove_btn()
});
observer2.observe(map_display, {
childList: true,
subtree: true,
characterDataOldValue: true
});
function roomimg(){
var room_img = document.querySelector("#roomImage").outerHTML.match(/src="([^"]*)"/i)[1]
GM_addStyle (`#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div:nth-child(1){background-image: url("`+room_img+`") !important;background-size: cover;}`)
}
gladroom();function gladroom(){
var room = document.querySelector("#roomid_display").innerHTML
if (room == "28031" || room == "28106" || room == "38726" || room == "38727" || room == "32878" || room == "32876" || room == "32877" || room == "28107" || room == "28105" || room == "28103" || room == "28101" || room == "28099" || room == "28097" || room == "28095" || room == "28093" || room == "28091"){
hotkeys = false
document.querySelector("#eqworld").innerHTML = `<img src="https://studiomoxxi.com/moxximod/loading-gif.gif" width="80px" height="80px">`
var numofglad = $('#roomDetails ul li').length
setTimeout(function() {
document.querySelector("#eqworld").innerHTML = `<h5>- MoxxiMod Fast Attacker -</h5><p><table id="gladtable"><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr></table>`
for (let mobnum = 1; mobnum < (numofglad+1); mobnum++) {
var gladimg = document.querySelector("#roomDetails > ul > li:nth-child("+mobnum+") > div > div.mr-3 > img").outerHTML.replaceAll(/<img alt="[^"]*" src="/g,"").replaceAll(/" class="spawnImage">/g,"")
var gladname = document.querySelector("#roomDetails > ul > li:nth-child("+mobnum+") > div > div.media-body > h6 > a").innerHTML
var gladlink = document.querySelector("#roomDetails > ul > li:nth-child("+mobnum+") > div > div.media-body > h6 > a").outerHTML.match(/mob\.php\?id=([0-9]+)&h=(.*)" /i)
var gladid = gladlink[1]
var gladhash = gladlink[2]
var glad = document.querySelector("#gladtable > tbody > tr:nth-child("+mobnum+")");
let td1 = document.createElement('td');
td1.innerHTML = `<img src="`+gladimg+`" height="37px" width="37px" onmouseover="popup(event,'`+gladname+`');" onmouseout="kill();">`
insertAfter(td1, glad.lastElementChild);
let td2 = document.createElement('td');
td2.innerHTML = `<input type="text" placeholder="# of ATKs" id="matk`+mobnum+`" class="atkn" name="atkn" size="7">`
insertAfter(td2, glad.lastElementChild);
let td3 = document.createElement('td');
td3.innerHTML = `<button id="mobatk_btn`+mobnum+`" id="slider_all_potions" class="btn btn-primary mmplus">ATK <img src=https://studiomoxxi.com/moxximod/bot.png class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Attack the mob multiple times')" onmouseout="kill()"></button>`
insertAfter(td3, glad.lastElementChild);
let td4 = document.createElement('td');
td4.innerHTML = gladid
td4.setAttribute("style","color:#FF0000;display:none")
insertAfter(td4, glad.lastElementChild);
let td5 = document.createElement('td');
td5.innerHTML = gladhash
td5.setAttribute("style","display:none")
insertAfter(td5, glad.lastElementChild);
document.getElementById ("mobatk_btn"+mobnum+"").addEventListener("click", gladatk, false);
function gladatk (zEvent) {
sendmobattacks = document.querySelector("#matk"+mobnum+"").value.replaceAll(" ","").replaceAll(/[^0-9]/g,"");
sendmobid = document.querySelector("#gladtable > tbody > tr:nth-child("+mobnum+") > td:nth-child(5)").innerHTML;
task04();
}}},500)
}}
haste();function haste(){
var room = document.querySelector("#roomid_display").innerHTML
if (room == "42619" || room == "42620" || room == "28123" || room == "27624" || room == "32876" || room == "32878" || room == "32877" || room == "36195" || room == "37878"){
fetch('skills_info.php?id=3024')
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const haste = doc.querySelector("body").innerHTML.replace(`<div class="text-left">`,"").replace(`<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">`,`<input type="submit" name="cast" id="casthaste" class="btn btn-primary" value="Cast Skill">`)
document.querySelector("#eqworld").innerHTML = haste
if(haste.match(/This skill is recharging\. [0-9]+ minutes remaining\./i) == null){document.getElementById ("casthaste").addEventListener("click", casthaste, false)}
function casthaste (zEvent) {
fetch('cast_skills.php?C=4', {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
'castskillid': '3024',
'cast': 'Cast Skill'
})})}})}}
roomeq();function roomeq(){
var room = document.querySelector("#roomid_display").innerHTML
if (room != "42619" && room != "42620" && room != "28123" && room != "27624" && room != "32876" && room != "32878" && room != "32877" && room != "28031" && room != "28031" && room != "28106" && room != "38726" && room != "38727" && room != "32878" && room != "32876" && room != "32877" && room != "28107" && room != "28105" && room != "28103" && room != "28101" && room != "28099" && room != "28097" && room != "28095" && room != "28093" && room != "28091" && room != "36195" && room != "37878"){
document.querySelector("#eqworld").innerHTML = eq
hotkeys = true
}}
attackframe();
function attackframe(){
$('a[target="_blank"]').prop("target", "attack");
$('a[class="sbox"]').prop("target", "attack");
$('img[src="landing/atkicon.png"]').prop("id", "attack");
$('img[src="landing/questicon.png"]').prop("id", "attack");
document.querySelectorAll('#attack').forEach(item => {item.addEventListener('click', mobAtk, false)})}
function mobAtk() {
document.querySelector("#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-content > div.room-top").innerHTML = `<iframe id="atkframe" name="attack" src="" style="opacity: 0.9 !important;"></iframe>`
GM_addStyle (`#atkframe{width:100% !important;height:420px !important;border:0px !important;}`)
setTimeout(function(){ajax_changeroom()},50)}
function ajax_changeroom(){
jQuery.getJSON("ajax_changeroomb.php",
function(data){
$('#ajaxload').css('opacity', 0);
$('#dpadcenter').html("<a href=\"vault.php\"><img src=\"/landing/vaultbutton.jpg\" border=0></a><BR><a href=\"cast_skills.php\"><img src=\"/landing/skillsbutton.jpg\" border=0></a>");
$('#span_roomName').html("<b>- " + name + " -</b>");
var mapHtml = "<table cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:#333333;border:2px solid black;\">";
var mapSize = 7;
var mapData = data.mapData;
if(mapData != undefined) {
for (var y = 0; y < mapSize; y++) {
mapHtml += "<tr>";
for (var x = 0; x < mapSize; x++) {
var roomData = mapData[x + '_' + y];
var bgimage = '';
var hoverHtml = '';
var bg = '';
var gpath = '';
if (roomData) {
bg = "#6F552F";
if (roomData.hoverText) {hoverHtml = "onmouseover=\"popup(event,'" + roomData.hoverText + "');\" onmouseout=\"kill();\""}
if (roomData.qm == 1) {gpath = "<img src=\"landing/owpathx.png\" width=29 height=29 border=0>"}
else if (roomData.qm == 2) {gpath = "<img src=\"landing/owpath.png\" width=29 height=29 border=0>"}
else if (roomData.qm == 3) {gpath = "<img src=\"landing/YAHX.png\" width=29 height=29 border=0>"}
else if (roomData.qm == 4) {gpath = "<img src=\"http://torax.outwar.com/images/maptile/YAH.gif\" style=\"margin-top:10px;\">"}
}
else {bg = "#333333"}
mapHtml += "<td style=\"text-align:center;vertical-align:middle;color:white;background-color:" + bg + ';' + bgimage + "\" " + hoverHtml + "><div style=\"height:29px;width:29px;\">" + gpath;
mapHtml += '</div></td>';
}
mapHtml += "</tr>";
}
$('#mapHtml').html(mapHtml);
}
var attackLinkStart = '<a target="_blank" href="somethingelse.php?lightbox=0&';
var newRoomHtml = '<ul class="list-group list-group-media striped-list">';
var roomDetailsNew = data.roomDetailsNew;
for (var z = 0; z < roomDetailsNew.length; z++) {
var spawnInfo = roomDetailsNew[z];
var popMsg = '';
if(spawnInfo.killedBy && spawnInfo.isDead) {popMsg = '<b>Killed by:</b> ' + spawnInfo.killedBy}
if(spawnInfo.spawnedBy) {
if(popMsg != ''){popMsg += '<br>'}
popMsg += '<b>Spawned by:</b> ' + spawnInfo.spawnedBy;
}
if(spawnInfo.lastKilledBy) {
if(popMsg != ''){
popMsg += '<br>';}
popMsg += '<b>Last killed by:</b> ' + spawnInfo.lastKilledBy;
}
var popHtml = '';
if(popMsg != '') {popHtml = ' ONMOUSEOVER="popup(event,\'' + popMsg + '\')" ONMOUSEOUT="kill();"'}
var extraClass = '';
if(spawnInfo.type == 1 && !spawnInfo.isDead) {extraClass = 'raidMob'}
if(spawnInfo.type == 3 && !spawnInfo.isDead) {extraClass = 'rareMob';}
var spawnHtml = '<li class="list-group-item list-group-item-action spawnRow ' + extraClass + '"><div class="media"><div class="mr-3">';
spawnHtml += '<img alt="' + spawnInfo.name + '" src="/images/' + spawnInfo.image + '" class="spawnImage"' + popHtml + '></div>';
spawnHtml += '<div class="media-body" ' + popHtml + '><h6 class="spawnTitle text-left" style="letter-spacing:inherit">';
if(spawnInfo.type != 1) {spawnHtml += '<a rel="shadowbox;height=510;width=778" class=\"sbox\" href="/mob.php?id=' + spawnInfo.spawnId + '&h=' + spawnInfo.h + (spawnInfo.us ? '&userspawn=1' : '') + '">'}
spawnHtml += spawnInfo.name;
if(spawnInfo.type != 1) {spawnHtml += '</a>'}
spawnHtml += '</h6><p class="mg-b-0 ml-4 text-left"><font color="FFFFFF">Level ' + spawnInfo.level + '</font>';
if(spawnInfo.nft) {
spawnHtml += ' <a href="' + spawnInfo.nft + '"><img src="/img/opensea.png" style="vertical-align: text-top;height:15px;width:15px;margin-left:6px"></a>';
}
spawnHtml += '</p></div>';
spawnHtml += '<div class="ml-3 d-block align-self-center">';
if(spawnInfo.isDead) {
if(spawnInfo.type == 3) {
spawnHtml += '<img src="/landing/rareicondead.png" hspace=3 align="right" class="ignore-media-img" border="0" onmouseover="popup(event,\'Attack other enemies in the room<br>to Spawn this Rare Enemy!\',1);" onmouseout="kill();" />';
}
if(spawnInfo.type == 1) {spawnHtml += '<img src="/landing/raidicondead.png" hspace=3 align="right" class="ignore-media-img" border="0" />';}
}
else if(spawnInfo.type == 1) {
var action = '';
var statusMsg = '';
if(spawnInfo.raidId) {
action = 'joinraid.php?raidid=' + spawnInfo.raidId;
statusMsg = 'Join Raid!';
}
else if(spawnInfo.canForm) {
action = 'formraid.php?target=M' + spawnInfo.mobId + '&h=' + spawnInfo.h;
statusMsg = 'Form Raid!';
}
else {statusMsg = 'Join a crew to raid';}
if(action != '') {spawnHtml += '<a href="' + action + '">';}
spawnHtml += '<img align="right" border="0" alt="Attack!" class="ignore-media-img" src="/landing/raidicon.png" hspace=3 onmouseover="popup(event,\'' + statusMsg + '\');" onMouseOut="kill();"></a>';
if(action != '') {spawnHtml += '</a>';}
}
else {
var mobLink = '';
if(!spawnInfo.noAttack) {
spawnHtml += attackLinkStart + (spawnInfo.us ? 'userspawn=1&' : '') + 'attackid=' + spawnInfo.encid + '&r=world"><img class="ignore-media-img" align="right" border="0" alt="Attack!" src="landing/atkicon.png" hspace="3" OnMouseOver="popup(event,\'Attack! (' + spawnInfo.rage + ' Rage)\');" onMouseOut="kill();"></a>';
}
if(spawnInfo.qmsg ){
if(!spawnInfo.qmsg_lowlevel) {
spawnHtml += '<a rel="shadowbox;height=510;width=778" class="sbox" href="/mob.php?id=' + spawnInfo.spawnId + (spawnInfo.us ? '&userspawn=1' : '') + '&h=' + spawnInfo.h + '"><img class="ignore-media-img" align="right" border="0" src="/landing/questicon.png" hspace=3 onmouseover="popup(event,\'Quests\');" onmouseout="kill();"></a>';
}
else if(!spawnInfo.qmsg_reqrequired) {spawnHtml += '<img align="right" class="ignore-media-img" border="0" src="/landing/questicon.png" hspace=3>'}
}
if(spawnInfo.trainer) {
if(spawnInfo.canTrain) {spawnHtml += '<a href="mob_train.php?id=' + spawnInfo.mobId + '" onmouseover="popup(event,\'Train with ' + spawnInfo.name + '\');" onmouseout="kill();">'}
spawnHtml += '<img align="right" class="ignore-media-img" border="0" src="/landing/trainicon.png" hspace=3>';
if(spawnInfo.canTrain) {spawnHtml += '</a>'}
}
}
spawnHtml += '</div> </div></li>';
newRoomHtml += spawnHtml;
}
newRoomHtml += '</ul>';
$('#roomDetails').html(newRoomHtml);
})}
function automove_btn(){
if (map_display.innerHTML.match(`landing/owpath`) != null){
document.querySelector("#content-header-row > div.col-xl-3.col-lg-6.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-content > div.tomb-middle > div.tomb-middle-list.middle-one > div").innerHTML = `<a href=#><img src="https://studiomoxxi.com/moxximod/automovebtn.png" width="100px" height="100px" id="moveme" onmouseover="popup(event,'<img src=landing/owpath.png>Automatically follow the path');" onmouseout="kill();"></a>`;
document.querySelector("#moveme").addEventListener ("click", automove_on, false);}
if (map_display.innerHTML.match(`landing/owpath`) == null){document.querySelector("#content-header-row > div.col-xl-3.col-lg-6.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-content > div.tomb-middle > div.tomb-middle-list.middle-one > div").innerHTML = ``;}
}
var automove_switch = false;
function automove_on (zEvent) {automove_switch = true; automove()}
function automove(){if (automove_switch == true){
setTimeout(function() {
var s = document.querySelector("#mapHtml > table > tbody > tr:nth-child(5) > td:nth-child(4)").innerHTML.match("landing/owpath")
var a = document.querySelector("#mapHtml > table > tbody > tr:nth-child(4) > td:nth-child(3)").innerHTML.match("landing/owpath")
var d = document.querySelector("#mapHtml > table > tbody > tr:nth-child(4) > td:nth-child(5)").innerHTML.match("landing/owpath")
var w = document.querySelector("#mapHtml > table > tbody > tr:nth-child(3) > td:nth-child(4)").innerHTML.match("landing/owpath")
if (s!=null && a==null && d==null && w==null){document.querySelector("#shref").click()}
if (s==null && a!=null && d==null && w==null){document.querySelector("#ahref").click()}
if (s==null && a==null && d!=null && w==null){document.querySelector("#dhref").click()}
if (s==null && a==null && d==null && w!=null){document.querySelector("#whref").click()}
if (a && s){document.querySelector("#ahref").click();document.querySelector("#shref").click()}
if (s && d){document.querySelector("#shref").click();document.querySelector("#dhref").click()}
if (d && w){document.querySelector("#dhref").click();document.querySelector("#whref").click()}
if (w && a){document.querySelector("#whref").click();document.querySelector("#ahref").click()}
if (document.querySelector("#mapHtml > table > tbody > tr:nth-child(4) > td:nth-child(4)").innerHTML.match("landing/YAHX.png")){automove_switch = false;}
}, 200);}}
GM_addStyle (`
button.dcbtn{
width:125px !important;font-size:10px;padding:3px;background-color:#3C383C;color:#FFFFFF;letter-spacing:0.5px;
box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.25);
-webkit-box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.25);
-moz-box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.25);
border-radius:10px;}
button.dcbtnp{background-image: url("https://studiomoxxi.com/moxximod/bot.png");background-size: 25%;background-repeat: no-repeat;background-position: bottom -15px right -7px;}
#find{font-size:11px;width:510px;background:rgba(39,39,39,0.80);padding-bottom:25px;padding-top:5px;margin-top:1rem;border-radius:10px;box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);-webkit-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);-moz-box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.75);}
#moberror{margin-top:1rem}
button.dcbtn:hover{opacity:0.75;}
button.btn-home-tools{margin-left:1px;margin-right:1px;margin-top:3px;margin-bottom:3px;width:112px !important;font-size:10px !important;padding:1px;height:34px !important;letter-spacing:0.05rem;text-transform: uppercase;}
`)
var menu = document.querySelector("#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1")
let wilderness = document.createElement('div');
wilderness.innerHTML = `
<div id="find">
<button class="btn btn-home-tools btn-mm" id="wilderness_go">OPEN<br>WILDERNESS</button>
<button class="btn btn-home-tools btn-mm dcbtnp" id="atkallrm" onmouseover="popup(event,'Attack all mobs in the room (alt-x)')" onmouseout="kill()">ATTACK<br>ALL MOBS</button>
`+MMbuttons+`
<table id="gotormtab"><tr><td>
<input type="text" placeholder="room number / quest mob / quest item" id="gotormnum" class="goto" name="atkn" size="40" autocomplete="off" onmouseover="popup(event,'Room number, quest mob name, or quest item name must be exact text and punctuation<br>Not case sensitive')" onmouseout="kill()">
</td><td>
<button id="gotorm" class="btn btn-primary mmplus dcbut">FIND</button>
</td></tr>
</table>
<div id="moberror" style="padding:10px;">
<b>Moxximod</b><br>Enter the name of a quest mob or quest item to find the room number. Names must be exact including any punctuation. Not case sensitive
<br><br><b>Moxximod+</b><br>Enter a room number to move to the room or enter the name of a quest mob or quest item to find and move to it. Names must be exact including any punctuation. Not case sensitive
</div>
</div>
`
$(document).ready(function(){
$('#gotormnum').keypress(function(e){
if(e.keyCode==13){
$('#gotorm').click()};
});
});
wilderness.setAttribute("class","")
wilderness.setAttribute("style","margin-top:1rem !important;")
insertAfter(wilderness, menu.lastElementChild);
buttons();
document.getElementById("atkallrm").addEventListener("click", atkallrm, false);
function atkallrm(){
if (GM_getValue("bauth_r").match("Full") != null){
var atkallwait = parseInt($('#roomDetails ul li').length)*800
document.querySelector("#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1").innerHTML = `<img src="https://i.giphy.com/media/39zbpCQocXLi0/giphy.webp">`
setTimeout(function(){window.location.href = "world"},atkallwait)}
task12()}
var arrows = document.querySelector("#content-header-row > div.col-xl-3.col-lg-6.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-content > div.tomb-bottom > div")
arrows.innerHTML = arrows.innerHTML + `<p style="color: gray;font-size: 11px;margin-top: -10px;">Attack mob with keyboard: ALT-(mob num)<p style="color: gray;font-size: 11px;margin-top: -10px;">Moxximod+ attack all mobs: ALT-X`
document.getElementById("gotorm").addEventListener("click", gotorm, false);
function gotorm (zEvent) {
GM_addStyle (`#moberror{ font-size:24px;}`)
document.querySelector("#moberror").innerHTML = ""
gotormnum = document.querySelector("#gotormnum").value.replaceAll(",","")
if (isNaN(gotormnum)){
document.querySelector("#moberror").innerHTML += "not a room number<br>checking for mobs<br>"
var mobname = new RegExp(`"Name": "`+document.querySelector("#gotormnum").value+`",[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)`,"i")
fetch('https://studiomoxxi.com/moxximod/iowh/Mobs.txt')
.then(response => response.text())
.then((response) => {
if (response.match(mobname) != null){
gotormnum = response.match(mobname)[1].replaceAll(",","").replaceAll(" ","");
document.querySelector("#moberror").innerHTML += document.querySelector("#gotormnum").value+" found in room "+gotormnum+"<br>"
task08();moving();}
else {
document.querySelector("#moberror").innerHTML += "not a mob name<br>checking for items<br>"
var itemname = new RegExp(`"Name":"`+document.querySelector("#gotormnum").value+`",[\n\r](.*)`,"i")
fetch('https://studiomoxxi.com/moxximod/iowh/QuestItems.txt')
.then(response => response.text())
.then((response) => {
if (response.match(itemname) != null){
mobname = new RegExp(`"Name": "`+response.match(itemname)[1].match(/\["([^"]*)"/i)[1]+`",[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)`,"i")
fetch('https://studiomoxxi.com/moxximod/iowh/Mobs.txt')
.then(response => response.text())
.then((response) => {
if (response.match(mobname) != null){
gotormnum = response.match(mobname)[1].replaceAll(",","").replaceAll(" ","");
document.querySelector("#moberror").innerHTML += document.querySelector("#gotormnum").value+" found in room "+gotormnum+"<br>"
task08();moving();}})
} else {document.querySelector("#moberror").innerHTML += "not a quest item<br><font color=FF0000>invalid entry</font>"}})}})
} else {
document.querySelector("#moberror").innerHTML += "found room "+gotormnum
task08();moving();}
}
function moving(){
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
document.getElementById ("show_quests").addEventListener("click", show_quests, false);
function show_quests(){
GM_addStyle (`#questhelper{display:revert !important;}`)
document.querySelector("#quest_button").innerHTML = `</a><button id="hide_quests" class="btn btn-primary mmplus" style="margin-top:1rem !important;">HIDE QUESTS</button><p><a href="questlog">QUEST LOG</a>`
document.getElementById ("hide_quests").addEventListener("click", hide_quests, false);
var qh_len = document.querySelector("#questhelper").innerHTML.match(/<div align="center" class="mb-3">/g).length
for (let qh_num = 1; qh_num < (qh_len+1); qh_num++) {
if (document.querySelector("#questhelper > div:nth-child("+qh_num+")").innerHTML.match("Return to") != null){
var qh_mob = document.querySelector("#questhelper > div:nth-child("+qh_num+")").innerHTML.match(/Return to (.*?)<\/b>/i)[1]
document.querySelector("#questhelper > div:nth-child("+qh_num+")").innerHTML = document.querySelector("#questhelper > div:nth-child("+qh_num+")").innerHTML.replace(`Return to`,`<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot grab" id="`+qh_mob+`" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Paste mob name in mob finder')" onmouseout="kill()"> Return to`)
}}
$('.grab').click(function() {if (GM_getValue("bauth_r").match("Full") != null){document.querySelector("#gotormnum").value = this.id;gotorm();}
server_go()});
}
document.getElementById("wilderness_go").addEventListener("click", wilderness_go, false);
function wilderness_go(){
fetch("wilderness")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const wilderness_fetch = doc.querySelector("#divWildernessContainer > div.row.mx-3.mt-3 > div:nth-child(2)").innerHTML.replace(`<a id="wildernessLink"`,`<a id="wildernessLink" TARGET="wildatk"`)
document.querySelector("#eqworld").innerHTML = wilderness_fetch+`
<p>Click above button once to attack mob<br>Mob will update once defeated<p style="margin-top:1.5rem">
<table id="gotormtab"><tr><td>
<input type="text" placeholder="rage stop" id="wild_ragetouse" class="goto" name="atkn" size="9">
</td><td>
<button id="dc_wilderness" class="btn btn-primary mmplus">ATK <img src=https://studiomoxxi.com/moxximod/bot.png class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Enter the amount of rage you would like to use')" onmouseout="kill()"></button>
</td></tr></table>(will attack until rage stop is met)<p>
<iframe id="wildatk" name="wildatk" src="" style="opacity: 0 !important;height:0px !important;width:0px !important;"></iframe>`
wilderness_atk()
document.querySelector("#dc_wilderness").addEventListener("click", dc_wilderness, false)
function dc_wilderness(){
ragefloor = parseInt(document.querySelector("#wild_ragetouse").value.replaceAll(",","").replaceAll(" ","").replaceAll(/[^0-9]/g,""))
task05()
}})}
function wilderness_atk(){document.querySelector("#wildernessLink > img").addEventListener("click", wilderness_frame, false)}
function wilderness_frame(){wilderness_go(); document.querySelector("#wildernessLink > img").click()}
function doc_keyUp(e) {
if (hotkeys == true){
if (document.querySelector("#gotormnum") != document.activeElement){
if (document.querySelector("#wild_ragetouse") != document.activeElement){
if (event.altKey && e.key === 'x') {document.querySelector("#atkallrm").click();}
if (event.altKey && e.key === '1') {document.querySelector("#roomDetails > ul > li:nth-child(1) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (event.altKey && e.key === '2') {document.querySelector("#roomDetails > ul > li:nth-child(2) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (event.altKey && e.key === '3') {document.querySelector("#roomDetails > ul > li:nth-child(3) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (event.altKey && e.key === '4') {document.querySelector("#roomDetails > ul > li:nth-child(4) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (event.altKey && e.key === '5') {document.querySelector("#roomDetails > ul > li:nth-child(5) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (event.altKey && e.key === '6') {document.querySelector("#roomDetails > ul > li:nth-child(6) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (event.altKey && e.key === '7') {document.querySelector("#roomDetails > ul > li:nth-child(7) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (event.altKey && e.key === '8') {document.querySelector("#roomDetails > ul > li:nth-child(8) > div > div.ml-3.d-block.align-self-center > a > img").click();}
if (event.altKey && e.key === '9') {document.querySelector("#roomDetails > ul > li:nth-child(9) > div > div.ml-3.d-block.align-self-center > a > img").click();}}}}}
document.addEventListener('keyup', doc_keyUp, false);
})}
if (document.URL.indexOf("plrattack") != -1 && window.self !== window.top) {
GM_addStyle (`
#health{position:fixed !important;top:0px !important;left:0px !important;background:#0E1726 !important;border:1px SOLID !important;padding:10px !important;width:100% !important;-webkit-box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);-moz-box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);}
#sidebar{display:none !important;}
body > center > div.sub-header-container{display:none !important;}
#content-header-row > center > table{display:none !important;}
#result_notice_window{display:none !important;}
#battle_result{background:none !important;}
body{background:#0E1726 !important;padding:50px !important;}
body img[src*="goldcoin"]{display:none !important;}
#content {margin-top: 90px !important;transition: 0s !important;}
#auth_response{display:none !important;}
`)
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
var playerhealth = (parseInt(document.querySelector("#attacker_health").outerHTML.match(/width: .*px/g).toString().replace("width: ","").replace("px",""))/245*100).toFixed(2);
document.querySelector("#attackerhealth").innerHTML = playerhealth+"%"});});
var attacker_health = document.querySelector("#attacker_health");
observer.observe(attacker_health, { attributes : true, attributeFilter : ['style'] });
var observer3 = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
var defenderhealth = (parseInt(document.querySelector("#defender_health").outerHTML.match(/width: .*px/g).toString().replace("width: ","").replace("px",""))/245*100).toFixed(1);
document.querySelector("#defenderhealth").innerHTML = defenderhealth+"%";});});
var defender_health = document.querySelector("#defender_health");
observer3.observe(defender_health, { attributes : true, attributeFilter : ['style'] });
$("body").append (`<div id="health"><b>ATTACKER HEALTH:</b> <span id="attackerhealth">100%</span><br><b>DEFENDER HEALTH:</b> <span id="defenderhealth">100%</span></div>`);
}
if (document.URL.indexOf("somethingelse") != -1 && window.self !== window.top && error == true) {GM_addStyle (`#tooltab{display:none !important;}`)
document.querySelector("body").innerHTML = `<div align="center" class="statbox widget box box-shadow" style="max-width: 650px;">
<div class="row"><div class="col-12 col-sm"><img class="mb-3" src="/img/error.png"><br><font face="Verdana, Arial, Helvetica, sans-serif">That mob is already dead!</font>
</div><div class="col-sm col-12 justify-content-center mt-sm-0 mt-3" id="errorimagebox"><img src="/images/ErrorImg.jpg"></div></div></div>`}
if (document.URL.indexOf("closedpvp") != -1 && error == false) {
if (document.querySelector("body").innerHTML.match(/<h2 class="w-100 mb-3 alert-light-warning py-2">BRAWL IS ACTIVE<\/h2>/i) != null) {
GM_addStyle (`
#content-header-row > div:nth-child(3) > div:nth-child(2){display:none !important;}
#content-header-row > div:nth-child(3) > div:nth-child(3){display:none !important;}
#content-header-row > div:nth-child(3) > div:nth-child(4){display:none !important;}
#content-header-row > div:nth-child(4){display:none !important;}
#content-header-row > div:nth-child(3) > div:nth-child(1) > ul{display:none !important;}
#content-header-row > div:nth-child(3) > div:nth-child(1) > p{display:none !important;}
#content-header-row > div:nth-child(3) > div:nth-child(1) > h4{display:none !important;}
#content-header-row > h2{display:none !important;}
.col-lg-6{max-width:100% !important;flex:0 0 100% !important;}
.button {background: #060818 !important;margin: 6px !important;padding: 5px !important;margin-bottom: 15px !important;font-size: 12px !important;color: #e0e6ed !important;}
.button:hover {background:#3b3f5c !important;}
#finished {display:none !important;}
.table td, .table th {padding: 0.25rem;vertical-align: top;border-top: 1px solid #dee2e6;}
`)
fetch("profile")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const skillsdiv = doc.querySelector("#divSkillsCast").innerHTML.replace(`<img src="http://torax.outwar.com/images/profile/ProfileSkills.png">`,"").replace(`<img src="http://sigil.outwar.com/images/profile/ProfileSkills.png">`,"")
const my_power = parseInt(responseText.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font><\/b><\/td>/i)[1].replaceAll(",",""))
const my_name = doc.querySelector("#divHeaderName > font").innerHTML
var char_table = document.querySelector("#content-header-row > div:nth-child(4) > div").innerHTML.replace("Your Attacks","Attacks").replace(" Rank ","Rank").replace(" Character ","Character").replace(" Wins ","Wins").replace(" Damage ","Damage")
let brawl_divs = document.querySelector("#content-header-row > div:nth-child(3)");
let div0 = document.createElement('div');
div0.innerHTML = "<h5>Your skills</h5><p>"+skillsdiv;
div0.setAttribute("class","widget-content widget-content-area")
div0.setAttribute("style","margin-top:1rem !important;width:")
insertAfter(div0, brawl_divs.lastElementChild);
let div1 = document.createElement('div');
div1.innerHTML = `<div id=brawlbuttons><button id='button1' class='button'>HIDE ATTACKED</button> <button id='button2' class='button'>SHOW ALL</button></div><p style="margin-bottom:0.5rem">`+char_table;
div1.setAttribute("style","margin-top:1rem !important;")
div1.setAttribute("class","widget-content widget-content-area")
div1.setAttribute("id","char_table")
insertAfter(div1, brawl_divs.lastElementChild);
document.querySelector("#button1").addEventListener ("click", Button1, false);
function Button1 (zEvent) {GM_addStyle (`#finished {display:none !important;}`);}
document.querySelector("#button2").addEventListener ("click", Button2, false);
function Button2 (zEvent) {GM_addStyle (`#finished {display:revert !important;}`);}
let brawl_headers = document.querySelector("#char_table > table > thead > tr")
let b_header0 = document.createElement('th');
b_header0.innerHTML = ``;
insertAfter(b_header0, brawl_headers.lastElementChild);
let b_header1 = document.createElement('th');
b_header1.innerHTML = `<a onmouseover="popup(event,'<font color=#80ff80><b>Player has less power than you<br><font color=#ffff80><b>Player has similar power to you<br><font color=#ff8080><b>Player has more power than you');" onmouseout="kill();">POWER`;
insertAfter(b_header1, brawl_headers.lastElementChild);
let b_header2 = document.createElement('th');
b_header2.innerHTML = `SKILLS`;
insertAfter(b_header2, brawl_headers.lastElementChild);
let b_header3 = document.createElement('th');
b_header3.innerHTML = `PRIZE`;
insertAfter(b_header3, brawl_headers.children[1]);
if (document.querySelector("#char_table > table > thead > tr > th:nth-child(7)").innerHTML == "SKILLS"){GM_addStyle (`#content-header-row > div:nth-child(3) > div:nth-child(5),#brawlbuttons {display:none !important;}`)}
var brawl_memb = document.querySelector("#char_table > table > tbody").rows.length;
for (let rownum = 1; rownum < parseInt(brawl_memb)+1; rownum++) {
var brawl_list = document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replace(/<a href="/i,"").replace(/">.*<\/a>/,"")
if (document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5)") != null){if (document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5)").innerHTML == "10"){document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+")").setAttribute("id", "finished")}}
fetch(brawl_list)
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
var power = parseInt(responseText.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font><\/b><\/td>/i)[1].replaceAll(",",""))
var skills = ''
if (responseText.match(/Circle of Protection<\/b><br \/>You conjure a circle of elemental energy to protect you in battle\. Reduce damage taken in PvP combat by .*.<br \/>(.*) left<br>Cast By/i) != null)
{skills += "<font color=#ffff80>Circle of Protection:</font> "+responseText.match(/Circle of Protection<\/b><br \/>You conjure a circle of elemental energy to protect you in battle\. Reduce damage taken in PvP combat by .*.<br \/>(.*) left<br>Cast By/i)[1]+" <br>"}
var name = doc.querySelector("#divHeaderName > font").innerHTML
var sunderRegExp = new RegExp ("Sunder Armor<\/b><br \/>Target takes 30% more damage from you\. Only castable if you have no active Sunder debuffs cast\.<br \/>(.*)<br>Cast By "+my_name,"i")
var sunderRegExpx = new RegExp ("Sunder Armor<\/b><br \/>Target takes 30% more damage from you\. Only castable if you have no active Sunder debuffs cast\.<br \/>(.*)<br>Cast By "+name,"i")
if (responseText.match(sunderRegExp) != null){skills += "<font color=#80ff80>You Cast Sunder Armor:</font> "+responseText.match(sunderRegExp)[1].replace(" left","")+"<br>"}
if (skillsdiv.match(sunderRegExpx) != null){skills += "<font color=#ff8080>Cast Sunder Armor on You:</font> "+skillsdiv.match(sunderRegExpx)[1].replace(" left","")+"<br>"}
var dartRegExp = new RegExp ("Poison Dart<\/b><br \/>You strike your target with a poisonous dart\. Target takes 5,000 damage each time they attack you, or you attack them\.<br \/>(.*)<br>Cast By "+my_name,"i")
var dartRegExpx = new RegExp ("Poison Dart<\/b><br \/>You strike your target with a poisonous dart\. Target takes 5,000 damage each time they attack you, or you attack them\.<br \/>(.*)<br>Cast By "+name,"i")
if (responseText.match(dartRegExp) != null){skills += "<font color=#80ff80>You Cast Poison Dart:</font> "+responseText.match(dartRegExp)[1].replace(" left","")+"<br>"}
if (skillsdiv.match(dartRegExpx) != null){skills += "<font color=#ff8080>Cast Poison Dart on You:</font> "+skillsdiv.match(dartRegExpx)[1].replace(" left","")+"<br>"}
var atkactive = '';
if (document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5)") != null){atkactive = document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5)").outerHTML.match(`alt="Attack!"`)}
else {GM_addStyle (`#char_table > table > tbody > tr > td:nth-child(6),#char_table > table > thead > tr > th:nth-child(6){display:none !important;}`)
document.querySelector("#brawlbuttons").innerHTML = "<h3>YOU ARE NOT ENTERED IN THIS BRAWL</h3>"}
var atkcharid = document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2)").outerHTML.match(/id=([0-9]+)/i)[1]
var atk10x = ''
if (atkactive != null) {atk10x = `<button id='atk10x`+rownum+`' class='btn btn-primary mmplus'>ATK 10x <img src="https://studiomoxxi.com/moxximod/bot.png" class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Attack player 10x')" onmouseout="kill()"></button>`}
setTimeout(function() {
document.querySelectorAll('#atk10x'+rownum).forEach(item => {item.addEventListener('click', tentimes, false)})
},1000);
function tentimes(){
atk10x_charid = atkcharid
task02();
}
var member_tr = document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+")")
let atk10TD = document.createElement('td');
atk10TD.innerHTML = atk10x
insertAfter(atk10TD, member_tr.lastElementChild);
let powerTD = document.createElement('td');
powerTD.innerHTML = power.toLocaleString("en-US");
insertAfter(powerTD, member_tr.lastElementChild);
if (Math.abs(my_power-power) <= (my_power*0.0299)){powerTD.setAttribute("style","color:#ffff80 !important;")}
if ((power-my_power) >= (my_power*0.0299)){powerTD.setAttribute("style","color:#ff8080 !important;")}
if ((my_power-power) >= (my_power*0.0299)){powerTD.setAttribute("style","color:#80ff80 !important;")}
if (power == my_power){powerTD.innerHTML = "<font color=#888ea8>-</font>";}
let skillsTD = document.createElement('td');
skillsTD.innerHTML = skills;
insertAfter(skillsTD, member_tr.lastElementChild);
var copbutton = ``
var coptime = ''
var copactive = '';
if (document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(8)") != null){copactive = document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(8)").outerHTML.match(`Circle of Protection`)}
else {copactive = null}
if (copactive != null){coptime = document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(8)").outerHTML.match(/<font color="#ffff80">Circle of Protection:<\/font> (.*) <br>/i)[1].replaceAll(" ","").replace("mins","").replace("s","")}
if (copactive != null && atkactive != null){copbutton = `<button id='wait4cop`+rownum+`' class='btn btn-primary mmplus'>WAIT FOR COP <img src="https://studiomoxxi.com/moxximod/bot.png" class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Attack 10x as soon as COP expires')" onmouseout="kill()"></button>`}
if (copactive == null || atkactive == null){copbutton = ""}
setTimeout(function() {
document.querySelectorAll('#wait4cop'+rownum).forEach(item => {item.addEventListener('click', wait4cop, false)})
},1000);
function wait4cop(){
brawlcop_string = atkcharid+"|"+coptime
task03();
}
let buttonTD = document.createElement('td');
buttonTD.innerHTML = copbutton;
insertAfter(buttonTD, member_tr.lastElementChild);
var rank = parseInt(document.querySelector("#char_table > table > tbody > tr:nth-child("+rownum+") > td:nth-child(1)").innerHTML.replace(".",""))
var prize = ''
if (rank == "1"){prize = "20 coins"}
if (rank == "2"){prize = "17 coins"}
if (rank == "3"){prize = "15 coins"}
if (rank == "4"){prize = "13 coins"}
if (rank == "5"){prize = "11 coins"}
if (rank == "6" || rank == "7" || rank == "8"){prize = "10 coins"}
if (rank == "9" || rank == "10" || rank == "11"){prize = "9 coins"}
if (rank == "12" || rank == "13" || rank == "14"){prize = "8 coins"}
if (rank == "15" || rank == "16" || rank == "17"){prize = "7 coins"}
if (rank == "18" || rank == "19" || rank == "20"){prize = "6 coins"}
if (rank == "21" || rank == "22" || rank == "23" || rank == "24" || rank == "25"){prize = "5 coins"}
if (rank == "26" || rank == "27" || rank == "28" || rank == "29" || rank == "30"){prize = "4 coins"}
if (rank >= 31){prize ="none"}
let prizeTD = document.createElement('td');
prizeTD.innerHTML = prize;
insertAfter(prizeTD, member_tr.children[1]);
if (char_table.match(/images\/atk_player_icon\.jpg/i) == null){GM_addStyle(`#finished {display:revert !important;}`)}
})}})}
if (document.querySelector("body").innerHTML.match(/<h2 class="w-100 mb-3 alert-light-warning py-2">BRAWL IS ACTIVE<\/h2>/i) == null) {
GM_addStyle (`
#content-header-row > div:nth-child(3) > div > table > thead > tr > th:nth-child(1){display:none !important;}
#content-header-row > div:nth-child(3) > div > table > tbody > tr > td:nth-child(1){display:none !important;}
#content-header-row > div:nth-child(3) > div > table > thead > tr > th:nth-child(3){display:none !important;}
#content-header-row > div:nth-child(3) > div > table > tbody > tr > td:nth-child(3){display:none !important;}
#content-header-row > div:nth-child(3) > div > table > thead > tr > th:nth-child(4){display:none !important;}
#content-header-row > div:nth-child(3) > div > table > tbody > tr > td:nth-child(4){display:none !important;}
`)
let brawl_headers = document.querySelector("#content-header-row > div:nth-child(3) > div > table > thead > tr")
let b_header1 = document.createElement('th');
b_header1.innerHTML = `<a onmouseover="popup(event,'
<font color=#80ff80><b>Player has less power than you<br>
<font color=#ffff80><b>Player has similar power to you<br>
<font color=#ff8080><b>Player has more power than you');" onmouseout="kill();">POWER`;
insertAfter(b_header1, brawl_headers.lastElementChild);
let b_header2 = document.createElement('th');
b_header2.innerHTML = `SKILLS`;
insertAfter(b_header2, brawl_headers.lastElementChild);
fetch("profile")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
const skillsdiv = doc.querySelector("#divSkillsCast").innerHTML.replace(`<img src="http://torax.outwar.com/images/profile/ProfileSkills.png">`,"").replace(`<img src="http://sigil.outwar.com/images/profile/ProfileSkills.png">`,"")
const my_power = parseInt(responseText.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font><\/b><\/td>/i)[1].replaceAll(",",""))
const my_name = doc.querySelector("#divHeaderName > font").innerHTML
var brawl_memb = document.querySelector("#content-header-row > div:nth-child(3) > div > table > tbody").rows.length;
for (let rownum = 1; rownum < parseInt(brawl_memb)+1; rownum++) {
var brawl_list = document.querySelector("#content-header-row > div:nth-child(3) > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replace(/<a href="/i,"").replace(/">.*<\/a>/,"")
fetch(brawl_list)
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
var power = parseInt(responseText.match(/TOTAL POWER.*[\n\r].*<font size="2">(.*)<\/font><\/b><\/td>/i)[1].replaceAll(",",""))
var skills = ''
if (responseText.match(/Circle of Protection<\/b><br \/>You conjure a circle of elemental energy to protect you in battle\. Reduce damage taken in PvP combat by .*.<br \/>(.*) left<br>Cast By/i) != null){skills += "<font color=#ffff80>Circle of Protection:</font> "+responseText.match(/Circle of Protection<\/b><br \/>You conjure a circle of elemental energy to protect you in battle\. Reduce damage taken in PvP combat by .*.<br \/>(.*) left<br>Cast By/i)[1]+"<br>"}
var name = doc.querySelector("#divHeaderName > font").innerHTML
var sunderRegExp = new RegExp ("Sunder Armor<\/b><br \/>Target takes 30% more damage from you\. Only castable if you have no active Sunder debuffs cast\.<br \/>(.*)<br>Cast By "+my_name,"i")
var sunderRegExpx = new RegExp ("Sunder Armor<\/b><br \/>Target takes 30% more damage from you\. Only castable if you have no active Sunder debuffs cast\.<br \/>(.*)<br>Cast By "+name,"i")
if (responseText.match(sunderRegExp) != null){skills += "<font color=#80ff80>You Cast Sunder Armor:</font> "+responseText.match(sunderRegExp)[1].replace(" left","")+"<br>"}
if (skillsdiv.match(sunderRegExpx) != null){skills += "<font color=#ff8080>Cast Sunder Armor on You:</font> "+skillsdiv.match(sunderRegExpx)[1].replace(" left","")+"<br>"}
var dartRegExp = new RegExp ("Poison Dart<\/b><br \/>You strike your target with a poisonous dart\. Target takes 5,000 damage each time they attack you, or you attack them\.<br \/>(.*)<br>Cast By "+my_name,"i")
var dartRegExpx = new RegExp ("Poison Dart<\/b><br \/>You strike your target with a poisonous dart\. Target takes 5,000 damage each time they attack you, or you attack them\.<br \/>(.*)<br>Cast By "+name,"i")
if (responseText.match(dartRegExp) != null){skills += "<font color=#80ff80>You Cast Poison Dart:</font> "+responseText.match(dartRegExp)[1].replace(" left","")+"<br>"}
if (skillsdiv.match(dartRegExpx) != null){skills += "<font color=#ff8080>Cast Poison Dart on You:</font> "+skillsdiv.match(dartRegExpx)[1].replace(" left","")+"<br>"}
var member_tr = document.querySelector("#content-header-row > div:nth-child(3) > div > table > tbody > tr:nth-child("+rownum+")")
let powerTD = document.createElement('td');
powerTD.innerHTML = power.toLocaleString("en-US");
insertAfter(powerTD, member_tr.lastElementChild);
if (Math.abs(my_power-power) <= (my_power*0.01)){powerTD.setAttribute("style","color:#ffff80")}
if ((power-my_power) >= (my_power*0.01)){powerTD.setAttribute("style","color:#ff8080")}
if ((my_power-power) >= (my_power*0.01)){powerTD.setAttribute("style","color:#80ff80")}
if (power == my_power){powerTD.innerHTML = "<font color=#888ea8>-</font>";}
let skillsTD = document.createElement('td');
skillsTD.innerHTML = skills;
insertAfter(skillsTD, member_tr.lastElementChild);
})}})}}
if (document.URL.indexOf("crew_bossspawns") != -1 && error == false) {
GM_addStyle (`
#divCollections > div.row > div > div{height:360px !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);}
#divCollections > div.row > div > div > div > div.user-profile{display:none !important;}
.boss-widget{background:#131313 !important;background:rgba(0,0,0,0.9) !important;padding:10px !important;border-radius:6px !important;width:250px !important;margin-bottom:1rem !important;color:#FFFFFF !important;}
#content-header-row > div.col-12.layout-spacing{display:none !important;}
.col-xl-6 {-ms-flex: 0 0 33%;flex: 0 0 33%;max-width: 33%;}
.component-card_4 {width: 20rem;margin: 0 auto;border: 1px solid #7A0909;border-radius: 25px;}
.user-info {padding: 9px 8px 24px 0 !important;}
#divHeader{display:none !important;}
#content > div.layout-px-spacing{background: transparent !important;box-shadow: 0px 0px 0px #000000,0px 0px 0px #000000 !important;}
`);
var bossCount = $('#divCollections > div.row > div').length
for (let bossNum = 1; bossNum < 1+bossCount; bossNum++) {
var img_lnk = document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-profile > a").outerHTML.match(/<a href=.*onmouseout="kill\(\)">/i)
document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > h3").innerHTML = `<div class="boss-widget">`+img_lnk+document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > h3").innerHTML
var bossimg = document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-profile > a > img").outerHTML.match(/src="([^"]*)"/)[1]
document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div").setAttribute("style","background:url("+bossimg+") !important;background-size:100% 100% !important")
var bossLink = document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation > a")
var boss = '';
if (bossLink != null){boss = document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation > a")}
if (bossLink != null){
fetch(boss)
.then(response => response.text())
.then((response) => {
var bossName = response.match(/<h1 class="w-100">(.*)<\/h1>/i)
if (bossName != null){var bossHP = '';
if (bossName[1] == "Cosmos, Great All Being"){bossHP = "100000000000"}
if (bossName[1] == "Death, Reaper of Souls"){bossHP = "290000000000"}
if (bossName[1] == "Maekrix, Dreaded Striker"){bossHP = "320000000000"}
if (bossName[1] == "Blackhand Reborn"){bossHP = "570000000000"}
if (bossName[1] == "Zyrak, Vision of Madness"){bossHP = "1200000000000"}
if (bossName[1] == "Arkron, God of Trials"){bossHP = "900000000000"}
var crew1 = response.match(/<font color="#CC0000">(.*)<\/font>.*[\n\r].*<td>(.*) \(.*\)<\/font>/i);
const reducer = (accumulator, curr) => accumulator + curr
var BaseDmgArray = [];
var BaseMatch = response.matchAll(/<td>(.*) \(/g);
for (const BaseMatchLoop of BaseMatch) {
let BaseObj = [parseInt(BaseMatchLoop[1].replace(",","").replace(",","").replace(",",""))];
for (const BaseDmg of BaseObj) {
BaseDmgArray.push(BaseDmg);}}
var BaseNumbers = BaseDmgArray.map(Number)
var SumOfBase = BaseNumbers.reduce(reducer)
var cosmosPerc = ((bossHP-SumOfBase)/bossHP*100).toFixed(3)
var cosmosRemain = Math.round(SumOfBase*cosmosPerc/(100-cosmosPerc))
document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation").innerHTML = `
<div class="boss-widget"><b>TOTAL DAMAGE</b><br>`+SumOfBase.toLocaleString("en-US")+`<br><a href=`+document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation > a")+`>(details)</a></div>
<div class="boss-widget"><b>LEADING CREW</b><br>`+crew1[1]+`<br>`+crew1[2]+`</div>
<div class="boss-widget"><b>HEALTH REMAINING</b><br>`+cosmosRemain.toLocaleString("en-US")+`<br><a href=`+document.querySelector("#divCollections > div.row > div:nth-child("+bossNum+") > div > div > div.user-info.w-100.pr-3 > p.card-user_occupation > a")+`>`+cosmosPerc+`%</a></div>`
}})}}}
if (document.URL.indexOf("boss_stats") != -1 && error == false) {
let str = document.querySelector("#content-header-row > div > table")
str.innerHTML = str.innerHTML.replaceAll("Ancestral","<font color=#FF00FF>Ancestral (Belt, Pants, Ring, Foot)</font>")
.replaceAll("Ancestral Curator Tomb","<font color=#FF00FF>Ancestral Curator Tomb (Core, Helm, Neck)</font>")
.replaceAll("Ancestral Guardian Tomb","<font color=#FF00FF>Ancestral Guardian Tomb (Weapon, Chest, Shield)</font>")
.replaceAll("Ancestral Preserver Tomb","<font color=#FF00FF>Ancestral Preserver Tomb (Belt, Pants, Ring, Foot)</font>")
.replace("Boon of Vision","<font color=#FF00FF>Boon of Vision</font>")
.replace("Tier 2 Booster Upgrade","<font color=#FF8000>Tier 2 Booster Upgrade</font>")
.replace("8-Bit Banana","<font color=#FF8000>8-Bit Banana</font>")
.replace("Augment of Vision","<font color=#FF8000>Augment of Vision</font>")
.replace("Transcended Extract","<font color=#FF8000>Transcended Extract</font>")
.replace("Augment of Madness","<font color=#FF8000>Augment of Madness</font>")
.replace("Prophecy Mail Reborn","<font color=#FFDE5B>Prophecy Mail Reborn</font>")
.replace("Cord of Freezing Winds Reborn","<font color=#FFDE5B>Cord of Freezing Winds Reborn</font>")
.replace("Soul of Blackhand Reborn","<font color=#FFDE5B>Soul of Blackhand Reborn</font>")
.replace("Trinket of Aridity Reborn","<font color=#FFDE5B>Trinket of Aridity Reborn</font>")
.replace("Interstellar Leggings Reborn","<font color=#FFDE5B>Interstellar Leggings Reborn</font>")
.replace("Myrmidon Helm Reborn","<font color=#FFDE5B>Myrmidon Helm Reborn</font>")
.replaceAll("Blackhand Reborn","<font color=#FFDE5B>Blackhand Reborn</font>")
.replace("Incredible Tower Shield Reborn","<font color=#FFDE5B>Incredible Tower Shield Reborn</font>")
.replace("Ring of the Sea Reborn","<font color=#FFDE5B>Ring of the Sea Reborn</font>")
.replace("Boots of the Eagle Reborn","<font color=#FFDE5B>Boots of the Eagle Reborn</font>")
.replace("Core of Exalted Perfection","<font color=#FFDE5B>Core of Exalted Perfection</font>")
.replace("Greathelm of Exalted Perfection","<font color=#FFDE5B>Greathelm of Exalted Perfection</font>")
.replace("Brooch of Exalted Perfection","<font color=#FFDE5B>Brooch of Exalted Perfection</font>")
.replace("Launcher of Exalted Perfection","<font color=#FFDE5B>Launcher of Exalted Perfection</font>")
.replace("Cuirass of Exalted Perfection","<font color=#FFDE5B>Cuirass of Exalted Perfection</font>")
.replace("Boon of Exalted Perfection","<font color=#FFDE5B>Boon of Exalted Perfection</font>")
.replace("Link of Exalted Perfection","<font color=#FFDE5B>Link of Exalted Perfection</font>")
.replace("Scales of Exalted Perfection","<font color=#FFDE5B>Scales of Exalted Perfection</font>")
.replace("Twirl of Exalted Perfection","<font color=#FFDE5B>Twirl of Exalted Perfection</font>")
.replace("Spurs of Exalted Perfection","<font color=#FFDE5B>Spurs of Exalted Perfection</font>")
var deadCheck = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child(1) > td:nth-child(3)").innerHTML;
if (deadCheck > 0){
GM_addStyle ( `
.table-bordered td, .table-bordered th {border: 0px solid !important;}
#content-header-row > div > table > tbody > tr > td:nth-child(3){display:none !important;}
.table>tbody tr {border-bottom: 0px solid #191e3a;}
#content-header-row > div > table > tbody > tr{border-bottom:1px SOLID !important;}
#bossloot > b{padding:5px !important;}
.table td, .table th { vertical-align: middle !important;}
`);
var bossTableX = document.querySelector("#content-header-row > div > table");
var bossTableRowsX = bossTableX.rows.length;
function insertAfter(newNode, existingNode) {existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);}
var bossName = document.querySelector("#content-header-row > h1").innerHTML
var lootCount = '';
if (bossName == "Cosmos, Great All Being"){lootCount = "50"}
if (bossName == "Death, Reaper of Souls"){lootCount = "80"}
if (bossName == "Maekrix, Dreaded Striker"){lootCount = "73"}
if (bossName == "Blackhand Reborn"){lootCount = "61"}
if (bossName == "Zyrak, Vision of Madness"){lootCount = "65"}
if (bossName == "Arkron, God of Trials"){lootCount = "160"}
for (let rownumX = 1; rownumX < bossTableRowsX; rownumX++) {
var crewName = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+") > td:nth-child(1) > a > font").innerHTML.replace("'","");
var percentage = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+") > td:nth-child(2)").innerHTML.replace(/.*\(/i,"").replace("%)","");
let bossLootCnt = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+") > td:nth-child(3)").innerHTML
let bossLoot = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+") > td:nth-child(3)").outerHTML
bossLoot = `<table id=bossloottable><tr><td width=50px class="noborder"><center><span id=bossloot style='background-color: #D4D4D4; color: #202020;'><b>`+bossLootCnt+`</b><br></span><a onmouseover="popup(event,'`+crewName+`s expected items')" onmouseout="kill()"><font size=1 color=#D4D4D4>(`+Math.round(percentage/100*lootCount)+`)</td><td class="noborder"> `+bossLoot.replace(/<td onmouseover="popup\(event,'/g,"").replace(/<br>','808080'\)" onmouseout="kill\(\)>.*<\/td>/g,"").replaceAll("<br>",", ").replaceAll(/No Items','808080'\)" onmouseout="kill\(\)">0/g,"").replaceAll(/, ','808080'\)" onmouseout="kill\(\)">[0-9]+/g,"");
let menu = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownumX+")");
let td = document.createElement('td');
td.innerHTML = bossLoot;
insertAfter(td, menu.lastElementChild);
}}}
if (document.URL.indexOf("boss_stats") != -1 && error == false) {
let bossName = document.querySelector("#content-header-row > h1").innerHTML
let lootCount = '';
if (bossName == "Cosmos, Great All Being"){lootCount = "50"}
if (bossName == "Death, Reaper of Souls"){lootCount = "78"}
if (bossName == "Maekrix, Dreaded Striker"){lootCount = "73"}
if (bossName == "Blackhand Reborn"){lootCount = "61"}
if (bossName == "Zyrak, Vision of Madness"){lootCount = "64"}
if (bossName == "Arkron, God of Trials"){lootCount = "160"}
var bossHP = '';
if (bossName == "Cosmos, Great All Being"){bossHP = "100000000000"}
if (bossName == "Death, Reaper of Souls"){bossHP = "290000000000"}
if (bossName == "Maekrix, Dreaded Striker"){bossHP = "320000000000"}
if (bossName == "Blackhand Reborn"){bossHP = "570000000000"}
if (bossName == "Zyrak, Vision of Madness"){bossHP = "1200000000000"}
if (bossName == "Arkron, God of Trials"){bossHP = "900000000000"}
var bossIMG = '';
if (bossName == "Cosmos, Great All Being"){bossIMG = "images/CosmosGreatAllBeing_grey.jpg"}
if (bossName == "Death, Reaper of Souls"){bossIMG = "images/DeathReaperOfSouls.jpg"}
if (bossName == "Maekrix, Dreaded Striker"){bossIMG = "images/MaekrixDreadedStriker.jpg"}
if (bossName == "Blackhand Reborn"){bossIMG = "images/BlackhandReborn.png"}
if (bossName == "Zyrak, Vision of Madness"){bossIMG = "images/velserverboss_grey.jpg"}
if (bossName == "Arkron, God of Trials"){bossIMG = ""}
var loottable = '';
if (bossName == "Cosmos, Great All Being"){loottable = `Demonic Teleporter x1<br>Recharge the Fury x4<br>Cosmos Talisman x10<br>Tome of Daily Grind x5<br>Key to Knights Horror x9<br>Astral Shard x4<br>Quest Shard x5<br>Recharge Totem x3<br>Star Power x4<br>Ticket to the Mystifying Carnival x3<br>Containment Orb x2<br>Orb of the Scepter x1<br>Amulet Chest (50) x2`}
if (bossName == "Death, Reaper of Souls"){loottable = `Recharge Totem x3<br>Recharge the Fury x10<br>Standard Issue Neuralyzer x6<br>Death Talisman x12<br>Pirate Treasure Map x6<br>Key of the Elements x6<br>Advanced Neuralyzer x2<br>Trinket Items x10<br>Elemental Vigor Orb x2<br>Elemental Assault Orb x2<br>Elemental Defense Orb x2<br>Amulet Chest (50) x4<br><font color=#fff000>Chancellor Item x20<br><font color=#fff000>Spiral Gear x10`}
if (bossName == "Maekrix, Dreaded Striker"){loottable = `Red Dragon Items x9<br>Astral Totem x10<br>Maekrix Talisman x12<br>Key to the Alsayic Ruins (Solo) x2<br>Juggernaut Talisman x8<br>Advanced Neuralyzer x2<br>Irthys Vigor Orb x3<br>Irthys Assault Orb x3<br>Irthys Defense Orb x3<br>Add Augment Slot x4<br>Remove Augment x8<br>Amulet Chest (50) x6<br><font color=#FFF000>Nobel Gear x10`}
if (bossName == "Blackhand Reborn"){loottable = `Augment of the Reborn Knight x1<br>Blackhand Reborn Items x10<br>Core of Blackhand x2<br>Essence of Reincarnation x1<br>Blackhand Talisman x4<br>Profound Ward x10<br>8-Bit Banana x1<br>Buckler of Insanity x3<br>Hauberk of Lunacy x3<br>Charm of Havoc x3<br>Unstoppable Concoction x10<br>Advanced Neuralyzer x2<br>Power Potion Pack x2<br>Flask of Endurance x5<br>Magic Gem x1<br><font color=#FFF000>Perfection Gear x10`}
if (bossName == "Zyrak, Vision of Madness"){loottable = `Augment of Madness x1<br>Unstable Jewel x6<br>Veldarabloom x3<br>Scripture of Zyrak x3<br>Pulsating Stone x2<br>Bottled Chaos x1<br>Thunder Ball x10<br>Force of Veldara x10<br>Interstellar Vessel x6<br>Vault Tear x6<br>Vial of Insanity x6<br>Demonic Madness x3<br>Infinite Tower Spheroid x1<br>Transcended Extract x1<br>Tier 2 Booster Upgrade x1<br><font color=#FFF000>Exalted Gear x10<br><font color=#FFF000>Boon of Vision x1<br><font color=#FFF000>Ancestral Tomb x3`}
if (bossName == "Arkron, God of Trials"){loottable = `<i>ESTIMATES</i><br>Advanced Neuralyzer x10<br>v3 Event Augment x10<br>Cosmic Mote x20<br>Force of Veldara x20<br>Interstellar Vessel x50<br>v3 Event Item x12<br>v2 Event Item x40<br>Vault Tear x10`}
var bossTable = document.querySelector("#content-header-row > div > table");
var bossTableRows = bossTable.rows.length;
function insertAfter(newNode, existingNode) {
existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling);}
var aliveCheck = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child(1) > td:nth-child(3)").innerHTML;
if (aliveCheck < 1){
GM_addStyle ( `
#content-header-row > div > table > thead > tr > th:nth-child(3){display:none !important;}
#content-header-row > div > table > tbody > tr > td:nth-child(3){display:none !important;}
#content-header-row > div > table > thead > tr > th:nth-child(2){display:none !important;}
#content-header-row > div > table > tbody > tr > td:nth-child(2){display:none !important;}
.table td, .table th {padding-left:0.5rem !important;padding: 0.2rem;vertical-align: top;border-top: 1px solid #dee2e6;}
#content-header-row > h1{display:none !important;}
#content-header-row > div > table > tbody > tr > td{color:#FFFFFF !important;}
#content-header-row > div > table > tbody > tr > td:nth-child(1) > a > font{color:#FFFFFF !important;}
#content-header-row > h5 > div{background-image:url('https://studiomoxxi.com/ow_themes/custom_jobs/minimal_01/mm_patern.png') !important;}
#content-header-row > div > table{box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);}
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
.widget{padding:5px !important;padding-top:15px !important;}
`);
let menu = document.querySelector("#content-header-row > div > table > thead > tr");
let th1= document.createElement('th');
th1.innerHTML = `DAMAGE`;
insertAfter(th1, menu.lastElementChild);
let th2= document.createElement('th');
th2.innerHTML = `PERCENT`;
insertAfter(th2, menu.lastElementChild);
let th8= document.createElement('th');
th8.innerHTML = `<a onmouseover="popup(event,'The number of items already earned based on current damage')" onmouseout="kill()">EARNED</a>`;
insertAfter(th8, menu.lastElementChild);
let th3= document.createElement('th');
th3.innerHTML = `EST TOT DMG`;
insertAfter(th3, menu.lastElementChild);
let th4= document.createElement('th');
th4.innerHTML = `EST ITEMS`;
insertAfter(th4, menu.lastElementChild);
let th5= document.createElement('th');
th5.innerHTML = `STATUS`;
insertAfter(th5, menu.lastElementChild);
let th6= document.createElement('th');
th6.innerHTML = `LAST DMG`;
insertAfter(th6, menu.lastElementChild);
let th7=document.createElement('th');
th7.innerHTML = `MARKDOWN`
insertAfter(th7, menu.lastElementChild);
var d = '';var utc = '';var nd = '';
function calcTime(city, offset) {
d = new Date();
utc = d.getTime() + (d.getTimezoneOffset() * 60000);
nd = new Date(utc + (3600000*offset));
return nd.toLocaleString();}
var OWtime = Date.parse((calcTime('Outwar', '-5.0')));
var active_total = 0;
var active_permin = 0;
var totaldmg = 0;
for (let rownum = 1; rownum < bossTableRows; rownum++) {
var crewID = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(1)").innerHTML.replaceAll(/"><font.*/g,"").replaceAll(/<a href="crew_profile\.php\?id=/g,"");
fetch("crew_raidresults.php?all_results=Display+all+raid+results&crewid="+crewID)
.then(response => response.text())
.then((response) => {
var crewName = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(1) > a > font").innerHTML.replace("'","");
var crewID = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(1)").innerHTML.replaceAll(/<a href="crew_profile\.php\?id=/g,"").replaceAll(/"><font color="#CC0000".*/g,"");
var match_time = 'valign="top">(.*)<\/td.*[\n\r].*'+bossName
var match_url = 'valign="top">.*<\/td.*[\n\r].*'+bossName+'.*[\n\r].*[\n\r].*'
var lastRaid = response.match(match_time)
var url_match = response.match(match_url) || `raidattack.php?raidid=0`
var raidlink = url_match.toString().match(/raidattack\.php\?raidid=[0-9]+/i)
fetch(raidlink)
.then(response => response.text())
.then((response) => {
var lastraid_dmg = (response.match(/<i>Total Attacker Damage: (.*)<\/i>/i) || [0,0]) [1]
const doc = new DOMParser().parseFromString(response, 'text/html');
var raidchar = '';
if (doc.querySelector("#message_0 > div > div > span > b") != null){
raidchar = doc.querySelector("#message_0 > div > div > span > b").innerHTML.replace(/ .*/i,"") } else {raidchar = 0}
fetch("profile.php?transnick="+raidchar)
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
var skills = doc.querySelector("#divSkillsCast").innerHTML
var markdown = '';
if (skills.match(/src="\/images\/skills\/markdown\.png" .*join raids\.<br \/>(.*[0-9]+ mins) left<br>/i) == null){markdown = "not found"}
if (skills.match(/src="\/images\/skills\/markdown\.png" .*join raids\.<br \/>(.*[0-9]+ mins) left<br>/i) != null){markdown = skills.match(/src="\/images\/skills\/markdown\.png" .*join raids\.<br \/>(.*[0-9]+ mins) left<br>/i)[1]}
var lastRaidprint = ''
if (lastRaid != null){lastRaidprint = Date.parse(lastRaid[1].replaceAll("-","/").replace(/\/22 /g,"/2022, ").replace("am",":00 AM").replace("pm",":00 PM").replace(/ 0/i," "))}
var sinceLast = OWtime-lastRaidprint
if (sinceLast < 150000){active_total += 1}
var status = '';
if (sinceLast < 150000){status = `active`;}
if (sinceLast > 149999){status = `inactive`}
var activeRaids = '';
if (status == "active"){activeRaids = `<a href=crew_raidresults.php?most_recent=raid+results&crewid=`+crewID+` onmouseover="popup\(event,'<b>`+crewName+`</b><br>Last raid vs `+bossName+`:<br>`+Math.round(sinceLast/60000)+` minutes ago<br>(click to see raid results)'\)" onmouseout="kill\(\)"><font color=#00FF00>active</a>`;}
if (status == "inactive"){activeRaids = `<a style="color:#272727 !important;" onmouseover="popup\(event,'<b>`+crewName+`</b><br>Last raid vs `+bossName+`:<br>`+Math.round(sinceLast/60000)+` minutes ago'\)" onmouseout="kill\(\)">inactive`}
var dmg = Math.round(parseInt(document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2)").innerHTML.replaceAll(/ \([^)]*\)/g,"").replaceAll(",","")))
var percent = parseInt(document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2)").innerHTML.match(/\(([0-9]+\.[0-9]+)%\)/i)[1].replace(".",""))/100
if (status == "active"){active_permin += lastraid_dmg}
totaldmg += dmg
let menu = document.querySelector("#content-header-row > div > table > tbody > tr:nth-child("+rownum+")");
let td1 = document.createElement('td');
td1.innerHTML = dmg.toLocaleString("en-US");
insertAfter(td1, menu.lastElementChild);
let td2 = document.createElement('td');
td2.innerHTML = percent+"%";
insertAfter(td2, menu.lastElementChild);
let td8 = document.createElement('td');
td8.innerHTML = Math.round(dmg/bossHP*lootCount);
insertAfter(td8, menu.lastElementChild);
let td3 = document.createElement('td');
td3.innerHTML = (((percent/100)*bossHP)).toLocaleString("en-US");
insertAfter(td3, menu.lastElementChild);
let td4 = document.createElement('td');
td4.innerHTML = Math.round(lootCount*(percent/100));
insertAfter(td4, menu.lastElementChild);
let td5 = document.createElement('td');
td5.innerHTML = activeRaids;
if (status == "active"){td5.setAttribute("style","color:#00FF00 !important")}
insertAfter(td5, menu.lastElementChild);
let td6 = document.createElement('td');
td6.innerHTML = lastraid_dmg.toLocaleString("en-US");
if (status == "active"){td6.setAttribute("style","color:#00FF00 !important")}
insertAfter(td6, menu.lastElementChild);
let td7 = document.createElement('td');
td7.innerHTML = markdown;
if (status == "active"){td7.setAttribute("style","color:#00FF00 !important")}
if (status != "active"){td7.innerHTML = "--";}
insertAfter(td7, menu.lastElementChild);
document.querySelector("#content-header-row > h5").innerHTML = `<div class="widget widget-chart-one mb-3"><div class="headcontainer"><h2>`+bossName+` <a onmouseover="popup(event,'`+loottable+`')" onmouseout="kill\(\)"><img src=https://studiomoxxi.com/moxximod/loot.png height="20px" style="margin-bottom:10px"></a></h2>
<p> Health Remaining: `+(bossHP-totaldmg).toLocaleString("en-US")+" ("+((bossHP-(totaldmg))/bossHP*100).toFixed(3)+`%)</div></div>
<p style="margin-top:20px" id="atk_icon"></p>`
document.querySelector("#content-header-row > div").setAttribute("class","table-responsive mx-2 widget widget-chart-one mb-3")
let text = `<img src="https://studiomoxxi.com/moxximod/atk_icon.webp" height="30px" width="30px" onmouseover="popup(event,'`+active_total+` CREWS RAIDING')" onmouseout="kill\(\)">`;
let result = text.repeat(active_total);
document.getElementById("atk_icon").innerHTML = result;
})})})}}}
if (document.URL.indexOf("augmentequip") != -1 && error == false) {
var aug_change = document.querySelector("#item-container")
let observer = new MutationObserver(mutationRecords => {
addaug();
});
observer.observe(aug_change, {
childList: true,
subtree: true,
characterDataOldValue: true
});
function addaug(){
var open_aug = document.querySelector("#item-container").innerHTML.match(/src="\/images\/augslot\.jpg"><h5>Slot ([0-9]+)<\/h5>/i)[1]
document.querySelector("#form-slotid").value = open_aug
}}
if (document.URL.indexOf("raidattack") != -1 && GM_getValue("fastraidresults") == true && error == false) {
GM_addStyle (`
[id^="message"] {visibility: visible !important;}
#outcome{position:fixed !important;right:15px !important;top: 50px !important;width:250px !important;}
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
#content img[src*="images/mobs/velendgamegod"] {height:250px !important;width:250px !important;}
`);
var lastbox = document.querySelector("#content-header-row > div:last-of-type > div.col-12.col-lg-6.text-left.pl-5.mt-5.mt-md-0 > div").innerHTML.replace(/Attacks!.*[\n\r].*/i,"").replace(`style="position:absolute;right: 0px;bottom: -7px;"`,`style="position:absolute;right: 3px;bottom: 3px; font-size:12px"`)
lastbox = lastbox.replace(`<a href="#" onmouseover="popup(event,'<b>`,`<font color="#FFFFFF">`).replace(/<\/b>'\)" onmouseout="kill\(\)">[0-9]+ items<\/a><\/b><\/font><\/span>/i,"")
$("body").append (`<div id="outcome" class="widget widget-chart-one mb-3 tiles"><center>`+lastbox+`</div>`);
}
if (document.URL.indexOf("profile") != -1 && error == false) {
if (document.URL.indexOf("crew_profile") == -1) {
var pheader = document.querySelector("#divProfile > div.widget.mb-2 > div > div > div.col-md-7").innerHTML
var pskills = document.querySelector("#divProfile > div.widget.mb-2 > div > div > div.col-md-12").innerHTML.replace(`<img src="http://torax.outwar.com/images/profile/ProfileSkills.png">`,"").replace(`<img src="http://sigil.outwar.com/images/profile/ProfileSkills.png">`,"")
var pinfo = document.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(1) > div").innerHTML.replace(`<h5 class="card-title">PLAYER INFO</h5>`,"").replace(`<table class="table table-striped" cellpadding="0" cellspacing="0" width="100%">`,`<table class="charinfo" cellpadding="0" cellspacing="0" width="100%">`)
var ppiclink = document.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-8.col-md-7 > div > div:nth-child(1) > div > img").outerHTML.replace(`<img class="profilepic" src="`,"").replace(`">`,"")
var pdesc = document.getElementsByClassName('card')[6].innerHTML
var peq = document.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(2) > div").innerHTML.replace(`<h5 class="card-title">EQUIPMENT</h5>`,"")
var pallies = document.getElementsByClassName('card')[7].innerHTML
var penemies = document.getElementsByClassName('card')[8].innerHTML
var pcrests = document.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(3) > div").innerHTML.replace(`<h5 class="card-title">SKILL CRESTS</h5>`,"")
var pmastery = document.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(4) > div").innerHTML.replace(`<h5 class="card-title">MASTERIES</h5>`,"")
var pcomment = document.querySelector("#comTable").innerHTML.replaceAll("/characters/","/profile.php?id=")
var plings = '';
if (document.getElementsByClassName('card')[11].innerHTML.match("UnderlingTable") != null){
plings = document.getElementsByClassName('card')[11].innerHTML.replace(`<table id="UnderlingTable" class="table table-striped-dark mt-1">`,`<table id="UnderlingTable" class="lings">`)}
if (document.getElementsByClassName('card')[11].innerHTML.match("UnderlingTable") == null){
plings = document.getElementsByClassName('card')[12].innerHTML.replace(`<table id="UnderlingTable" class="table table-striped-dark mt-1">`,`<table id="UnderlingTable" class="lings">`)}
var pslayer = document.getElementsByClassName('card')[9].innerHTML.replace(`</h5>`,`</h5><p>`)
GM_addStyle (`
.propic{background: #0E1726 url("`+ppiclink+`"); background-repeat: no-repeat;border-radius:8px !important;background-position: center !important;}
.equipment{background: #0E1726 url("`+ppiclink+`"); background-repeat: no-repeat;border-radius:8px !important;background-size: cover;background-position: center !important;}
#eq_photo{position:absolute;left:25px;top:20px;z-index:9999;opacity:0.3;filter: grayscale(1);}
`);
if (GM_getValue("propicstretch") == true){GM_addStyle(`.propic{background-size: cover;}`);}
var upload_pic = '';
if (document.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-8.col-md-7 > div > div:nth-child(1) > div > a") != null){
upload_pic = document.querySelector("#divProfile > div:nth-child(2) > div > div > div.col-xl-8.col-md-7 > div > div:nth-child(1) > div > a").outerHTML;}
if (document.querySelector("#divActions > a:nth-child(1)") != null){
var patk = document.querySelector("#divActions > a:nth-child(1)").outerHTML.replace(`<img src="http://torax.outwar.com/images/profile/ProfileAttack.png" alt="ATTACK" border="0">`,"").replace(`<img src="http://sigil.outwar.com/images/profile/ProfileAttack.png" alt="ATTACK" border="0">`,"").replace(`</a>`,"")
var pdata = patk.match(/<a href="javascript:void\(0\);" onclick="showAttackWindow\('([^']*)','([0-9]+)','[0-9]+','[^']*'\)">/i)
var pname = pdata[1]
var pid = pdata[2]
}
if (window.location.href.match(charid) != null || window.location.href.match("id") == null){GM_addStyle (`#pbuttons{display:none !important;}`)}
if (patk == undefined){GM_addStyle (`#atk_button{display:none !important;}`)}
var isplayerpp = "no"
if (pheader.match(/<img src="[^"]*" onmouseover="popup\(event,'Preferred Player','808080'\)" onmouseout="kill\(\)">/i) != null){
pheader = pheader.replace(/<img src="[^"]*" onmouseover="popup\(event,'Preferred Player','808080'\)" onmouseout="kill\(\)">/i,"")
isplayerpp = "yes"}
document.querySelector("#content").innerHTML = `
<div class="row justify-content-center">
<div style="margin:1rem">
<div class="widget widget-chart-one mb-3">
`+pheader+`
<div>`+pinfo+`</div>
</div>
<div class="widget widget-chart-one mb-3 equipment">
`+peq+pcrests+`
</div>
<div class="widget widget-chart-one mb-3">
`+pmastery+`
</div>
<div class="widget widget-chart-one mb-3">
`+pcomment+`
</div>
</div>
<div style="margin:1rem">
<div class="widget widget-chart-one mb-3" id="showhide">
<div id="pbuttons">
<button id="atk_button" class="btn btn-primary">`+patk+`ATK</a></button>
<button id="button" class="btn btn-primary"><a href=send_ow_message?name=`+pname+`>MSG</a></button>
<button id="button" class="btn btn-primary"><a href=profile?id=`+pid+`&ally=1>ALLY</a></button>
<button id="button" class="btn btn-primary"><a href=blocklist?id=`+pid+`>BLOCK</a></button>
<button id="button" class="btn btn-primary"><a href=trade?tradeWith=`+pid+`>TRADE</a></button>
<button id="button" class="btn btn-primary"><a href=crew_invites?inv=`+pname+`>INVITE</a></button>
<button id="button" class="btn btn-primary"><a href=profile?id=`+pid+`&enemy=1>ENEMY</a></button>
<button id="button" class="btn btn-primary"><a href=treasury?search_for=`+pname+`>TREAS</a></button>
</div>
`+pskills+`
</div>
<div class="widget-chart-one mb-3 propic" style="height:400px !important;width:800px !important;text-align: right !important;">`+upload_pic+`
</div>
<div class="widget widget-chart-one mb-3">
`+pdesc+`
</div>
<div class="widget widget-chart-one mb-3">
`+pslayer+`
</div>
<div class="widget widget-chart-one mb-3">
`+pallies+`
</div>
<div class="widget widget-chart-one mb-3">
`+penemies+`
</div>
<div class="widget widget-chart-one mb-3">
`+plings+`
</div>
</div>
</div>
`
if (isplayerpp == "yes"){
GM_addStyle (`
#content > div > div:nth-child(1) > div:nth-child(1){-webkit-box-shadow:0px 0px 3px 3px rgba(209,156,32,0.5);
-moz-box-shadow: 0px 0px 3px 3px rgba(209,156,32,0.5);
box-shadow: 0px 0px 3px 3px rgba(209,156,32,0.5);}
.bg-secondary, .bg-success, .bg-primary, .bg-danger, .bg-warning{background-color: #E79A31 !important;border-color: #E79A31 !important;color: #fff !important;}
#divHeaderName{color:#E79A31 !important;}
#content > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > table > tbody > tr:nth-child(4) > td:nth-child(2) > b > font{color:#E79A31 !important;}
#content > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > table > tbody > tr:nth-child(5) > td:nth-child(2) > b > font{color:#E79A31 !important;}
#content > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > table > tbody > tr:nth-child(6) > td:nth-child(2) > b > font{color:#E79A31 !important;}
#content > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > table > tbody > tr:nth-child(8) > td:nth-child(2) > b > font{color:#E79A31 !important;}
`);}
if (isplayerpp == "no"){
GM_addStyle (`
.bg-secondary, .bg-success, .bg-primary, .bg-danger, .bg-warning{background-color: #E7515A !important;border-color: #E7515A ;color: #fff;}
`);}
$(".equipment").append(`
<div id="eq_photo">
<a href="javascript:void(0);" id="click" onmouseover="statspopup(event,'Download equipment as PNG image')" onmouseout="kill()">
<img src="https://studiomoxxi.com/moxximod/32x32[1].png" width="20px" height="20px"></a>
</div>`)
document.querySelector("#click").addEventListener("click", click, false);
function click(){
html2canvas(document.querySelector('.equipment'), {
letterRendering: 1,
allowTaint: true,
onrendered: function(canvas) {
var ctx = canvas.getContext("2d");
ctx.textBaseline = "top";
ctx.font = "10px sans-serif";
ctx.fillStyle = "rgba(0, 0, 0, 0.7)";
ctx.fillRect(0, 340, 517, 13);
ctx.fillStyle = "#FF0000";
ctx.fillText("CREATED WITH MOXXIMOD for OUTWAR: STUDIOMOXXI.COM", 12, 342);
return Canvas2Image.saveAsPNG(canvas);
}})}
}}
document.querySelector("#slider").addEventListener("click", slider_open, false);
var cast_selected = '';
function slider_open(){
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
var fetch_count = 0;
fetch("ajax/backpackcontents.php?tab=potion")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
var allpots = doc.querySelector("body").innerHTML.match(/<img data-itemidqty="[0-9]+".*>/g)
var pots_count = 0; if (allpots != null){pots_count = allpots.length}
fetch_count += 1;
var pots_icons = '';
for (let potnum = 0; potnum < pots_count; potnum++) {pots_icons += allpots[potnum].replaceAll(/onclick="kill\(\);makemenu\([^)]*\);">/g,">").replaceAll(/class="itemimage backpackslot" /g,"").replaceAll(/id="item[0-9]+"/g,"").replaceAll(/data-iid=/g,"id=")}
var skills_icons = '';
var skills_count = 0;
fetch("skills_info.php?id=3")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/empower.png" id="3" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=4")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/stealth.png" id="4" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=7")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/onguard.png" id="7" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=22")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/vitaminx.png" id="22" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=28")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/fortify.png" id="28" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=25")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/streetsmarts.png" id="25" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3182")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/masteraffskill.png" id="3182" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3183")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/masterpresskill.png" id="3183" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3184")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/masterferoskill.png" id="3184" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=9")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/boost.png" id="9" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=26")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/protection.png" id="26" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=29")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/accuratestrike.png" id="29" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=312")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/darkstrength.png" id="312" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=87")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/swiftness.png" id="87" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3024")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/haste.png" id="3024" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=17")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/masterfullooting.png" id="17" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3008")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/circumspect.png" id="3008" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=5")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/bloodlust.png" id="5" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3007")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/stoneskin.png" id="3007" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3013")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/masterfulraiding.png" id="3013" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3014")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/markdown.png" id="3014" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3010")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/laststand.png" id="3010" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3015")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/strengthinnumbers.png" id="3015" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3009")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/forcefield.png" id="3009" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=2")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/blessingfromabove.png" id="2" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3011")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/enchantarmor.png" id="3011" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3012")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/elementalpower.png" id="3012" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3025")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/executioner.png" id="3025" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3006")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/elementalbarrier.png" id="3006" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=36")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/hitman.png" id="36" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=33")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/uproar.png" id="33" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=35")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/killingspree.png" id="35" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=8")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/ambush.png" id="8" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=14")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/circleofprotection.png" id="14" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3016")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/vanish.png" id="3016" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=46")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/shieldwall.png" id="46" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=3174")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/GodSlayerSkill.png" id="3174" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("skills_info.php?id=2996")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const name = doc.querySelector("body > div.text-left > h5").innerHTML
const details = response.match(/<\/h5>[\n\r](.*) <\/div>/i)[1].replaceAll("'","")
if (doc.querySelector("body").innerHTML.match(/<input type="submit" name="cast" class="btn btn-primary" value="Cast Skill">/i) != null){skills_count += 1;skills_icons += `<img src="images/skills/dailygrind.png" id="2996" onmouseover="statspopup(event,'<h5>`+name+`</h5><p>`+details+`')" onmouseout="kill()">`}
fetch_count += 1;
fetch("profile")
.then(response => response.text())
.then((response) => {
const doc = new DOMParser().parseFromString(response, 'text/html');
const skills = doc.querySelector("#divSkillsCast").innerHTML.replace("skills/potion28.jpg","potion28.jpg").match(/src="[^"]*"/g)
var skills_length = 0; if (skills != null){skills_length = skills.length-1}
var active_img = '';
for (let active = 0; active < skills_length+1; active++) {
active_img = skills[active].replaceAll(`src="/`,"").replaceAll(`"`,"").replaceAll(/\.[a-zA-Z]+/g,"").replaceAll(/.*\.\./g,"")
GM_addStyle (`#potsslider img[src*="`+active_img+`"]{opacity: 0.2 !important;filter: grayscale(1) !important;}`)}
fetch_count += 1;
document.querySelector("#potsslider").innerHTML = skills_icons+`<p>`+pots_icons+`<div id="buttons">
<button id="exit_slider" class="btn btn-primary mmplus">CLOSE</button>
<button id="slider_all_skills" class="btn btn-primary mmplus">SELECT ALL SKILLS</button>
<button id="slider_none_skills" class="btn btn-primary mmplus">DESELECT ALL SKILLS</button>
<button id="slider_all_potions" class="btn btn-primary mmplus">SELECT ALL POTIONS</button>
<button id="slider_none_potions" class="btn btn-primary mmplus">DESELECT ALL POTIONS</button>
<button id="slider_cast" class="btn btn-primary mmplus">CAST SELECTED <img src=https://studiomoxxi.com/moxximod/bot.png class="robot" id="icon"></button></div>`
var sliderheight = (Math.ceil((pots_count)/25)*80)+(Math.ceil((skills_count)/25)*80)+75
$(function () {
$('#potsslider').on('click','img',(function() {
$(this).toggleClass("selected");
}));});
function slider_all_skills() {
$(function () {
$("#potsslider > img").addClass("selected");
});};
function slider_all_potions() {
$(function () {
$("#potsslider > p > img").addClass("selected");
});};
function slider_none_skills() {
$(function () {
$("#potsslider > img").removeClass("selected");
});};
function slider_none_potions() {
$(function () {
$("#potsslider > p > img").removeClass("selected");
});};
document.querySelector("#exit_slider").addEventListener("click", slider_close, false);
document.querySelector("#slider_all_skills").addEventListener("click", slider_all_skills, false);
document.querySelector("#slider_none_skills").addEventListener("click", slider_none_skills, false);
document.querySelector("#slider_all_potions").addEventListener("click", slider_all_potions, false);
document.querySelector("#slider_none_potions").addEventListener("click", slider_none_potions, false);
document.querySelector("#slider_cast").addEventListener("click", slider_cast, false);
function slider_cast(){
const ids = Array.from(
document.getElementsByClassName("selected"), ({ id }) => id)
cast_selected = ids.toString();
task07();}
GM_addStyle (`
#icon{width:25px !important; height:25px !important;background:transparent !important;}
.pmslider {height: `+sliderheight+`px !important;width:100%;border:0px !important;}
#potsslider > img {background:#131313 !important;height:55px !important;width:55px !important;margin:10px !important;border-radius:10px !important;box-shadow: 0px 0px 24px -6px rgba(0,0,0,0.57);-webkit-box-shadow: 0px 0px 24px -6px rgba(0,0,0,0.57);-moz-box-shadow: 0px 0px 24px -6px rgba(0,0,0,0.57);}
#potsslider > p > img {background:#131313 !important;height:55px !important;width:55px !important;margin:10px !important;border-radius:10px !important;box-shadow: 0px 0px 24px -6px rgba(0,0,0,0.57);-webkit-box-shadow: 0px 0px 24px -6px rgba(0,0,0,0.57);-moz-box-shadow: 0px 0px 24px -6px rgba(0,0,0,0.57);}
body > cloudflare-app{display:none !important;}
#sliderload{display:none !important;}
#potsslider > img.selected{border:4px #00CC00 SOLID !important;width:55px !important;height:55px !important;padding:5px !important;}
#potsslider > p > img.selected{border:4px #00CC00 SOLID !important;width:55px !important;height:55px !important;padding:5px !important;}
.btn-primary{margin-left:5px !important;margin-right:5px !important;}
`)
})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})
}
function slider_close(){
GM_addStyle (`.pmslider {height: 0px !important;width:100%;border:0px !important;}body > cloudflare-app{display:revert !important;}`);
document.querySelector("#slider").addEventListener("click", slider_open, false);
document.querySelector("#slider").removeEventListener("click", slider_close, false);
}
GM_addStyle (`
.pmslider {
height: 0px !important;
width:100%;
border:0px !important;
bottom:0px !important;
position:fixed !important;
transition-property: all;
transition-duration: 1s;
background: linear-gradient(97deg, rgba(46,46,46,1) 0%, rgba(124,124,124,1) 92%, rgba(85,85,85,1) 100%);
z-index:1000 !important;
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);
}`);
$("body").append ( `
<div class="pmslider" id="slider"><center>
<div id="potsslider">loading</div>
</div>`);
if (document.URL.indexOf("wilderness") != -1 && error == false) {
document.querySelector("#divWildernessContainer > div.row.mx-3.mt-3").setAttribute("class","wilderness")
GM_addStyle (`
#divWildernessContainer > div.wilderness > div:nth-child(1){display:none !important;}
#divHeader{display:none !important;}
#divWildernessContainer > div.wilderness > div:nth-child(3) > h5{margin-bottom:0.5rem !important;}
#divWildernessContainer > div.wilderness > div:nth-child(2){width:824px !important;}
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
`);
var wild = document.querySelector("#divWildernessContainer > div.wilderness");
var wild_level = document.querySelector("#divHeader > h1").innerHTML
document.querySelector("#divWildernessContainer > div.wilderness > div:nth-child(2) > h3").innerHTML = "YOUR LEVEL: "+wild_level
let wilddiv = document.createElement('div');
wilddiv.innerHTML = `<h5>- Wilderness Auto Attack -</h5>
<center><table id="gotormtab"><tr><td>
<input type="text" placeholder="rage stop" id="wild_ragetouse" class="goto" name="atkn" size="9">
</td><td>
<button id="wilderness" class="btn btn-primary mmplus">ATK <img src=https://studiomoxxi.com/moxximod/bot.png class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Enter the amount of rage you would like to use')" onmouseout="kill()"></button>
</td></tr></table>(will attack until rage stop is met)`
wilddiv.setAttribute("class","col-12 col-lg-6 statbox widget box box-shadow")
wilddiv.setAttribute("style","margin-top:1rem")
insertAfter(wilddiv, wild.lastElementChild);
document.querySelector("#wilderness").addEventListener("click", wilderness, false);
function wilderness(){
ragefloor = parseInt(document.querySelector("#wild_ragetouse").value.replaceAll(",","").replaceAll(" ","").replaceAll(/[^0-9]/g,""))
task05()
}}
if (document.URL.indexOf("dungeons") != -1 && error == false) {
var num_of_token = document.querySelector("#Items").childElementCount
for (let rownum = 1; rownum < (num_of_token+1); rownum++) {
var token_data = document.querySelector("#Items > div:nth-child("+rownum+") > div:nth-child(1) > div.four.columns > h3:nth-child(4)")
token_data.innerHTML = token_data.innerHTML
.replace(`<a href="/world.php?room=26032">Blazing Challenge Master</a>`,`<a href="/world.php?room=26032">Blazing Challenge Master</h3></a><h3>625 tokens ($50.00 USD) per`)
.replace(`<a href="/world.php?room=28892">Ghostly Challenge Master</a>`,`<a href="/world.php?room=28892">Ghostly Challenge Master</h3></a><h3>440 tokens ($35.20 USD) per`)
.replace(`<a href="/world.php?room=26013">Exalted Challenge Master</a>`,`<a href="/world.php?room=26013">Exalted Challenge Master</h3></a><h3>165 tokens ($13.20 USD) per + perfection item`)
.replace(`<a href="/world.php?room=25994">Perfectionist Challenge Master</a>`,`<a href="/world.php?room=25994">Perfectionist Challenge Master</h3></a><h3>165 tokens ($13.20 USD) per`)
.replace(`<a href="/world.php?room=25989">Ultra Challenge Master</a>`,`<a href="/world.php?room=25989">Ultra Challenge Master</h3></a><h3>125 tokens ($10.00 USD) per`)
.replace(`<a href="/world.php?room=25989">Challenge King</a>`,`<a href="/world.php?room=25989">Challenge King</h3></a><h3>90 tokens ($7.20 USD) per`)
}
var num_of_sets = document.querySelector("#SoloSets").childElementCount
for (let rownum = 1; rownum < (num_of_sets+1); rownum++) {
var sets_data = document.querySelector("#SoloSets > div:nth-child("+rownum+") > div:nth-child(1) > div.four.columns > h3:nth-child(4)")
sets_data.innerHTML = sets_data.innerHTML
.replace(`<a href="/world.php?room=37868">Cirrone the Diviner</a>`,`<a href="/world.php?room=37868">Cirrone the Diviner</h3></a><h3>830 points ($18.26 USD) per`)
.replace(`<a href="/world.php?room=28893">Ranger Garza</a>`,`<a href="/world.php?room=28893">Ranger Garza</h3></a><h3>445 points ($9.79 USD) per`)
.replace(`<a href="/world.php?room=27303">Farad, the Thunder Mage</a>`,`<a href=27303"/world.php?room=">Farad, the Thunder Mage</h3></a><h3>275 points ($6.05 USD) per`)
.replace(`<a href="/world.php?room=26487">Profound Warden</a>`,`<a href=26487"/world.php?room=">Profound Warden</h3></a><h3>225 points ($4.95 USD) per`)
}
}
if (document.URL.indexOf("crew_home") != -1 ) {
fetch("myaccount")
.then(res => res.text())
.then((responseText) => {
const doc = new DOMParser().parseFromString(responseText, 'text/html');
var chars_mine = doc.querySelector("#zero-config > tbody").innerHTML.match(/suid=[0-9]+&serverid=[0-9]+"><strong>PLAY!<\/strong>/g).toString().replaceAll(/&serverid=[0-9]+"><strong>PLAY!<\/strong>/g,"").replaceAll(`suid=`,"")
var chars_trusteed = '';
if (doc.querySelector("#content-header-row > div > div > div:nth-child(14) > table > tbody").innerHTML.match(/suid=[0-9]+&serverid=[0-9]+"><strong>PLAY!<\/strong>/g) != null){
chars_trusteed = doc.querySelector("#content-header-row > div > div > div:nth-child(14) > table > tbody").innerHTML.match(/suid=[0-9]+&serverid=[0-9]+"><strong>PLAY!<\/strong>/g).toString().replaceAll(/&serverid=[0-9]+"><strong>PLAY!<\/strong>/g,"").replaceAll(`suid=`,"")}
var chars_all = ((chars_trusteed+","+chars_mine).split(',')).map(Number)
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
.mt-3 {margin-top: 0rem!important;margin-bottom: 1rem !important;}
#content-header-row > div:nth-child(3) > div:nth-child(1){margin-bottom:1rem !important;}
.crewtile{margin:5px !important;width:123px !important;height:123px !important;-moz-box-shadow: 5px 5px 5px #000000;-webkit-box-shadow: 5px 5px 5px #000000;box-shadow: 5px 5px 5px #000000;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}
.checkbox{margin-right:0.5rem !important;}
.crewtilediv{overflow-y: auto;height: 285px;border:2px SOLID;-moz-box-shadow: 5px 5px 5px #000000;-webkit-box-shadow: 5px 5px 5px #000000;box-shadow: 5px 5px 5px #000000;text-align: left !important;}
img.selected{border:4px #00CC00 SOLID !important;padding:5px !important;}
#ch_raid{background-color:#131313 !important;border-color:#131313 !important;opacity:0.5 !important;}
#raidsetup{letter-spacing: 5px;position:fixed;bottom:0;z-index:9999;background:#000000;width:100%;height:40px;display:none;text-align:center;font-size:24px;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);}
`)
var crew_home_members = document.querySelector("#content-header-row > div:nth-child(4) > div > div > div")
var crew_home_log = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2)")
var crew_home_divs = document.querySelector("#content-header-row")
var crew_member_length = document.querySelector("#content-header-row > div:nth-child(4) > div > div > div > table > tbody").rows.length;
let div1 = document.createElement('div');
div1.innerHTML = `<div class="widget-content widget-content-area br-6 pb-0">`+crew_home_members.innerHTML+`</div>`
div1.setAttribute("class","col-12 layout-spacing")
insertAfter(div1, crew_home_divs.lastElementChild);
$("body").append(`<div id="raidsetup">RAID: <b><span id="numberofchars">0</span></b> SELECTED / <b><span id="charsneeded">0</span></b> NEEDED</div>`)
document.querySelector("#content-header-row > div:nth-child(4)").innerHTML = `
<div class="widget-content widget-content-area"><h5>Crew Raid Mobs</h5>(click image to select mob)<p>
<div id="crewtilediv" class="crewtilediv">
<img id="veiled" alt="3" class="crewtile" src="/images/mobs/veiledchest.png" onmouseover="popup(event,'<b>Veiled Locker</b>');" onmouseout="kill();">
<img id="morrik" alt="10" class="crewtile" src="images/mobs/mobi57.jpg" onmouseover="popup(event,'<b>Morrik the Spellcaster</b><br>Drops Skull of Demonology used to upgrade skill crests');" onmouseout="kill();">
<img id="grouz" alt="10" class="crewtile" src="images/mobs/moba56.jpg" onmouseover="popup(event,'<b>Grouz the Darkener</b><br>Drops Skull of Demonology used to upgrade skill crests');" onmouseout="kill();">
<img id="crawling" alt="1" class="crewtile" src="images/mobs/arsetmob1.gif" onmouseover="popup(event,'<b>Crawling Monstrosity</b><br>Drops Trinity Symbol used to upgrade runes');" onmouseout="kill();">
<img id="conductor" alt="30" class="crewtile" src="images/mobs/mobk50.jpg" onmouseover="popup(event,'<b>Conductor of Fire</b><br>Drops Conductor Energy used to upgrade badges');" onmouseout="kill();">
<img id="demonic" alt="30" class="crewtile" src="images/mobs/mobl83.jpg" onmouseover="popup(event,'<b>Demonic Barbarian</b><br>Drops Demonic Armor used to upgrade badges');" onmouseout="kill();">
<img id="elexocutioner" alt="30" class="crewtile" src="images/mobs/moba87.jpg" onmouseover="popup(event,'<b>The Elexocutioner</b><br>Drops Elexocutioner Power Supply used to upgrade badges');" onmouseout="kill();">
<img id="chaosele" alt="5" class="crewtile" src="images/mobs/chaosgolem3.jpg" onmouseover="popup(event,'<b>The Chaotic Elemental</b><br>Drops Arena Teleporter and Minor Chaos Philter');" onmouseout="kill();">
<img id="badge1" alt="10" class="crewtile" src="images/mobs/mobc86.jpg" onmouseover="popup(event,'<b>Sharkrat the Hungry</b><br>Part of Berkaz 2 badge quests');" onmouseout="kill();">
<img id="badge2" alt="10" class="crewtile" src="images/mobs/mobl29.jpg" onmouseover="popup(event,'<b>Vullianne the Necromancer</b><br>Part of Berkaz 2 badge quests');" onmouseout="kill();">
<img id="badge3" alt="10" class="crewtile" src="images/mobs/mobg13.jpg" onmouseover="popup(event,'<b>Zyssir the Dark Enchantress</b><br>Part of Berkaz 2 badge quests');" onmouseout="kill();">
<img id="badge4" alt="10" class="crewtile" src="images/mobs/mobzz49.gif" onmouseover="popup(event,'<b>Cheigon the Ancient Gladiator</b><br>Part of Berkaz 2 badge quests');" onmouseout="kill();">
<img id="badge5" alt="10" class="crewtile" src="images/mobs/mobd23.jpg" onmouseover="popup(event,'<b>Kaggar the Alien Stalker</b><br>Part of Berkaz 2 badge quests');" onmouseout="kill();">
<img id="eth1" alt="5" class="crewtile" src="images/mobs/arraid1.jpg" onmouseover="popup(event,'<b>Ethereal Priest</b><br>Drops quest item used to make Ethereal set items');" onmouseout="kill();">
<img id="eth2" alt="5" class="crewtile" src="images/mobs/arsetraid2.jpg" onmouseover="popup(event,'<b>Ethereal Serpent</b><br>Drops quest item used to make Ethereal set items');" onmouseout="kill();">
<img id="eth3" alt="5" class="crewtile" src="images/mobs/arraid3.jpg" onmouseover="popup(event,'<b>Ethereal Steed</b><br>Drops quest item used to make Ethereal set items');" onmouseout="kill();">
<img id="eth4" alt="5" class="crewtile" src="images/mobs/arraid4.jpg" onmouseover="popup(event,'<b>Ethereal Sorcerer</b><br>Drops quest item used to make Ethereal set items');" onmouseout="kill();">
<img id="eth5" alt="5" class="crewtile" src="images/mobs/arraid5.jpg" onmouseover="popup(event,'<b>Ethereal Doomlord</b><br>Drops quest item used to make Ethereal set items');" onmouseout="kill();">
<img id="novice" alt="5" class="crewtile" src="images/mobs/mobf28.jpg" onmouseover="popup(event,'<b>Novice Allied Protector</b><br>');" onmouseout="kill();">
<img id="great" alt="5" class="crewtile" src="images/mobs/mobb10.jpg" onmouseover="popup(event,'<b>Great Allied Protector</b><br>');" onmouseout="kill();">
<img id="grand" alt="5" class="crewtile" src="images/mobs/mobe57.jpg" onmouseover="popup(event,'<b>Grand Allied Protector</b><br>');" onmouseout="kill();">
<img id="rival1" alt="5" class="crewtile" src="images/mobs/pathraid1.gif" onmouseover="popup(event,'<b>Rank 1 United Rival</b><br>');" onmouseout="kill();">
<img id="rival2" alt="5" class="crewtile" src="images/mobs/pathraid2.gif" onmouseover="popup(event,'<b>Rank 2 United Rival</b><br>');" onmouseout="kill();">
<img id="rival3" alt="5" class="crewtile" src="images/mobs/pathraid3.gif" onmouseover="popup(event,'<b>Rank 3 United Rival</b><br>');" onmouseout="kill();">
<img id="rival4" alt="5" class="crewtile" src="images/mobs/pathraid4.jpg" onmouseover="popup(event,'<b>Rank 4 United Rival</b><br>');" onmouseout="kill();">
<img id="rival5" alt="5" class="crewtile" src="images/mobs/pathraid5.jpg" onmouseover="popup(event,'<b>Rank 5 United Rival</b><br>');" onmouseout="kill();">
<img id="rival6" alt="5" class="crewtile" src="images/mobs/pathraid6.gif" onmouseover="popup(event,'<b>Rank 6 United Rival</b><br>');" onmouseout="kill();">
<img id="rival7" alt="5" class="crewtile" src="images/mobs/pathraid7.jpg" onmouseover="popup(event,'<b>Rank 7 United Rival</b><br>');" onmouseout="kill();">
<img id="rival8" alt="5" class="crewtile" src="images/mobs/pathraid8.jpg" onmouseover="popup(event,'<b>Rank 8 United Rival</b><br>');" onmouseout="kill();">
<img id="rival9" alt="5" class="crewtile" src="images/mobs/pathraid9.gif" onmouseover="popup(event,'<b>Rank 9 United Rival</b><br>');" onmouseout="kill();">
<img id="rival10" alt="5" class="crewtile" src="images/mobs/pathraid10.gif" onmouseover="popup(event,'<b>Rank 10 United Rival</b><br>');" onmouseout="kill();">
<img id="golluk" alt="30" class="crewtile" src="images/mobs/mobb13.jpg" onmouseover="popup(event,'<b>Trial of Power: Golluk</b><br>');" onmouseout="kill();">
</div>
<p style="margin-top:1rem">
<button id='ch_save' class='btn btn-primary'>SAVE GROUP</button> <button id='ch_load' class='btn btn-primary'>LOAD GROUP</button> <button id='ch_raid' class='btn btn-primary'>RAID MOBS<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Raid selected mobs with selected chars<br>Button will turn on when raids are selected with the correct number of chars')" onmouseout="kill()"></button>
</div>`
var raid_selected = '';
$(function () {
$('#crewtilediv').on('click','img',(function() {
GM_addStyle (`#raidsetup{display:revert;}`)
$(this).toggleClass("selected");
var god_mins = $("img.selected").map(function() { return parseInt($(this).attr('alt') )}).get();
god_mins.push(0)
var char_mins = Math.max.apply(null, god_mins)
document.querySelector("#charsneeded").innerHTML = char_mins
if (char_mins > 0 && document.querySelector("#numberofchars").innerHTML >= char_mins){
document.getElementById ("ch_raid").addEventListener("click", ch_raid, false);
GM_addStyle (`#ch_raid {background-color: #1b55e2!important;border-color: #1b55e2;opacity: 1.0 !important;}`)
} else {GM_addStyle (`#ch_raid {background-color: #131313 !important;border-color: #131313 ;opacity: 0.5 !important;}`);document.getElementById ("ch_raid").removeEventListener("click", ch_raid, false)}
}))})
function ch_raid(){
const ids = Array.from(
document.getElementsByClassName("selected"), ({ id }) => id)
raid_selected = ids.toString();
var char_array = []; $("input:checkbox:checked").each(function(){char_array.push($(this).val())})
var raid_chars = char_array.toString().replaceAll("box_","")
raid_go = raid_selected+"|"+raid_chars
task15();
}
var thiscrewid = document.querySelector("body").innerHTML.match(/<a class="dropdown-item" href="\/crew_raidresults\.php\?crewid=([0-9]+)">Raid Results<\/a>/i)[1]
var thisserver = window.location.host.replace(".outwar.com","")
document.getElementById ("ch_save").addEventListener("click", ch_save, false);
function ch_save(){
var char_array = []; $("input:checkbox:checked").each(function(){char_array.push($(this).val());
GM_setValue(thisserver+thiscrewid+"raidgroup",char_array.toString())})
window.location.href = window.location.href}
if (GM_getValue(thisserver+thiscrewid+"raidgroup") != undefined){document.getElementById ("ch_load").addEventListener("click", ch_load, false); var char_group = GM_getValue(thisserver+thiscrewid+"raidgroup").split(",")}
if (GM_getValue(thisserver+thiscrewid+"raidgroup") == undefined){GM_addStyle (`#ch_load{background-color:#131313 !important;border-color:#131313 !important;opacity:0.5 !important;}`)}
function ch_load(){$('#'+char_group.join(', #')).click()}
$("#content-header-row > div:nth-child(6) > div > table > thead > tr").append("<th>RAID GROUP</th>");
for (let rownum = 1; rownum < (crew_member_length+1); rownum++) {
var member_rows = document.querySelector("#content-header-row > div:nth-child(6) > div > table > tbody > tr:nth-child("+rownum+")")
var member_id = parseInt(document.querySelector("#content-header-row > div:nth-child(6) > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(3)").innerHTML.toString().replaceAll(`<a href="profile.php?id=`,"").replaceAll(/">.*<\/a>/g,""))
var member_access = '';
if (chars_all.indexOf(member_id) > -1) {member_access = `<input type="checkbox" class="checkbox" name="checkbox" value="box_`+member_id+`" id="box_`+member_id+`"><span id="span_`+member_id+`">Raid</span>`
} else {member_access = '--'}
let cm1 = document.createElement('td');
cm1.innerHTML = member_access
cm1.setAttribute("ID",member_id)
cm1.setAttribute("style","width:400px !important;")
insertAfter(cm1, member_rows.lastElementChild);
}
$('input[type=checkbox]').on('change', function() {
GM_addStyle (`#raidsetup{display:revert;}`)
var selected_id = ($(this).val()).replace("box_","");
document.querySelector("#numberofchars").innerHTML = document.querySelectorAll('input[type="checkbox"]:checked').length
if (document.querySelector("#charsneeded").innerHTML > 0 && document.querySelectorAll('input[type="checkbox"]:checked').length >= document.querySelector("#charsneeded").innerHTML){
document.getElementById ("ch_raid").addEventListener("click", ch_raid, false);
GM_addStyle (`#ch_raid {background-color: #1b55e2!important;border-color: #1b55e2;opacity: 1.0 !important;}`)
} else {GM_addStyle (`#ch_raid {background-color: #131313 !important;border-color: #131313 ;opacity: 0.5 !important;}`);document.getElementById ("ch_raid").removeEventListener("click", ch_raid, false)}
fetch("profile?suid="+selected_id)
.then(response => response.text())
.then((response) => {
var rage = parseInt(response.match(/<span class="toolbar_rage">(.*)<\/span>/i)[1].replaceAll(",",""))
var circ = '';
if (response.match("images/skills/circumspect.png") != null){circ = ", CHAR IS DCING</font>"}
if (response.match("images/skills/circumspect.png") == null){circ = ""}
if (rage < 500 || circ != ""){
document.querySelector("#box_"+selected_id+"").checked = false
document.querySelector("#span_"+selected_id).setAttribute("style","color:#FF0000 !important;")
}
document.querySelector("#span_"+selected_id+"").innerHTML= "RAGE: "+rage+circ
})
})
})
}
GM_addStyle (`
#menu_custom{position:fixed;bottom:2px;z-index:10000;margin-left:3px;font-size:9px;letter-spacing: 1px;height:30px;}
`)
document.querySelector("#sidebar").innerHTML += `<div id="menu_custom"><a href="privacy"><img src="https://studiomoxxi.com/moxximod/bot.png" class="robot"> CUSTOMIZE MENU</a></div>`
if (document.URL.indexOf("privacy") != -1){
GM_addStyle (`
div.widget{margin-bottom:1rem;margin-right:0.5rem;margin-left:0.5rem;height:275px}
div.widgetinner{height:200px !important;overflow-y: auto;overflow-x: hidden;}
.link-name{width: 200px;height:10px !important;margin-bottom:0.20rem !important; font-size:12px !important;padding: 0.75rem 0.25rem !important;}
.link-url{width: 300px;height:10px !important;margin-bottom:0.20rem !important; font-size:12px !important;padding: 0.75rem 0.25rem !important;margin-right:0.5rem;}
.mm > tbody > tr > td {padding:3px}
.stop{background-color: #131313!important;border-color: #131313!important;opacity:0.5!important;}
`)
document.querySelector("#content").innerHTML = `
<h3>- CUSTOM MENU SETUP -</h3>
<button id='menu_reset' class='btn btn-primary'>RESET TO DEFAULT</button>
<button id='menu_magic' class='btn btn-primary'>UPDATE MENU <img src="https://studiomoxxi.com/moxximod/bot.png" class="robot" onmouseover="statspopup(event,'Customize menu')" onmouseout="kill()"></button>
<button id='menu_cheatsheet' class='btn btn-primary'>CHEATSHEET <img src="https://studiomoxxi.com/moxximod/bot.png" class="robot" onmouseover="statspopup(event,'Send me a cheatsheet of outwar links')" onmouseout="kill()"></button><p>
<div class="row justify-content-center">
<div class="widget">
<h4><a data-toggle="collapse" aria-expanded="false" class="dropdown-toggle collapsed"><i class="fa fa-address-card"></i> MY RGA</h4>
<div class="widgetinner">
<table id="x1" class="mm"><tr><td>NAME</td><td>URL</td></tr>
<tr><td><input maxlength="15" class="form-control link-name" type="1"></td><td><input class="form-control link-url" type="1"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="1"></td><td><input class="form-control link-url" type="1"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="1" type="1"></td><td><input class="form-control link-url" type="1"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="1"></td><td><input class="form-control link-url" type="1"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="1" type="1"></td><td><input class="form-control link-url" type="1"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="1"></td><td><input class="form-control link-url" type="1"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="1"></td><td><input class="form-control link-url" type="1"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="1"></td><td><input class="form-control link-url" type="1"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="1"></td><td><input class="form-control link-url" type="1"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="1"></td><td><input class="form-control link-url" type="1"></td>
</td></tr></table>
</div>
</div>
<div class="widget">
<h4><a data-toggle="collapse" aria-expanded="false" class="dropdown-toggle collapsed"><i class="fas fa-user fa-fw"></i> CHARACTER</h4>
<div class="widgetinner">
<table id="x2" class="mm"><tr><td>NAME</td><td>URL</td></tr>
<tr><td><input maxlength="15" class="form-control link-name" type="2"></td><td><input class="form-control link-url" type="2"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="2"></td><td><input class="form-control link-url" type="2"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="2"></td><td><input class="form-control link-url" type="2"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="2" type="2"></td><td><input class="form-control link-url" type="2"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="2"></td><td><input class="form-control link-url" type="2"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="2"></td><td><input class="form-control link-url" type="2"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="2"></td><td><input class="form-control link-url" type="2"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="2"></td><td><input class="form-control link-url" type="2"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="2"></td><td><input class="form-control link-url" type="2"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="2"></td><td><input class="form-control link-url" type="2"></td>
</td></tr></table>
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="widget">
<h4><a data-toggle="collapse" aria-expanded="false" class="dropdown-toggle collapsed"><i class="fa fa-shopping-cart fa-fw"></i> ECONOMY</h4>
<div class="widgetinner">
<table id="x3" class="mm"><tr><td>NAME</td><td>URL</td></tr>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="3"></td><td><input class="form-control link-url" type="3"></td>
</td></tr></table>
</div>
</div>
<div class="widget">
<h4><a data-toggle="collapse" aria-expanded="false" class="dropdown-toggle collapsed"><i class="fas fa-location-arrow fa-fw"></i> SERVER</h4>
<div class="widgetinner">
<table id="x4" class="mm"><tr><td>NAME</td><td>URL</td></tr>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="4"></td><td><input class="form-control link-url" type="4" type="4"></td>
</td></tr></table>
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="widget">
<h4><a data-toggle="collapse" aria-expanded="false" class="dropdown-toggle collapsed"><i class="fas fa-shield fa-fw"></i> CREW</h4>
<div class="widgetinner">
<table id="x5" class="mm"><tr><td>NAME</td><td>URL</td></tr>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="5"></td><td><input class="form-control link-url" type="5"></td>
</td></tr></table>
</div>
</div>
<div class="widget">
<h4><a data-toggle="collapse" aria-expanded="false" class="dropdown-toggle collapsed"><i class="fas fa-shield-alt fa-fw"></i> PVP</h4>
<div class="widgetinner">
<table id="x6" class="mm"><tr><td>NAME</td><td>URL</td></tr>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="6"></td><td><input class="form-control link-url" type="6"></td>
</td></tr></table>
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="widget">
<h4><a data-toggle="collapse" aria-expanded="false" class="dropdown-toggle collapsed"><i class="fas fa-shopping-bag fa-fw"></i> ITEMS</h4>
<div class="widgetinner">
<table id="x7" class="mm"><tr><td>NAME</td><td>URL</td></tr>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="7"></td><td><input class="form-control link-url" type="7"></td>
</td></tr></table>
</div>
</div>
<div class="widget">
<h4><a data-toggle="collapse" aria-expanded="false" class="dropdown-toggle collapsed"><i class="fas fa-book fa-fw"></i> QUESTS</h4>
<div class="widgetinner">
<table id="x8" class="mm"><tr><td>NAME</td><td>URL</td></tr>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
<tr><td><input maxlength="15" class="form-control link-name" type="8"></td><td><input class="form-control link-url" type="8"></td>
</td></tr></table>
</div>
</div>
</div>
`
if (GM_getValue("menu_1") != undefined) {menu_1 = GM_getValue("menu_1")}
let x1 = menu_1.match(/<li><a href="[^"]*">.*<\/a><\/li>/g)
for (let num = 0; num < (x1.length); num++) {document.querySelector("#x1 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(1) > input").value = x1[num].match(/<li><a href="[^"]*">(.*)<\/a><\/li>/i)[1]}
for (let num = 0; num < (x1.length); num++) {document.querySelector("#x1 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(2) > input").value = x1[num].match(/<li><a href="([^"]*)">.*<\/a><\/li>/i)[1]}
if (GM_getValue("menu_2") != undefined) {menu_2 = GM_getValue("menu_2")}
let x2 = menu_2.match(/<li><a href="[^"]*">.*<\/a><\/li>/g)
for (let num = 0; num < (x2.length); num++) {document.querySelector("#x2 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(1) > input").value = x2[num].match(/<li><a href="[^"]*">(.*)<\/a><\/li>/i)[1]}
for (let num = 0; num < (x2.length); num++) {document.querySelector("#x2 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(2) > input").value = x2[num].match(/<li><a href="([^"]*)">.*<\/a><\/li>/i)[1]}
if (GM_getValue("menu_3") != undefined) {menu_3 = GM_getValue("menu_3")}
let x3 = menu_3.match(/<li><a href="[^"]*">.*<\/a><\/li>/g)
for (let num = 0; num < (x3.length); num++) {document.querySelector("#x3 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(1) > input").value = x3[num].match(/<li><a href="[^"]*">(.*)<\/a><\/li>/i)[1]}
for (let num = 0; num < (x3.length); num++) {document.querySelector("#x3 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(2) > input").value = x3[num].match(/<li><a href="([^"]*)">.*<\/a><\/li>/i)[1]}
if (GM_getValue("menu_4") != undefined) {menu_4 = GM_getValue("menu_4")}
let x4 = menu_4.match(/<li><a href="[^"]*">.*<\/a><\/li>/g)
for (let num = 0; num < (x4.length); num++) {document.querySelector("#x4 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(1) > input").value = x4[num].match(/<li><a href="[^"]*">(.*)<\/a><\/li>/i)[1]}
for (let num = 0; num < (x4.length); num++) {document.querySelector("#x4 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(2) > input").value = x4[num].match(/<li><a href="([^"]*)">.*<\/a><\/li>/i)[1]}
if (GM_getValue("menu_5") != undefined) {menu_5 = GM_getValue("menu_5")}
let x5 = menu_5.match(/<li><a href="[^"]*">.*<\/a><\/li>/g)
for (let num = 0; num < (x5.length); num++) {document.querySelector("#x5 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(1) > input").value = x5[num].match(/<li><a href="[^"]*">(.*)<\/a><\/li>/i)[1]}
for (let num = 0; num < (x5.length); num++) {document.querySelector("#x5 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(2) > input").value = x5[num].match(/<li><a href="([^"]*)">.*<\/a><\/li>/i)[1]}
if (GM_getValue("menu_6") != undefined) {menu_6 = GM_getValue("menu_6")}
let x6 = menu_6.match(/<li><a href="[^"]*">.*<\/a><\/li>/g)
for (let num = 0; num < (x6.length); num++) {document.querySelector("#x6 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(1) > input").value = x6[num].match(/<li><a href="[^"]*">(.*)<\/a><\/li>/i)[1]}
for (let num = 0; num < (x6.length); num++) {document.querySelector("#x6 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(2) > input").value = x6[num].match(/<li><a href="([^"]*)">.*<\/a><\/li>/i)[1]}
if (GM_getValue("menu_7") != undefined) {menu_7 = GM_getValue("menu_7")}
let x7 = menu_7.match(/<li><a href="[^"]*">.*<\/a><\/li>/g)
for (let num = 0; num < (x7.length); num++) {document.querySelector("#x7 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(1) > input").value = x7[num].match(/<li><a href="[^"]*">(.*)<\/a><\/li>/i)[1]}
for (let num = 0; num < (x7.length); num++) {document.querySelector("#x7 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(2) > input").value = x7[num].match(/<li><a href="([^"]*)">.*<\/a><\/li>/i)[1]}
if (GM_getValue("menu_8") != undefined) {menu_8 = GM_getValue("menu_8")}
let x8 = menu_8.match(/<li><a href="[^"]*">.*<\/a><\/li>/g)
for (let num = 0; num < (x8.length); num++) {document.querySelector("#x8 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(1) > input").value = x8[num].match(/<li><a href="[^"]*">(.*)<\/a><\/li>/i)[1]}
for (let num = 0; num < (x8.length); num++) {document.querySelector("#x8 > tbody > tr:nth-child("+(num+2)+") > td:nth-child(2) > input").value = x8[num].match(/<li><a href="([^"]*)">.*<\/a><\/li>/i)[1]}
document.getElementById ("menu_reset").addEventListener("click", menu_reset, false);
function menu_reset(){
GM.deleteValue("menu_1")
GM.deleteValue("menu_2")
GM.deleteValue("menu_3")
GM.deleteValue("menu_4")
GM.deleteValue("menu_5")
GM.deleteValue("menu_6")
GM.deleteValue("menu_7")
GM.deleteValue("menu_8")
window.location.href = "privacy"
}
var menu_post = '';
document.getElementById ("menu_magic").addEventListener("click", menu_magic, false);
function menu_magic(){
var menu1 = "x1|"+$("input[type='1']").map(function () { return $(this).val().replaceAll(",","").replaceAll("|",""); }).get().filter(Boolean).toString()+"|"
var menu2 = "x2|"+$("input[type='2']").map(function () { return $(this).val().replaceAll(",","").replaceAll("|",""); }).get().filter(Boolean).toString()+"|"
var menu3 = "x3|"+$("input[type='3']").map(function () { return $(this).val().replaceAll(",","").replaceAll("|",""); }).get().filter(Boolean).toString()+"|"
var menu4 = "x4|"+$("input[type='4']").map(function () { return $(this).val().replaceAll(",","").replaceAll("|",""); }).get().filter(Boolean).toString()+"|"
var menu5 = "x5|"+$("input[type='5']").map(function () { return $(this).val().replaceAll(",","").replaceAll("|",""); }).get().filter(Boolean).toString()+"|"
var menu6 = "x6|"+$("input[type='6']").map(function () { return $(this).val().replaceAll(",","").replaceAll("|",""); }).get().filter(Boolean).toString()+"|"
var menu7 = "x7|"+$("input[type='7']").map(function () { return $(this).val().replaceAll(",","").replaceAll("|",""); }).get().filter(Boolean).toString()+"|"
var menu8 = "x8|"+$("input[type='8']").map(function () { return $(this).val().replaceAll(",","").replaceAll("|",""); }).get().filter(Boolean).toString()+"|"
menu_post = menu1+menu2+menu3+menu4+menu5+menu6+menu7+menu8
task16()
}
document.getElementById ("menu_cheatsheet").addEventListener("click", cheatsheet, false);
function cheatsheet(){
document.querySelector("#menu_cheatsheet").setAttribute("class","btn btn-primary stop");
document.getElementById ("menu_cheatsheet").removeEventListener("click", cheatsheet, false); task17()}
}
if (document.URL.indexOf("questlog") != -1) {
GM_addStyle (`
.widget{margin-bottom:0.75rem !important;margin-top:0.75rem !important;}
`)
var ql_len = document.querySelector("#content-header-row > div:nth-child(1) > div:nth-child(2)").innerHTML.match(/<div class="divQuest text-left statbox widget box box-shadow/g).length
for (let ql_num = 1; ql_num < (ql_len+1); ql_num++) {
var ql_mob = document.querySelector("#content-header-row > div:nth-child(1) > div:nth-child(2) > div:nth-child("+ql_num+")").innerHTML.match(/<span style="color:white;padding-left:70px;">(.*?)<\/span>/i)[1]
document.querySelector("#content-header-row > div:nth-child(1) > div:nth-child(2) > div:nth-child("+ql_num+")").innerHTML = document.querySelector("#content-header-row > div:nth-child(1) > div:nth-child(2) > div:nth-child("+ql_num+")").innerHTML
.replace(`Hide from Quest Helper</a>`,`Hide from Quest Helper</a><p style="margin-top:0.5rem"><button id="`+ql_mob+`" class="btn btn-primary grab">Move to `+ql_mob+`<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Move to `+ql_mob+`: Move time may take a few<br>seconds depending on how far away you are going')" onmouseout="kill()"></button>`)
}
$('.grab').click(function() {
var mobname = new RegExp(`"Name": "`+this.id+`",[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r](.*)`,"i")
fetch('https://studiomoxxi.com/moxximod/iowh/Mobs.txt')
.then(response => response.text())
.then((response) => {
var roomnumber = '';
if (response.match(mobname) != null){
gotormnum = response.match(mobname)[1].replaceAll(",","").replaceAll(" ","");
task08();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
if (response.match(mobname) == null){alert("Mob not found: Please report in Discord so it can be added")}
})
})
}
var task = "AuthCheck|"+rganame;
var misc = '';
function task01(){task = "AuthCheck|"+rganame; server_go();}
function task02(){task = "Atk10x|"+rganame+"|"+server+"|"+charid+"|"+atk10x_charid; server_go();}
function task03(){task = "AtkCOP|"+rganame+"|"+server+"|"+charid+"|"+brawlcop_string; server_go();}
function task04(){task = "MultiMobAtk|"+rganame+"|"+server+"|"+charid+"|"+sendmobattacks+"|"+sendmobid; server_go();}
function task05(){task = "Wilderness|"+rganame+"|"+server+"|"+charid+"|"+ragefloor; server_go();}
function task06(){task = "PvpCrew|"+rganame+"|"+server+"|"+charid+"|"+cid; server_go();}
function task07(){task = "Cast|"+rganame+"|"+server+"|"+charid+"|"+cast_selected; server_go();}
function task08(){task = "GoToRm|"+rganame+"|"+server+"|"+charid+"|"+gotormnum; server_go();}
function task09(){task = "ChaosNeeds|"+rganame+"|"+server; server_go();}
function task10(){task = "BadgeNeeds|"+rganame+"|"+server; server_go();}
function task11(){task = "Vision|"+rganame+"|"+server+"|"+sessids; server_go();}
function task12(){task = "RoomAtk|"+rganame+"|"+server+"|"+charid; server_go();}
function task13(){task = "NewMobAtk|"+rganame+"|"+server+"|"+mv_mobs_post; server_go();}
function task14(){task = "LingNeeds|"+rganame+"|"+server; server_go();}
function task15(){task = "RaidMob|"+rganame+"|"+server+"|"+raid_go; server_go();}
function task16(){task = "Menu|"+rganame+"|"+menu_post; menu_go();}
function task17(){task = "TextFile|"+rganame+"|menucheatsheet"; server_go();}
function task18(){task = "TextFile|"+rganame+"|authhelp"; server_go();}
function task19(){task = "RuneNeeds|"+rganame+"|"+server; server_go();}
function task20(){task = "Equip|"+rganame+"|"+server+"|"+mv_items_go; server_go();}
function task21(){task = "Vault|"+rganame+"|"+server+"|"+mv_items_go; server_go();}
function task22(){task = "ChaosTele|"+rganame+"|"+server; server_go();}
function task23(){task = "Analyze|"+analyze; rga_anal();}
function task24(){task = "Activate|"+rganame+"|"+server+"|"+mv_items_go; server_go();}
function task25(){task = "MultiMove|"+gotormnum; server_go();}
function task26(){task = "EnhanceNeeds|"+rganame+"|"+server; server_go();}
function task27(){task = "CustomRGA|"+rganame+"|"+server+"|"+customrga; custom_go();}
function task28(){task = "CustomWorld|"+rganame+"|"+customworld; custom_go();}
function task29(){task = "CustomTheme|"+rganame+"|"+customtheme; custom_go();}
function task30(){task = "ExportRGA|"+server+"|"+exportdata; export_go();}
var sess_auth = GM_getValue("bauth_rga")
if (sess_auth != rganame) {window.onload = server_go;}
if (sess_auth == undefined) {window.onload = server_go;}
function server_go(){
GM_setValue("bauth_rga", rganame);
GM_xmlhttpRequest({
method: 'POST',
url: 'http://boss.outwar.link:8001/',
data: task,
headers: {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},
onload: function(r){
GM_setValue("bauth_r", r.response);
sub();
}})}
function export_go(){
GM_xmlhttpRequest({
method: 'POST',
url: 'http://boss.outwar.link:8001/',
data: task,
headers: {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},
onload: function(r){
document.querySelector("#exlink").value = r.response;
}})}
function rga_anal(){
GM_xmlhttpRequest({
method: 'POST',
url: 'http://boss.outwar.link:8001/',
data: task,
headers: {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},
onload: function(r){
document.querySelector("#analyzer > p:nth-child(1)").outerHTML = ""
document.querySelector("#anal_id").outerHTML = r.response.replace(`<td>AVERAGES`,`</tr></table><table id="anal_avg"><tr><td>AVERAGES`)
document.querySelector("#analyzer > p:nth-child(1) > table").setAttribute("id","anal_table")
GM_addStyle (`
#anal_table{margin:20px;background:#000000;margin-left: auto;margin-right: auto;}
#anal_table > tbody > tr > td {padding:10px;border:1px SOLID #2E3A3D;color:#FFFFFF}
#anal_table > thead > tr > th {padding:10px;border:1px SOLID #2E3A3D;color:#FFFFFF}
#anal_avg{margin:20px;background:#000000;margin-left: auto;margin-right: auto;}
#anal_avg > tbody > tr > td {padding:10px;border:1px SOLID #2E3A3D;color:#FFFFFF}
#anal_avg > thead > tr > th {padding:10px;border:1px SOLID #2E3A3D;color:#FFFFFF}
#anal_avg > tbody > tr:nth-child(1){font-weight: 700;}
#analyzer{overflow: auto !important;}
`);
}})}
function menu_go(){
GM_setValue("bauth_rga", rganame);
GM_xmlhttpRequest({
method: 'POST',
url: 'http://boss.outwar.link:8001/',
data: task,
headers: {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},
onload: function(r){
var menu = r.response
GM_setValue("menu_1",menu.match(/x1\|((.|\n)*)\|x2\|/i)[1])
GM_setValue("menu_2",menu.match(/x2\|((.|\n)*)\|x3\|/i)[1])
GM_setValue("menu_3",menu.match(/x3\|((.|\n)*)\|x4\|/i)[1])
GM_setValue("menu_4",menu.match(/x4\|((.|\n)*)\|x5\|/i)[1])
GM_setValue("menu_5",menu.match(/x5\|((.|\n)*)\|x6\|/i)[1])
GM_setValue("menu_6",menu.match(/x6\|((.|\n)*)\|x7\|/i)[1])
GM_setValue("menu_7",menu.match(/x7\|((.|\n)*)\|x8\|/i)[1])
GM_setValue("menu_8",menu.match(/x8\|((.|\n)*)\|[\n\r]\|/i)[1])
window.location.href = "privacy"
}})}
function custom_go(){
GM_setValue("bauth_rga", rganame);
GM_xmlhttpRequest({
method: 'POST',
url: 'http://boss.outwar.link:8001/',
data: task,
headers: {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},
onload: function(r){
var res = r.response
if (res.match("CustomTheme") != null){
if (res.match(/wallurl\|(.*?)\|/i)[1] != ""){GM_setValue("wallpaper",res.match(/wallurl\|(.*?)\|/i)[1])}
if (res.match(/menucolor\|(.*?)\|/i)[1] != ""){GM_setValue("hex_menu",res.match(/menucolor\|(.*?)\|/i)[1])}
if (res.match(/menutext\|(.*?)\|/i)[1] != ""){GM_setValue("hex_menutext",res.match(/menutext\|(.*?)\|/i)[1])}
if (res.match(/toolcolor\|(.*?)\|/i)[1] != ""){GM_setValue("hex_tool",res.match(/toolcolor\|(.*?)\|/i)[1])}
if (res.match(/contentcolor\|(.*?)\|/i)[1] != ""){GM_setValue("hex_content",res.match(/contentcolor\|(.*?)\|/i)[1])}
if (res.match(/tablecolor\|(.*?)\|/i)[1] != ""){GM_setValue("hex_table",res.match(/tablecolor\|(.*?)\|/i)[1])}
if (res.match(/slidecolor\|(.*?)\|/i)[1] != ""){GM_setValue("hex_slide",res.match(/slidecolor\|(.*?)\|/i)[1])}
if (res.match(/trackcolor\|(.*?)\|/i)[1] != ""){GM_setValue("hex_track",res.match(/trackcolor\|(.*?)\|/i)[1])}
if (res.match(/textcolor\|(.*?)\|/i)[1] != ""){GM_setValue("hex_text",res.match(/textcolor\|(.*?)\|/i)[1])}
if (res.match(/linkcolor\|(.*?)\|/i)[1] != ""){GM_setValue("hex_link",res.match(/linkcolor\|(.*?)\|/i)[1])}
if (res.match(/linkhover\|(.*?)\|/i)[1] != ""){GM_setValue("hex_linkhover",res.match(/linkhover\|(.*?)\|/i)[1])}
if (res.match(/boxcolor\|[A-Za-z0-9]+/i) != null){GM_setValue("hex_box",res.match(/boxcolor\|([A-Za-z0-9]+)/i)[1])}
mmPref()
}
if (res.match("CustomWorld") != null){
if (res.match(/fasttravelname\|.*?\|/i) != "fasttravelname||" && res.match(/fasttravelroomnumber\|.*?\|/i) != "fasttravelroomnumber||"){GM_setValue("mydestinationname",res.match(/fasttravelname\|(.*?)\|/i)[1]);GM_setValue("mydestination",res.match(/fasttravelroomnumber\|(.*?)\|/i)[1])}
if (res.match(/playerindicator\|https:\/\/studiomoxxi\.com\/moxximod\/plus_yah\/YAH/i) != null){GM_setValue("playerindicator",res.match(/playerindicator\|(.*)/i)[1])}
}
if (res.match("option value") != null){
GM_setValue("sessioniddropdown",res)
}
sub();
$( "#rga_update_load" ).remove();
}
})}
if (document.URL.indexOf("raffle") != -1 && error == false) {
GM_addStyle (`
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
div.widget{margin-top:1rem}
#content > div.layout-px-spacing > div > p > input{margin-right:0.5rem}
`);
document.querySelector("#content > div.layout-px-spacing").innerHTML = `
<div class="widget">
<h3>MOXXIVISION+</h3>
<font color=#FF0000>this page is a work in progress and not currently function</font>
</div>
<div class="widget">
RGA REPORT: Enter session IDs seperated by commas or paste session list from OWH to generate a moxxivision+ page and send it to you on discord<p style="margin-top:1rem !important;">
<textarea name="mmplus_ids" id="mmplus_ids" class="mmplus_ids" cols="119" rows="10"></textarea><p style="margin-top:1rem !important;">
<span id="count"></span><p style="margin-top:1rem !important;">
<button style="display:none" class="btn btn-primary" id="mmplus_submit">SUBMIT<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Generate MoxxiVision+ page')" onmouseout="kill()"></button>
coming soon</div>
<div class="widget">
ITEM SEARCH: Enter the full name of an item to search for it<p style="margin-top:1rem !important;"><p style="margin-top:1rem !important;">
<textarea name="mmplus_ids" id="mmplus_ids" class="mmplus_ids" cols="80" rows="1"></textarea><p style="margin-top:1rem !important;"><p style="margin-top:1rem !important;">
<input type="checkbox" class="checkbox" name="item_allrga">Search all saved RGAs
</div>
`
var mvp_error = "<font color=#FF0000>ERROR: SESSIONS ARE NOT READABLE</font>"
$("#mmplus_ids").keyup(function(){
if ($(this).val().match(":") != null){
$("#mmplus_ids").val(function(i, v){
return v.replaceAll(/[A-Za-z0-9]+:/g,"").replaceAll("\n",",").replaceAll(" ","")})};
var count = $(this).val().replaceAll(",","").length/32;
var commas = ($(this).val().match(/,/g)||[]).length;
var spaces = ($(this).val().match(/ /g)||[]).length;
$("#count").text(count+" sessions found");
if(count!=commas+1 || spaces >= 1){
document.querySelector("#count").innerHTML = mvp_error
}
});
document.getElementById ("mmplus_submit").addEventListener("click", mmplus_submit, false);
var sessids = '';
function mmplus_submit(){
sessids = document.querySelector("#mmplus_ids").value;
if (document.querySelector("#count").innerHTML.match(/[0-9]+ sessions found/i) != null){task11()}
}}
if (document.URL.indexOf("treasury") != -1 ) {
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}`);
}
if (document.URL.indexOf("pointtransfer") != -1 ) {
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}`);
}
if (document.URL.indexOf("pointtransfer") != -1 ) {
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}`);
}
if (document.URL.indexOf("gladiator") != -1 ) {
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}`);
}
if (document.URL.indexOf("myaccount") != -1) {
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
#content-header-row > div > div > a:nth-child(3){display:none}
#content-header-row > div > div > a.btn.btn-success.mb-2.mr-2.float-right{display:none}
#content-header-row > div > div > a.btn.btn-warning.mb-2.mr-2.float-right{display:none}
#content-header-row > div > div > hr{display:none}
.nav-tabs {border-bottom:0px SOLID #FFFFFF !important;}
`);
var ul_bottom_border = document.querySelector("#content-header-row > style:nth-child(1)")
ul_bottom_border.innerHTML = ul_bottom_border.innerHTML.replace(`#rga_ul.nav-tabs`,"")
var serverlink = document.querySelector("#content-header-row > div > div > a:nth-child(3)").outerHTML.match(/<a href="(myaccount\.php\?ac_serverid=[0-9]+)">/i)[1]
var servertext = document.querySelector("#content-header-row > div > div > a:nth-child(3)").outerHTML.match(/<img alt="([^"]*)"/i)[1]
document.querySelector("#rga_ul").innerHTML = `
<button class="btn btn-home-tools btn-mm" id="" onclick="location.href='`+serverlink+`'">`+servertext+`</button>
<button class="btn btn-home-tools btn-mm" id="" onclick="location.href='myaccount'">CHARACTERS</button>
<button class="btn btn-home-tools btn-mm" id="" onclick="location.href='accountinfo'">ACCOUNT</button>
<button class="btn btn-home-tools btn-mm" id="" onclick="location.href='support'">SUPPORT</button>
<button class="btn btn-home-tools btn-mm" id="" onclick="location.href='editcharacters.php?page=3'">EDIT CHARACTERS</button>
<button class="btn btn-home-tools btn-mm" id="" onclick="location.href='editcharacters'">CREATE CHARACTER</button>
`+MMbuttons
buttons();
}
if (document.URL.indexOf("editcharacters.php?page=3") != -1 ) {
}
if (document.URL.indexOf("joinraid") != -1 ) {
GM_addStyle (`
#content-header-row > div.skinborder.w-100.ml-0.mr-0.ml-lg-3.mr-lg-3 > div > div:nth-child(1) > form{display:inline-block;}
#minlaunch_div{z-index:9999;position:fixed;top:25%;width:30%;left:35%;background:#000000;height:30%}
#minlaunch_screen{position:fixed;top:0;left:0;height:100%;width:100%;z-index:99999;background: rgb(60,56,60,0.75)}
#minlaunch_div{position:fixed;top:10%;height:500px;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:25px;}
img.raidImg{border-radius:50px;border: 5px solid white;animation: border-pulsate 1.875s infinite;} @keyframes border-pulsate {0%{ border-color: rgba(255, 255, 255, 0.5);} 50% {border-color: rgba(255, 255, 255, 0);} 100%{border-color: rgba(255, 255, 255, 0.5);}}
`);
var raidImg = document.querySelector("#content-header-row > style:nth-child(1)").innerHTML.match(/background-image: url\('([^']*)'\);/i)[1]
var minimum = parseInt(document.querySelector("#content-header-row > h5").innerHTML.match(/Minimum: ([0-9]+)/i)[1])
var raidID = window.location.href.match(/raidid=([0-9]+)/i)[1]
var raidName = document.querySelector("#content-header-row > div.skinborder.w-100.ml-0.mr-0.ml-lg-3.mr-lg-3 > div > div:nth-child(1) > h3").innerHTML.replace("Join Raid: ","")
if (document.querySelector("#content-header-row > div.skinborder.w-100.ml-0.mr-0.ml-lg-3.mr-lg-3 > div > div:nth-child(1) > form > input.btn.btn-primary") != null){
var rButtons = document.querySelector("#content-header-row > div.skinborder.w-100.ml-0.mr-0.ml-lg-3.mr-lg-3 > div > div:nth-child(1) > form")
rButtons.outerHTML = rButtons.outerHTML + `
<input type="submit" id="minlaunch" class="btn btn-primary" value="LAUNCH AT `+minimum+`">
`
document.getElementById ("minlaunch").addEventListener("click", minlaunch, false);
}
function minlaunch(){
$("body").append (`<div id="minlaunch_screen"><div id="minlaunch_div"><center>
<img src="`+raidImg+`" class="raidImg"><p style="margin-top:1rem">
<h5>`+raidName+`</h5><p>
<h5>Auto-launch at `+minimum+`</h5><p>
<h5><span id="count_span"></span> members in raid</h5><p style="margin-top:1rem">
<form action="world"><input type="submit" class="btn btn-primary" value="CANCEL"></form>
</div></div>`)
const interval = setInterval(function() {
members();
}, 500)}
function members (divid) {
fetch('raidmembers.php', {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({'raidid': raidID})})
.then(res => res.text())
.then(res => {
var count = res.match(/"id":"[0-9]+"/g).length
document.querySelector("#count_span").innerHTML = count
if (count == minimum){
if (document.querySelector("#content-header-row > div.skinborder.w-100.ml-0.mr-0.ml-lg-3.mr-lg-3 > div > div:nth-child(1) > form > input.btn.btn-primary") != null){
document.querySelector("#content-header-row > div.skinborder.w-100.ml-0.mr-0.ml-lg-3.mr-lg-3 > div > div:nth-child(1) > form > input.btn.btn-primary").click();}
}
})
}
}
if (document.URL.indexOf("cast_skills") != -1 ) {
GM_addStyle (`
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
#infocell{background:transparent !important;-webkit-box-shadow: 0 0px 0px 0 rgba(0,0,0,.75),0 0px 0px 0 rgba(0,0,0,.75),0 0px 0px 0px rgba(0,0,0,.75);}
#basic > div.widget-content.widget-content-area{background:transparent !important;-webkit-box-shadow: 0 0px 0px 0 rgba(0,0,0,.75),0 0px 0px 0 rgba(0,0,0,.75),0 0px 0px 0px rgba(0,0,0,.75);}
#basic > div.widget-content.widget-content-area > div:nth-child(1) > div:nth-child(2) > div,#basic > div.widget-content.widget-content-area > div:nth-child(1) > div:nth-child(1) > div{background:transparent !important;}
`);
}
if (document.URL.indexOf("crew_raidresults") != -1 ) {
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}`);
}
if (document.URL.indexOf("news") != -1 ) {
GM_addStyle (`
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
#content-header-row > div > div > div.widget-content.widget-content-area.newstext{background:transparent !important;-webkit-box-shadow: 0 0px 0px 0 rgba(0,0,0,.75),0 0px 0px 0 rgba(0,0,0,.75),0 0px 0px 0px rgba(0,0,0,.75);}
`);
}
if (document.URL.indexOf("security_prompt") != -1 ) {
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}`);
}
if (document.URL.indexOf("plrattack") != -1 ) {
GM_addStyle (`#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}`);
}
if (document.URL.indexOf("attacklog") != -1 ) {
GM_addStyle (`
#content > div.layout-px-spacing{background:transparent !important;box-shadow: 0px 0px 0px #000000,-0px -0px 0px #000000 !important;}
#content-header-row > div.table-responsive{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);}
.mb-4{margin-bottom: 0rem!important;}
`)}
if (document.URL.indexOf("playersearch") != -1 ) {
GM_addStyle (`#content-header-row > center{margin-top:1rem !important;}`);
}
if (document.URL.indexOf("treasury") != -1 && (document.URL.indexOf("treasury.php?type=vision") == -1)) {
GM_addStyle (`#content-header-row > center{margin-top:1rem !important;}`);
}
if (document.URL.indexOf("treasury.php?type=vision") == -1 && error == false) {
if (document.URL.indexOf("world?go=aezel") != -1 && error == false) {aezel_button()}
document.querySelector("#fastslide").addEventListener("click", fastslide_open, false);
function fastslide_open(){
GM_addStyle (`
.ftslider {height: 400px !important;width:230px !important;border:0px !important;left:187px !important;top:75px !important;opacity:100% !important;}
.sidebar-wrapper{width:180px !important;}
#destination{background:#0E1726;border-radius:5px !important;margin-bottom:3px !important;}
#destination:hover{background:#3b3f5c;}
#mydestination{background:#230e26;border-radius:5px !important;margin-bottom:3px !important;}
#mydestination:hover{background:#5c3b5c;}
img.destination-img{border:0px !important;}
`);
document.querySelector("#locker_button").addEventListener("click", locker_button, false);
document.querySelector("#veldara_button").addEventListener("click", veldara_button, false);
document.querySelector("#kix_button").addEventListener("click", kix_button, false);
document.querySelector("#astral_button").addEventListener("click", astral_button, false);
document.querySelector("#plane_button").addEventListener("click", plane_button, false);
document.querySelector("#underground_button").addEventListener("click", underground_button, false);
document.querySelector("#fastslide").addEventListener("click", fastslide_close, false);
document.querySelector("#fastslide").removeEventListener("click", fastslide_open, false);
}
GM_addStyle (`
.ftslider {
overflow: auto;
height: 0px !important;
color:#FFFFFF !important;
padding:10px !important;
opacity:0% !important;
width: 0px !important;
border:0px !important;
top:450px !important;
left:20px !important;
position:fixed !important;
transition-property: all;
transition-duration: 1s;
font-size:10px !important;
background: #1B2E4B;
z-index:0 !important;
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);
}`);
$("body").append ( `
<div class="ftslider" id="slider2">
<div id="mydestination"></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="aezel_button"><img class="destination-img" src="images/mobs/mobl7.jpg">Aezel the Garden Manic<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot_small" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Premium location')" onmouseout="kill()"></a></a></div>
<div id="destination"><a href="world.php?room=26137" class="travel"><img class="destination-img" src="images/items/saveitem2.jpg">ASTRAL RIFT</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="astral_button"><img class="destination-img" src="images/items/astralteleporter.png">ASTRAL RUINS</a></div>
<div id="destination"><a href="world.php?room=25989" class="travel"><img class="destination-img" src="images/rooms/tile_chaltoken.jpg">CHALLENGE ARENA</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="golem_button"><img class="destination-img" src="images/mobs/chaosgolem4.jpg">CHAOS GOLEMS<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot_small" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Premium location')" onmouseout="kill()"></a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="sanctum_button"><img class="destination-img" src="images/rooms/tile_badge.jpg">CITY SANCTUM: WADE<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot_small" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Premium location')" onmouseout="kill()"></a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="hall_button"><img class="destination-img" src="images/rooms/tile_collections.jpg">COLLECTIONS HALL<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot_small" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Premium location')" onmouseout="kill()"></a></div>
<div id="destination"><a href="world.php?room=24284" class="travel"><img class="destination-img" src="images/rooms/storeroom38.jpg">DEATHBAT GRAVEYARD</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="overlord_button"><img class="destination-img" src="images/mobs/runenpc4.jpg">ELEMENTAL OVERLORD<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot_small" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Premium location')" onmouseout="kill()"></a></div>
<div id="destination"><a href="world.php?room=4249" class="travel"><img class="destination-img" src="images/eob/Eob13.jpg">EYES OF BURN SANDS</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="arena_button"><img class="destination-img" src="images/rooms/tile_glad1.png">GLADIATOR ARENA<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot_small" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Premium location')" onmouseout="kill()"></a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="infinite_button"><img class="destination-img" src="images/rooms/tile_infinity.png">INFINITE TOWER<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot_small" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Premium location')" onmouseout="kill()"></a></div>
<div id="destination"><a href="world.php?room=11" class="travel"><img class="destination-img" src="images/4way.jpg">INTERSECTION ROOM 11</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="kix_button"><img class="destination-img" src="images/items/meter.jpg">KIX WOODS</a></div>
<div id="destination"><a href="world.php?room=23311" class="travel"><img class="destination-img" src="images/rooms/naturecave1.jpg">MOUNTAIN CAVE</a></div>
<div id="destination"><a href="world.php?room=111" class="travel"><img class="destination-img" src="images/rallisdocks.jpg">PIER 2 RALLIS</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="plane_button"><img class="destination-img" src="images/items/PlanesTele.jpg">PLANE OF DARKNESS</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="prison_button"><img class="destination-img" src="images/rooms/DenTile1.jpg">PRISON: CRESTS<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot_small" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Premium location')" onmouseout="kill()"></a></div>
<div id="destination"><a href="world.php?room=23471" class="travel"><img class="destination-img" src="images/rooms/pristinedepths.jpg">PRISTINE DEPTHS</a></div>
<div id="destination"><a href="world.php?room=6640" class="travel"><img class="destination-img" src="images/enviro_city.jpg">SCIENTIFIC DISTRICT</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="underground_button"><img class="destination-img" src="images/items/Portable-Teleporter.jpg">UNDERGROUND CAVERN</a></div>
<div id="destination"><a href="world.php?room=17321" class="travel"><img class="destination-img" src="images/rooms/undergroundqsec.jpg">Q-SEC BASE</a></div>
<div id="destination"><a href="world.php?room=10697" class="travel"><img class="destination-img" src="images/rooms/valleydeath.jpg">VALLEY OF DEATH</a></div>
<div id="destination"><a href="world.php?room=42550" class="travel"><img class="destination-img" src="images/rooms/tile_vault.png">VAULT OF MADNESS</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="locker_button"><img class="destination-img" src="images/items/veiledtp.png">VEILED PASSAGE</a></div>
<div id="destination"><a href="javascript:void(0);" class="travel" id="veldara_button"><img class="destination-img" src="images/items/veldarateleporter.jpg">VELDARA GARRISON</a></div>
<div id="destination"><a href="wilderness" class="travel"><img class="destination-img" src="images/event_military5.jpg">WILDERNESS</a></div>
<span id="no_custom_set"></span>
</div>`);
var custom_num = GM_getValue("mydestination")
var custom_name = GM_getValue("mydestinationname")
if (custom_num != undefined && custom_name != undefined){
document.querySelector("#mydestination").innerHTML = `<a href="javascript:void(0);" class="travel" id="custom_button"><img class="destination-img" src="https://studiomoxxi.com/moxximod/logo_plus.png">`+custom_name+`<img src="https://studiomoxxi.com/moxximod/bot.png" class="robot_small" onmouseover="popup(event,'<b><font color=#f441be>MoxxiMod+</font></b><br>Premium location')" onmouseout="kill()"></a>`
document.getElementById("custom_button").addEventListener("click", custom_button, false);}
function custom_button (zEvent) {
gotormnum = custom_num;
task08();
fastslide_close();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
if (custom_num == undefined || custom_name == undefined){document.querySelector("#no_custom_set").innerHTML = `<center>MoxxiMod+ subscribers can set a custom fast travel destination in <a href="user_preferences">preferences</a>`}
document.getElementById("aezel_button").addEventListener("click", aezel_button, false);
function aezel_button (zEvent) {
gotormnum = 36195;
task08();
fastslide_close();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
document.getElementById("hall_button").addEventListener("click", hall_button, false);
function hall_button (zEvent) {
gotormnum = 26555;
task08();
fastslide_close();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
document.getElementById("golem_button").addEventListener("click", golem_button, false);
function golem_button (zEvent) {
gotormnum = 32877;
task08();
fastslide_close();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
document.getElementById("infinite_button").addEventListener("click", infinite_button, false);
function infinite_button (zEvent) {
gotormnum = 28040;
task08();
fastslide_close();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
document.getElementById("sanctum_button").addEventListener("click", sanctum_button, false);
function sanctum_button (zEvent) {
gotormnum = 27496;
task08();
fastslide_close();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
document.getElementById("prison_button").addEventListener("click", prison_button, false);
function prison_button (zEvent) {
gotormnum = 23332;
task08();
fastslide_close();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
document.getElementById("overlord_button").addEventListener("click", overlord_button, false);
function overlord_button (zEvent) {
gotormnum = 26201;
task08();
fastslide_close();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
document.getElementById("arena_button").addEventListener("click", arena_button, false);
function arena_button (zEvent) {
gotormnum = 28031;
task08();
fastslide_close();
GM_addStyle (`#sliderload{display:revert !important;position:fixed !important;left:50% !important;top:50% !important;margin-top:-110px !important;margin-left: -110px !important;background:#FF0000 !important;z-index:10000 !important;}`)
$("body").append (`<div id="sliderload"><img src=https://media.tenor.com/UnFx-k_lSckAAAAM/amalie-steiness.gif></div></div>`);
roomcheck();
function roomcheck(){
var room = '';
fetch("ajax_changeroomb")
.then (response => response.text())
.then((response) => {
room = response.match(/"curRoom":"([0-9]+)"/i)[1]
if (room != gotormnum) {setTimeout(function() {roomcheck()},250)}
if (room == gotormnum) {window.location.href = "world";}})}}
function fastslide_close(){
GM_addStyle (`.ftslider {height: 0px !important;width:0px !important;border:0px !important;left:20px !important;top:450px !important;opacity:0% !important;}`);
document.querySelector("#fastslide").addEventListener("click", fastslide_open, false);
document.querySelector("#fastslide").removeEventListener("click", fastslide_close, false);
}}
}