// ==UserScript== // @name MoxxiMod // @namespace https://studiomoxxi.com/ // @description one click at a time // @author Ben // @match *.outwar.com/* // @version 5.4 // @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== // PVP BRAWL SKILL CHECKER if (document.URL.indexOf("closedpvp") != -1 ) { GM_addStyle ( ` #content-header-row > div:nth-child(4){display:none !important;} .col-lg-6 {-ms-flex: 0 0 100%;flex: 0 0 100%;max-width: 100%;} #content-header-row > div > div > h4{margin-bottom:20px !important;} #content-header-row > h2{display:none !important;} #content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > thead > tr{background:#020202 !important;} #content-header-row > div > div > div > table > tbody > tr,#content-header-row > div > div > table > tbody > tr{background:#0F0F0F !important;border-bottom: #020202 solid 1px !important;} #content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > thead > tr > th:nth-child(6) > a {color: #d4d4d4 !important;} `) var brawlchars = document.querySelector("#content-header-row > div:nth-child(4) > div").innerHTML var brawlcharsnew = `
` function insertAfter(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let brawltable = document.querySelector("#content-header-row > div:nth-child(3)"); let brawlsection = document.createElement('div'); brawlsection.innerHTML = brawlcharsnew; insertAfter(brawlsection, brawltable.children[0]); let brawlcharheader = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > thead > tr") let headerTD = document.createElement('th'); headerTD.innerHTML = `POWER`; insertAfter(headerTD, brawlcharheader.lastElementChild); let headerTD2 = document.createElement('th'); headerTD2.innerHTML = "STATUS"; insertAfter(headerTD2, brawlcharheader.lastElementChild); var totalMembers = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table").rows.length; fetch("profile") .then (response => response.text()) .then((response) => { var mypower = response.match(/TOTAL POWER.*[\n\r].*(.*)<\/font><\/b><\/td>/i) var mytotalpower = parseInt(mypower[1].replace(",","")) for (let rownum = 1; rownum < parseInt(totalMembers); rownum++) { var charList = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child("+rownum+") > td:nth-child(2) > a").outerHTML.replace(/.*<\/a>/,"") fetch(charList) .then (response => response.text()) .then((response) => { var circleofprotection = ''; if (response.match(/circleofprotection/i) != null) circleofprotection = `