// ==UserScript== // @name MoxxiMod // @namespace https://studiomoxxi.com/ // @description one click at a time // @author Ben // @match *.outwar.com/* // @version 5.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== // change log // added auto skiller link to skills page // added cop checker for brawl // 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;} `) 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 = "COP"; insertAfter(headerTD, brawlcharheader.lastElementChild); var totalMembers = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table").rows.length; 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 = response.match(/circleofprotection/i) console.log(circleofprotection) let menu = document.querySelector("#content-header-row > div:nth-child(3) > div:nth-child(2) > div > table > tbody > tr:nth-child("+rownum+")") let brawlTD = document.createElement('td'); brawlTD.innerHTML = circleofprotection; insertAfter(brawlTD, menu.lastElementChild); })}} // AUTO SKILLER LINK ON SKILLS PAGE if (document.URL.indexOf("cast_skills") != -1 ) { GM_addStyle ( ` #basic > div.statbox.widget.box.box-shadow.mb-1.pt-2.pb-1{height:55px !important;} #infocell > h5{background: #202020 !important;} `) var autoskilllink = `Auto Skiller` function insertAfter(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); } let skillstabs = document.querySelector("#simpletab"); let autoskill = document.createElement('li'); autoskill.innerHTML = autoskilllink; insertAfter(autoskill, skillstabs.lastElementChild); } // CREW PROFILE PAGE LAYOUT if (document.URL.indexOf("crew_profile") != -1 ) { GM_addStyle ( ` .col-lg-6{flex: 0 0 100% !important;max-width: 100% !important;} #content-header-row > div.col-lg-6.col-12.layout-spacing > div.widget-content.widget-content-area.br-6 > div:nth-child(2) > div.col-6.pr-1{display:none !important;} #content-header-row > div.col-lg-6.col-12.layout-spacing > div.widget-content.widget-content-area.br-6 > div:nth-child(2) > div.col-6.pl-1 > ul{display:none !important;} #content-header-row > div > div.widget-content.widget-content-area.br-6 > div.mt-3.pt-3{display:none !important;} #content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(3){display:none !important;} #content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(4){display:none !important;} #content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(6){display:none !important;} #content-header-row > div > div.text-left{display:none !important;} #content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(7){display:none !important;} #content-header-row > div > div.widget-content.widget-content-area.br-6 > div:nth-child(8){display:none !important;} #content-header-row > div > div.widget-content.widget-content-area.br-6{margin-bottom:20px !important;} #content-header-row > div > div.widget-content.widget-content-area.br-6{background-image:url('https://studiomoxxi.com/ow_themes/custom_jobs/minimal_01/mm_patern.png') !important;} .layout-spacing{padding-bottom:0px !important;} #content-header-row > div > div.widget-content.widget-content-area.br-6{border: 2px solid #0F0F0F;border-radius: 7px;outline: none;border-color: #0F0F0F;box-shadow: 0 0 10px #0F0F0F;} `) document.querySelector(".table-responsive > table").setAttribute("id", "crewmembers") document.querySelector(".table-responsive").setAttribute("id", "memberdiv") fetch("profile") .then(response => response.text()) .then((response) => { var myCrewID = response.match(/.*of .*<\/a><\/font>/i) var url = window.location.search var myCrew = ''; if (url == "") myCrew = "6" if (url != "") myCrew = "4" if (url == "?id="+myCrewID[1]) myCrew = "6" var crewID = ''; if (url == "") crewID = myCrewID[1] if (url != "") crewID = url.replace("?id=","") fetch("crew_raidresults.php?all_results=Display+all+raid+results&crewid="+crewID) .then(response => response.text()) .then((response) => { var lastRaid = response.match(/