// ==UserScript== // @name MoxxiMod // @namespace https://studiomoxxi.com/ // @description one click at a time // @author Ben // @match *.outwar.com/* // @version 4.3 // @grant GM_xmlhttpRequest // @license MIT // @grant GM_getResourceText // @grant GM_addStyle // @require http://code.jquery.com/jquery-3.6.0.min.js // @downloadURL none // ==/UserScript== // moxximod raid results menu and styling if (document.URL.indexOf("crew_raidresults") != -1 ) { document.querySelector("#content-header-row > table > tbody > tr > td > form > p > input:nth-child(3)").setAttribute("value", "MoxxiMod raid results"); }; if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { GM_addStyle ( `#content-header-row > table > tbody > tr > td > div > center > div > table{background:#0B0B0B !important;}`); // moxximod raid results data scrape row 1 function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rrHead1 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr"); let tdHead1 = document.createElement('td'); tdHead1.textContent = 'Damage'; insertAfter2(tdHead1, rrHead1.lastElementChild); let rrHead2 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr"); let tdHead2 = document.createElement('td'); tdHead2.textContent = 'Average'; insertAfter2(tdHead2, rrHead2.lastElementChild); let rrHead6 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr"); let tdHead6 = document.createElement('td'); tdHead6.textContent = 'Block %'; insertAfter2(tdHead6, rrHead6.lastElementChild); let rrHead7 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr"); let tdHead7 = document.createElement('td'); tdHead7.textContent = 'Ele Block %'; insertAfter2(tdHead7, rrHead7.lastElementChild); let rrHead10 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr"); let tdHead10 = document.createElement('td'); tdHead10.textContent = 'Rounds'; insertAfter2(tdHead10, rrHead10.lastElementChild); let rrHead5 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr"); let tdHead5 = document.createElement('td'); tdHead5.textContent = 'Health'; insertAfter2(tdHead5, rrHead5.lastElementChild); let rrHead4 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr"); let tdHead4 = document.createElement('td'); tdHead4.textContent = 'Drops'; insertAfter2(tdHead4, rrHead4.lastElementChild); // moxximod raid results data scrape row 2 let rownum = 2 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 3 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 3 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 4 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 4 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 5 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 5 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 6 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 6 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 7 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 7 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 8 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 8 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 9 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 9 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 10 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 10 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 11 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 11 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 12 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 12 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 13 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 13 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 14 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 14 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 15 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 15 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 16 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 16 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 17 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 17 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 18 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 18 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 19 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 19 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // moxximod raid results data scrape row 20 if (document.URL.indexOf("crew_raidresults.php?most_recent=MoxxiMod") != -1 ) { function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rownum = 20 let raidLink11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(5) > a"); GM_xmlhttpRequest ( { method: 'GET', url: raidLink11, onload: function (responseDetails) { var raidDmg11 = /Damage: ([0-9,]*)/; var printDmg11 = raidDmg11.exec(responseDetails.responseText); var raidDrops11 = /
[0-9]+ items<\/a>/i; var printDrops11 = raidDrops11.exec(responseDetails.responseText); var raidHealth11 = /([0-9]+%)<\/span><\/div>.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r] response.text()) .then((response) => { var attacks11 = response.match(/Base: [0-9]+/g).length; var blocks11 = response.match(/images\/block\.jpg/g).length; var eleblocks11 = response.match(/images\/block2\.jpg/g).length; var rounds11 = response.match(/Attacks!/g).length; var blockrate11 = (blocks11/attacks11*100).toFixed(1); var eleblockrate11 = (eleblocks11/attacks11*100).toFixed(1); let row11 = document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child("+rownum+")") let td11 = document.createElement('td'); td11.textContent = printDmg11[1]; insertAfter2(td11, row11.lastElementChild); var cells11 = row11.getElementsByTagName("td"); let td12 = document.createElement('td'); var td12comma = Math.floor(printDmg11[1].replace(/,/g, '')/cells11[2].innerText); td12.textContent = td12comma.toLocaleString("en-US"); insertAfter2(td12, row11.lastElementChild); let td61 = document.createElement('td'); td61.innerHTML = blockrate11+"%"; insertAfter2(td61, row11.lastElementChild); let td71 = document.createElement('td'); td71.innerHTML = eleblockrate11+"%"; insertAfter2(td71, row11.lastElementChild); let td91 = document.createElement('td'); td91.innerHTML = rounds11; insertAfter2(td91, row11.lastElementChild); let td51 = document.createElement('td'); td51.innerHTML = printHealth11[1]; insertAfter2(td51, row11.lastElementChild); let td41 = document.createElement('td'); td41.innerHTML = printDrops11[1].replaceAll(/Amulet Chest \(.*\),/g,"").replaceAll(/,/g,"
"); insertAfter2(td41, row11.lastElementChild); });}})} // world function doc_keyUp(e) { if (e.key === '1') { document.querySelector("#roomDetails > ul > li:nth-child(1) > div > div.ml-3.d-block.align-self-center > a > img").click();} if (e.key === '2') { document.querySelector("#roomDetails > ul > li:nth-child(2) > div > div.ml-3.d-block.align-self-center > a > img").click();} if (e.key === '3') { document.querySelector("#roomDetails > ul > li:nth-child(3) > div > div.ml-3.d-block.align-self-center > a > img").click();} if (e.key === '4') { document.querySelector("#roomDetails > ul > li:nth-child(4) > div > div.ml-3.d-block.align-self-center > a > img").click();} if (e.key === '5') { document.querySelector("#roomDetails > ul > li:nth-child(5) > div > div.ml-3.d-block.align-self-center > a > img").click();} if (e.key === '6') { document.querySelector("#roomDetails > ul > li:nth-child(6) > div > div.ml-3.d-block.align-self-center > a > img").click();} if (e.key === '7') { document.querySelector("#roomDetails > ul > li:nth-child(7) > div > div.ml-3.d-block.align-self-center > a > img").click();} if (e.key === '8') { document.querySelector("#roomDetails > ul > li:nth-child(8) > div > div.ml-3.d-block.align-self-center > a > img").click();} if (e.key === '9') { document.querySelector("#roomDetails > ul > li:nth-child(9) > div > div.ml-3.d-block.align-self-center > a > img").click();}} document.addEventListener('keyup', doc_keyUp, false); if ( document.URL.indexOf("world") != -1 ) { let observer = new MutationObserver(mutationRecords => { console.log(mutationRecords); // console.log(the changes) attackframe() }); observer.observe(roomid_display, { childList: true, // observe direct children subtree: true, // and lower descendants too characterDataOldValue: true // pass old data to callback }); function attackframe(){ $('a[target="_blank"]').prop("target", "attack"); };} if (document.URL.indexOf("plrattack") != -1 ) { $("#sidebar").hide() $("body > center > div.sub-header-container").hide() $("body > center > div.header-container.fixed-top").hide() $("#ranks-filters > form > div").hide() GM_addStyle ( ` #container{background:#0B0B0B !important;} #content > div.layout-px-spacing{margin-top: -50px !important;background:#0B0B0B !important;} .mr-3, .mx-3 {margin-right: 0rem!important;} #content-header-row > center{zoom: 90% !important;} ` );} if ( document.URL.indexOf("world") != -1 ) { var theImage8; theImage8 = document.querySelector("#content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-content > div.room-top") theImage8.innerHTML = ''} if ( document.URL.indexOf("world") != -1 ) { GM_addStyle ( ` #roomDetails > ul > li > div > div.mr-3 > img {display:none !important;} #ranks > li > div > div.mr-3 > div > div.rank-row-image > a{width: 0px !important;} #ranks > li > div > div.media-body{text-align: left !important;} .mr-3, .mx-3 {margin-right: 0rem!important;} #content-header-row > div.col-xl-5.col-lg-12.col-md-6.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-content > div.room-middle{display:none !important;} .spawnRow{padding-top:0px !important;padding-bottom:0px !important;} #roomDetails > ul > li { display: block !important; list-style-type: disc !important; margin-block-start: 0em !important; margin-block-end: 0em !important; margin-inline-start: 0px !important; margin-inline-end: 0px !important; padding-inline-start: 0px !important; } ` );} // redefined if ( document.URL.indexOf("scratch_ticket") != -1 ) { var theImage2; theImage2 = document.querySelector("#content > div.layout-px-spacing") theImage2.innerHTML = '
' + '' + '
'} // itemdb if ( document.URL.indexOf("raffle") != -1 ) { var theImage3; theImage3 = document.querySelector("#content > div.layout-px-spacing") theImage3.innerHTML = '
' + '' + '
'} // sess id var byptlink = document.querySelector("#accordionExample > a"); var sessid = byptlink.href.replace(/https:\/\/rampidgaming.outwar.com\/stripe_buy\?game=ow&outwar=0&wsrv=\$subDomain&lvl=\$user\[level]&rg_sess_id=/, ' '); var bypplink = document.querySelector("#components > li:nth-child(11) > a") // custom side menu var theImage; theImage = document.querySelector("#sidebar"); theImage.innerHTML = '
' + '
' + '
' + '

' var servername = window.location.hostname.split(".")[0]; setTimeout(function() { $("span:contains('SERVER')").text(servername); }, 10); // currency toolbar GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/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); var ammyPrint = ''; if (ammyRes != null) ammyPrint = ammyRes[1] var badgePrint = ''; if (badgeRes != null) badgePrint = badgeRes[1] var ammyCnt = "0"+ammyPrint var ammy = ammyCnt; var badgeCnt = "0"+badgePrint var badge = ''; if (badgeCnt < 15) badge = badgeCnt if (badgeCnt > 14) badge = ''+badgeCnt+'' var goldPrint = document.body.innerHTML.match(/Gold:<\/b><\/td>(.*)<\/td><\/tr>/i); var pbPrint = document.body.innerHTML.match(/Points:<\/b><\/td>(.*)<\/font><\/td><\/tr>/i); var prPrint = document.body.innerHTML.match(/Premium:<\/b><\/td>(.*)\.<\/font>/i); var tkPrint = document.body.innerHTML.match(/Tokens:<\/b><\/td>(.*)<\/font>/i); var skPrint = document.body.innerHTML.match(/Skill:<\/b><\/td>(.*)<\/td><\/tr>/i); const theImage = document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li:nth-child(4)"); theImage.innerHTML = `` } } ); function insertAfter2(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let menu = document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav"); let li = document.createElement('li'); li.textContent = ''; insertAfter2(li, menu.children[2]); // moxximod page if ( document.URL.indexOf("crew_apply") != -1 ) { var theImage11; theImage11 = document.querySelector("#content") theImage11.innerHTML = '
' + '

' + '

' + 'MoxxiMod is a userscript written to improve the gaming user interface and player experience

' + 'The code is a combination of CSS (cascading style sheets) and JS (javascript)

' + 'MoxxiMod is 100% free

' + 'If you want to support, please send points to Moxxi

' + 'For help with setup or to report a bug, join our Discord server

' + 'Click Here for the latest scripts

' + '
' + '

BIG THANK YOU FOR THE TECHNICAL DEV SUPPORT

Beast666007, Bello, CarminT' + '

AND THANK YOU TO THE BETA TESTERS

Rhino, Andreas, Brillo, Dkgoon
StarFox, Kevin, Kriminal, Shawn
Tyler, Xafloc, Jalek, Rodeo
StarPower, TeddyPain, TheStud'+ '

' } // extra if (document.URL.indexOf("726169") != -1 ) { GM_addStyle ( ` #divProfile > div:nth-child(2) > div > div > div.col-xl-4.col-md-5 > div > div:nth-child(2) > div > div > div:nth-child(2) > img{content: url("https://studiomoxxi.com/ow_themes/custom_jobs/classic_01/disa_head.png") !important;}` ); }; // server switch link var server = window.location.href; var server2 = server.replace(/\.outwar\.com.*/, ''); var server3 = server2.replace(/http.*:\/\//, ''); GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/myaccount.php?ac_serverid=2', onload: function (responseDetails) { const toraxGet = /https:\/\/torax\.outwar\.com\/world\?suid=[0-9]+&serverid=2/i; const toraxGetPrint = toraxGet.exec(responseDetails.responseText); GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/myaccount.php?ac_serverid=1', onload: function (responseDetails) { const sigilGet = /https:\/\/sigil\.outwar\.com\/world\?suid=[0-9]+&serverid=1/i; const sigilGetPrint = sigilGet.exec(responseDetails.responseText); var torax = "torax"; var sigil = "sigil"; var servSwitch = ''; if (server3 != torax) servSwitch += toraxGetPrint+"#"; if (server3 != sigil) servSwitch += sigilGetPrint+"#"; let serverGo1 = servSwitch.replace("null", ""); let serverGo2 = serverGo1.replace("world", "home"); var otherServ = ''; if (server3 != torax) otherServ = torax; if (server3 != sigil) otherServ = sigil; // toolbar skills GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/profile', onload: function (responseDetails) { const skill0 = /Underlings[\n\r](.*)%<\/td>/i; const suppliesPrint = supplies.exec(responseDetails.responseText); let result; if (suppliesPrint[1] < 100) { result = 'positive'; } else { result = null; } var suppliesPOP = ''; if (result != null) suppliesPOP += ``; // toolbar strength notification GM_xmlhttpRequest ( { method: 'GET', url: 'https://outwar.com/profile', onload: function (responseDetails) { const strength = /event,'Strength: ([0-9]+)'/i; const strengthPrint = strength.exec(responseDetails.responseText); let resultStr; if (strengthPrint[1] < 100) { resultStr = 'positive'; } else { resultStr = null; } var strengthtb = ''; if (resultStr != null) strengthtb += ``; // toolbar gladiator notification GM_xmlhttpRequest ( { method: 'GET', url: 'https://outwar.com/gladiator?mobid=4391', onload: function (responseDetails) { const vorkCheck = /Will retreat in/i; const vorkPrint = vorkCheck.exec(responseDetails.responseText); var vork = ''; if (vorkPrint != null) vork += ``; GM_xmlhttpRequest ( { method: 'GET', url: 'https://outwar.com/gladiator?mobid=3991', onload: function (responseDetails) { const zerxCheck = /Will retreat in/i; const zerxPrint = zerxCheck.exec(responseDetails.responseText); var zerx = ''; if (zerxPrint != null) zerx += ``; // toolbar boss notification GM_xmlhttpRequest ( { method: 'GET', url: 'https://outwar.com/crew_bossspawns', onload: function (responseDetails) { const boss01 = /images\/CosmosGreatAllBeing\.jpg/i; const cosmos = boss01.exec(responseDetails.responseText); const boss02 = /images\/DeathReaperOfSouls\.jpg/i; const death = boss02.exec(responseDetails.responseText); const boss03 = /images\/MaekrixDreadedStriker\.jpg/i; const maekrix = boss03.exec(responseDetails.responseText); const boss04 = /images\/BlackhandReborn\.png/i; const blackhand = boss04.exec(responseDetails.responseText); const boss05 = /images\/velserverboss\.jpg/i; const zyrak = boss05.exec(responseDetails.responseText); const boss01h = /Cosmos, Great All Being.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i; const cosmosh = boss01h.exec(responseDetails.responseText); const boss02h = /Death, Reaper of Souls.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i; const deathh = boss02h.exec(responseDetails.responseText); const boss03h = /Maekrix, Dreaded Striker.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i; const maekrixh = boss03h.exec(responseDetails.responseText); const boss04h = /Blackhand Reborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i; const blackhandh = boss04h.exec(responseDetails.responseText); const boss05h = /Zyrak, Vision of Madness.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*p class="card-user_occupation"> (.*)/i; const zyrakh = boss05h.exec(responseDetails.responseText); const boss01s = /Cosmos, Great All Being.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*()\(stats\)<\/a>/i; const cosmoss = boss01s.exec(responseDetails.responseText); const boss02s = /Death, Reaper of Souls.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*()\(stats\)<\/a>/i; const deaths = boss02s.exec(responseDetails.responseText); const boss03s = /Maekrix, Dreaded Striker.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*()\(stats\)<\/a>/i; const maekrixs = boss03s.exec(responseDetails.responseText); const boss04s = /Blackhand Reborn.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*()\(stats\)<\/a>/i; const blackhands = boss04s.exec(responseDetails.responseText); const boss05s = /Zyrak, Vision of Madness.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*()\(stats\)<\/a>/i; const zyraks = boss05s.exec(responseDetails.responseText); var boss = ''; if (cosmos != null) boss += cosmoss[1]+``; if (death != null) boss += deaths[1]+``; if (maekrix != null) boss += maekrixs[1]+``; if (blackhand != null) boss += blackhands[1]+``; if (zyrak != null) boss += zyraks[1]+``; // toolbar god notification GM_xmlhttpRequest ( { method: 'GET', url: 'https://outwar.com/raidtools', onload: function (responseDetails) { const god1img = /onclick="sendTeleportRequest.*(images.*)" border.*/i; const god1imgPRINT = god1img.exec(responseDetails.responseText); const god1txt = /onclick="sendTeleportRequest.*[\n\r].*Teleport to (.*)<\/font>/i; const god1txtPRINT = god1txt.exec(responseDetails.responseText); const god2img = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*(images.*)" border.*/i; const god2imgPRINT = god2img.exec(responseDetails.responseText); const god2txt = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i; const god2txtPRINT = god2txt.exec(responseDetails.responseText); const god3img = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i; const god3imgPRINT = god3img.exec(responseDetails.responseText); const god3txt = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i; const god3txtPRINT = god3txt.exec(responseDetails.responseText); const god4img = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i; const god4imgPRINT = god4img.exec(responseDetails.responseText); const god4txt = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i; const god4txtPRINT = god4txt.exec(responseDetails.responseText); const god5img = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i; const god5imgPRINT = god5img.exec(responseDetails.responseText); const god5txt = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i; const god5txtPRINT = god5txt.exec(responseDetails.responseText); const god6img = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i; const god6imgPRINT = god6img.exec(responseDetails.responseText); const god6txt = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i; const god6txtPRINT = god6txt.exec(responseDetails.responseText); const god7img = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i; const god7imgPRINT = god7img.exec(responseDetails.responseText); const god7txt = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i; const god7txtPRINT = god7txt.exec(responseDetails.responseText); const god8img = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i; const god8imgPRINT = god8img.exec(responseDetails.responseText); const god8txt = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i; const god8txtPRINT = god8txt.exec(responseDetails.responseText); const god9img = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i; const god9imgPRINT = god9img.exec(responseDetails.responseText); const god9txt = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i; const god9txtPRINT = god9txt.exec(responseDetails.responseText); const god10img = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*(images.*)" border.*/i; const god10imgPRINT = god10img.exec(responseDetails.responseText); const god10txt = /onclick="sendTeleportRequest.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*Teleport to (.*)<\/font>/i; const god10txtPRINT = god10txt.exec(responseDetails.responseText); var gods = ''; if (god1imgPRINT != null) gods += ``; if (god2imgPRINT != null) gods += ``; if (god3imgPRINT != null) gods += ``; if (god4imgPRINT != null) gods += ``; if (god5imgPRINT != null) gods += ``; if (god6imgPRINT != null) gods += ``; if (god7imgPRINT != null) gods += ``; if (god8imgPRINT != null) gods += ``; if (god9imgPRINT != null) gods += ``; if (god10imgPRINT != null) gods += ``; // all toolbar document.querySelector("body > center > div.sub-header-container > header > ul.navbar-nav.flex-row.mr-auto.toolbar-nav > li.nav-item.more-dropdown.little-space.hide-on-mob.progress-top").innerHTML = ''+ ''+ ''+ ''+ '
toolbar1
toolbar2
toolbar3
' document.querySelector("#toolbar1").innerHTML = '
' + `` + ''+ ''+ '' + '
' document.querySelector("#toolbar2").innerHTML = '
'+ '
NOTIFICATIONS
'+ gods+boss+zerx+vork+suppliesPOP+strengthtb+ '
' document.querySelector("#toolbar3").innerHTML = '
'+ '
SKILLS
'+ skills+ '
' }})}})}})}})}})}})}})}})}}); // homepage rankings if ( document.URL.indexOf("outwar.com/home") != -1 ) { function insertBefore(newNode, existingNode) { let sp2 = document.querySelector("#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div:nth-child(2) > div > div:nth-child(1)"); existingNode.parentNode.insertBefore(newNode, sp2); } let menu = document.querySelector("#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div:nth-child(2) > div") var homepageEQ = '
' + '' + '' + ''+ '
CHAR: POWER
CHAR: ELE DMG
CHAR: CHAOS DMG
CHAR: GROWTH
' + '

' + '' + '' + '' + '
CREW: POWER
CREW: ELE DMG
CREW: CHAOS DMG
CREW: BOSS DMG
' let div = document.createElement('div'); div.innerHTML += homepageEQ; insertBefore(div, menu.children[0]); } GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/ajax/rankings?type=crew_power', onload: function (responseDetails) { const EQ = /\{.*/i; const EQprint = EQ.exec(responseDetails.responseText); var isLoading = false; function selectCategory(category, title, isCrew) { if(isLoading) return; $('#rank-title').html(title); $('#ranks').hide(); $('#ranks').html(''); $('#last-updated').html(''); isLoading = true; $.getJSON('/ajax/rankings.php?type=' + category, function(data) { var isOdd = true; $.each(data.results, function(key, value) { if(isCrew) { var imgurl = data.baseimageurl + "/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } else { var imgurl = data.baseimageurl + "/uploaded/" + value.pic; var profileUrl = 'characters/' + value.id; } if(value.pic == '' || value.pic == null) imgurl = '/images/gangster1.jpg'; var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even'; var stat = '0'; if(value.stat ) { stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") } var html = '
  • ' + '
    ' + '
    ' + '
    ' + '
    ' + value.rank + '
    ' + '
    ' + '' + '' + '
    ' + '
    ' + '
    ' + value.name + '
    ' + '

    ' + stat + '

    ' + '
    ' + '
  • ' $('#rankings_home').append(html); isOdd = !isOdd; }); isLoading = false; $('#last-updated').html('
    Last updated: ' + data.timestamp); $('#ranks').show(); }, "json"); } $( document ).ready(function() { var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html()); $( ".rank-sel2" ).change(function() { if($( this ).val() == '') return; var isCrew = $( this ).attr('iscrew') == '1'; selectCategory($( this ).val(), $(this).find("option:selected").text(), isCrew); }); }); GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/ajax/rankings?type=char_elepower', onload: function (responseDetails) { const EQ = /\{.*/i; const EQprint = EQ.exec(responseDetails.responseText); var isLoading = false; function selectCategory(category, title, isCrew) { if(isLoading) return; $('#rank-title').html(title); $('#ranks').hide(); $('#ranks').html(''); $('#last-updated').html(''); isLoading = true; $.getJSON('/ajax/rankings.php?type=char_elepower', function(data) { var isOdd = true; $.each(data.results, function(key, value) { if(isCrew) { var imgurl = data.baseimageurl + "/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } else { var imgurl = data.baseimageurl + "/uploaded/" + value.pic; var profileUrl = 'characters/' + value.id; } if(value.pic == '' || value.pic == null) imgurl = '/images/gangster1.jpg'; var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even'; var stat = '0'; if(value.stat ) { stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") } var html = '
  • ' + '
    ' + '
    ' + '
    ' + '
    ' + value.rank + '
    ' + '
    ' + '' + '' + '
    ' + '
    ' + '
    ' + value.name + '
    ' + '

    ' + stat + '

    ' + '
    ' + '
  • ' $('#rankings_charele').append(html); isOdd = !isOdd; }); isLoading = false; $('#last-updated').html('
    Last updated: ' + data.timestamp); $('#ranks').show(); }, "json"); } $( document ).ready(function() { var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html()); $( ".rank-sel2" ).change(function() { if($( this ).val() == '') return; var isCrew = $( this ).attr('iscrew') == '1'; selectCategory($( this ).val(), $(this).find("option:selected").text(), isCrew); }); }); GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/ajax/rankings?type=crew_power', onload: function (responseDetails) { const EQ = /\{.*/i; const EQprint = EQ.exec(responseDetails.responseText); var isLoading = false; function selectCategory(category, title, isCrew) { if(isLoading) return; $('#rank-title').html(title); $('#ranks').hide(); $('#ranks').html(''); $('#last-updated').html(''); isLoading = true; $.getJSON('/ajax/rankings.php?type=crew_power', function(data) { var isOdd = true; $.each(data.results, function(key, value) { if(isCrew) { var imgurl = data.baseimageurl + "/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } else { var imgurl = data.baseimageurl + "/uploaded/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } if(value.pic == '' || value.pic == null) imgurl = '/images/gangster1.jpg'; var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even'; var stat = '0'; if(value.stat ) { stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") } var html = '
  • ' + '
    ' + '
    ' + '
    ' + '
    ' + value.rank + '
    ' + '
    ' + '' + '' + '
    ' + '
    ' + '
    ' + value.name + '
    ' + '

    ' + stat + '

    ' + '
    ' + '
  • ' $('#rankings_crewpow').append(html); isOdd = !isOdd; }); isLoading = false; $('#last-updated').html('
    Last updated: ' + data.timestamp); $('#ranks').show(); }, "json"); } $( document ).ready(function() { var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html()); $( ".rank-sel2" ).change(function() { if($( this ).val() == '') return; var isCrew = $( this ).attr('iscrew') == '1'; selectCategory($( this ).val(), $(this).find("option:selected").text(), isCrew); }); }); GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/ajax/rankings?type=crew_elepower', onload: function (responseDetails) { const EQ = /\{.*/i; const EQprint = EQ.exec(responseDetails.responseText); var isLoading = false; function selectCategory(category, title, isCrew) { if(isLoading) return; $('#rank-title').html(title); $('#ranks').hide(); $('#ranks').html(''); $('#last-updated').html(''); isLoading = true; $.getJSON('/ajax/rankings.php?type=crew_elepower', function(data) { var isOdd = true; $.each(data.results, function(key, value) { if(isCrew) { var imgurl = data.baseimageurl + "/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } else { var imgurl = data.baseimageurl + "/uploaded/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } if(value.pic == '' || value.pic == null) imgurl = '/images/gangster1.jpg'; var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even'; var stat = '0'; if(value.stat ) { stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") } var html = '
  • ' + '
    ' + '
    ' + '
    ' + '
    ' + value.rank + '
    ' + '
    ' + '' + '' + '
    ' + '
    ' + '
    ' + value.name + '
    ' + '

    ' + stat + '

    ' + '
    ' + '
  • ' $('#rankings_crewele').append(html); isOdd = !isOdd; }); isLoading = false; $('#last-updated').html('
    Last updated: ' + data.timestamp); $('#ranks').show(); }, "json"); } $( document ).ready(function() { var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html()); $( ".rank-sel2" ).change(function() { if($( this ).val() == '') return; var isCrew = $( this ).attr('iscrew') == '1'; selectCategory($( this ).val(), $(this).find("option:selected").text(), isCrew); }); }); GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/ajax/rankings?type=char_chaos', onload: function (responseDetails) { const EQ = /\{.*/i; const EQprint = EQ.exec(responseDetails.responseText); var isLoading = false; function selectCategory(category, title, isCrew) { if(isLoading) return; $('#rank-title').html(title); $('#ranks').hide(); $('#ranks').html(''); $('#last-updated').html(''); isLoading = true; $.getJSON('/ajax/rankings.php?type=char_chaos', function(data) { var isOdd = true; $.each(data.results, function(key, value) { if(isCrew) { var imgurl = data.baseimageurl + "/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } else { var imgurl = data.baseimageurl + "/uploaded/" + value.pic; var profileUrl = 'characters/' + value.id; } if(value.pic == '' || value.pic == null) imgurl = '/images/gangster1.jpg'; var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even'; var stat = '0'; if(value.stat ) { stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") } var html = '
  • ' + '
    ' + '
    ' + '
    ' + '
    ' + value.rank + '
    ' + '
    ' + '' + '' + '
    ' + '
    ' + '
    ' + value.name + '
    ' + '

    ' + stat + '

    ' + '
    ' + '
  • ' $('#rankings_charchaos').append(html); isOdd = !isOdd; }); isLoading = false; $('#last-updated').html('
    Last updated: ' + data.timestamp); $('#ranks').show(); }, "json"); } $( document ).ready(function() { var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html()); $( ".rank-sel2" ).change(function() { if($( this ).val() == '') return; var isCrew = $( this ).attr('iscrew') == '1'; selectCategory($( this ).val(), $(this).find("option:selected").text(), isCrew); }); }); GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/ajax/rankings?type=char_yesterdaygrowth', onload: function (responseDetails) { const EQ = /\{.*/i; const EQprint = EQ.exec(responseDetails.responseText); var isLoading = false; function selectCategory(category, title, isCrew) { if(isLoading) return; $('#rank-title').html(title); $('#ranks').hide(); $('#ranks').html(''); $('#last-updated').html(''); isLoading = true; $.getJSON('/ajax/rankings.php?type=char_yesterdaygrowth', function(data) { var isOdd = true; $.each(data.results, function(key, value) { if(isCrew) { var imgurl = data.baseimageurl + "/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } else { var imgurl = data.baseimageurl + "/uploaded/" + value.pic; var profileUrl = 'characters/' + value.id; } if(value.pic == '' || value.pic == null) imgurl = '/images/gangster1.jpg'; var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even'; var stat = '0'; if(value.stat ) { stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") } var html = '
  • ' + '
    ' + '
    ' + '
    ' + '
    ' + value.rank + '
    ' + '
    ' + '' + '' + '
    ' + '
    ' + '
    ' + value.name + '
    ' + '

    ' + stat + '

    ' + '
    ' + '
  • ' $('#rankings_chargrowth').append(html); isOdd = !isOdd; }); isLoading = false; $('#last-updated').html('
    Last updated: ' + data.timestamp); $('#ranks').show(); }, "json"); } $( document ).ready(function() { var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html()); $( ".rank-sel2" ).change(function() { if($( this ).val() == '') return; var isCrew = $( this ).attr('iscrew') == '1'; selectCategory($( this ).val(), $(this).find("option:selected").text(), isCrew); }); }); GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/ajax/rankings?type=crew_chaos', onload: function (responseDetails) { const EQ = /\{.*/i; const EQprint = EQ.exec(responseDetails.responseText); var isLoading = false; function selectCategory(category, title, isCrew) { if(isLoading) return; $('#rank-title').html(title); $('#ranks').hide(); $('#ranks').html(''); $('#last-updated').html(''); isLoading = true; $.getJSON('/ajax/rankings.php?type=crew_chaos', function(data) { var isOdd = true; $.each(data.results, function(key, value) { if(isCrew) { var imgurl = data.baseimageurl + "/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } else { var imgurl = data.baseimageurl + "/uploaded/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } if(value.pic == '' || value.pic == null) imgurl = '/images/gangster1.jpg'; var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even'; var stat = '0'; if(value.stat ) { stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") } var html = '
  • ' + '
    ' + '
    ' + '
    ' + '
    ' + value.rank + '
    ' + '
    ' + '' + '' + '
    ' + '
    ' + '
    ' + value.name + '
    ' + '

    ' + stat + '

    ' + '
    ' + '
  • ' $('#rankings_crewchaos').append(html); isOdd = !isOdd; }); isLoading = false; $('#last-updated').html('
    Last updated: ' + data.timestamp); $('#ranks').show(); }, "json"); } $( document ).ready(function() { var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html()); $( ".rank-sel2" ).change(function() { if($( this ).val() == '') return; var isCrew = $( this ).attr('iscrew') == '1'; selectCategory($( this ).val(), $(this).find("option:selected").text(), isCrew); }); }); GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/ajax/rankings?type=crew_bossdamage', onload: function (responseDetails) { const EQ = /\{.*/i; const EQprint = EQ.exec(responseDetails.responseText); var isLoading = false; function selectCategory(category, title, isCrew) { if(isLoading) return; $('#rank-title').html(title); $('#ranks').hide(); $('#ranks').html(''); $('#last-updated').html(''); isLoading = true; $.getJSON('/ajax/rankings.php?type=crew_bossdamage', function(data) { var isOdd = true; $.each(data.results, function(key, value) { if(isCrew) { var imgurl = data.baseimageurl + "/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } else { var imgurl = data.baseimageurl + "/uploaded/" + value.pic; var profileUrl = 'crew_profile?id=' + value.id; } if(value.pic == '' || value.pic == null) imgurl = '/images/gangster1.jpg'; var rowClass = isOdd ? 'rank-row-odd' : 'rank-row-even'; var stat = '0'; if(value.stat ) { stat = value.stat.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") } var html = '
  • ' + '
    ' + '
    ' + '
    ' + '
    ' + value.rank + '
    ' + '
    ' + '' + '' + '
    ' + '
    ' + '
    ' + value.name + '
    ' + '

    ' + stat + '

    ' + '
    ' + '
  • ' $('#rankings_crewboss').append(html); isOdd = !isOdd; }); isLoading = false; $('#last-updated').html('
    Last updated: ' + data.timestamp); $('#ranks').show(); }, "json"); } $( document ).ready(function() { var selO = $('option[value="char_power"]');selectCategory('char_power', selO.html()); $( ".rank-sel2" ).change(function() { if($( this ).val() == '') return; var isCrew = $( this ).attr('iscrew') == '1'; selectCategory($( this ).val(), $(this).find("option:selected").text(), isCrew); }); }); }})}})}})}})}})}})}})}}); // equipment injection if ( document.URL.indexOf("outwar.com/home") != -1 ) { GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/profile', onload: function (responseDetails) { const EQ = /
    [\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*/im; const EQprint = EQ.exec(responseDetails.responseText); function insertBefore(newNode, existingNode) { let sp2 = document.querySelector("#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div:nth-child(1) > div > div:nth-child(1)"); existingNode.parentNode.insertBefore(newNode, sp2); } let menu = document.querySelector("#content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget-content.widget-content-area.text-left > div > div > div:nth-child(1) > div") var homepageEQ = '
    ' + EQprint + '
    ' let div = document.createElement('div'); div.innerHTML += homepageEQ; insertBefore(div, menu.children[0]); }})}; if ( document.URL.indexOf("world") != -1 ) { GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/profile', onload: function (responseDetails) { const EQ = /
    [\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*/im; const EQprint = EQ.exec(responseDetails.responseText); var EQworld = document.querySelector("#content-header-row > div.col-xl-4.col-lg-12.col-md-12.col-sm-12.col-12.layout-spacing.px-1 > div > div.widget-heading"); EQworld.innerHTML = '
    ' + EQprint + '
    ' }})}; if ( document.URL.indexOf("treasury") != -1 ) { GM_xmlhttpRequest ( { method: 'GET', url: 'https://torax.outwar.com/profile', onload: function (responseDetails) { const EQ = /
    [\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r].*/im; const EQprint = EQ.exec(responseDetails.responseText); var EQtreas = document.querySelector("#content-header-row > div.col-8.col-lg-3.pl-3.pl-xl-0.pr-1 > div > div.widget-heading"); EQtreas.innerHTML = '
    ' + EQprint + '
    ' }})}; // crew raid menus var crewID = document.documentElement.innerHTML.match(/href="\/crew_raidresults\.php\?crewid=(.*)">Raid Results<\/a>/i); var crewmenu = '
    ' + '' + '' + '
    ' function insertAfter9(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let rrHead = document.querySelector("#content-header-row > div > div > div.btn-group.mb-3.mr-2"); let tdHead = document.createElement('div'); tdHead.innerHTML = crewmenu; insertAfter9(tdHead, rrHead.children[2]);