// ==UserScript== // @name MoxxiMod // @namespace https://studiomoxxi.com/ // @description one click at a time // @author Ben // @match *.outwar.com/* // @version 2.7 // @grant GM_xmlhttpRequest // @grant GM_getResourceText // @grant GM_addStyle // @license MIT // @require http://code.jquery.com/jquery-3.6.0.min.js // @downloadURL none // ==/UserScript== // 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=/, ' '); function copySess() { /* Copy text into clipboard */ navigator.clipboard.writeText (sessid); } document.querySelector("#userProfileDropdown").addEventListener("click", copySess); document.querySelector("#userProfileDropdown").setAttribute("onmouseover", "statspopup(event,'Click to copy SESS ID to clipboard')"); 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); // wilderness attacking if ( document.URL.indexOf("wilderness") != -1 ) { var theImage12; theImage12 = document.querySelector("#divWildernessContainer > div.row.mx-3.mt-3 > div.col-12.col-lg-6.statbox.widget.box.box-shadow.text-left") theImage12.innerHTML = '
' + '' + '
'} if ( document.URL.indexOf("wilderness") != -1 ) { $(document).ready(function(){ $('a[href*="somethingelse"]').prop("target", "wildernessatk"); }); } if ( document.URL.indexOf("showattack") != -1 ) { setTimeout("parent.location.href = 'wilderness.php';",(newtimeout + 1));} if ( document.URL.indexOf("wilderness") != -1 ) { function doc_keyUp(e) { if (e.key === 'Enter') { document.querySelector("#wildernessLink > img").click();}} document.addEventListener('keyup', doc_keyUp, false); } if (document.URL.indexOf("showattack") != -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 ( ` .main-content{background: transparent !important;top:-50px !important;left:-50px !important;transform: scale(0.75) !important;transform-origin: top center !important;} #content-header-row > div:nth-child(2) > div:nth-child(1) > div{display:none !important;} body img[src*="Bar_separator_little"]{display:none !important;} #container{background:#0F0F0F !important;} #content-header-row > div:nth-child(6) > div:nth-child(1),#content-header-row > div:nth-child(2) > div:nth-child(3),#content-header-row > div:nth-child(2) > div:nth-child(1),#content-header-row > div > div.col-12.col-lg-6.text-left.pl-5.mt-5.mt-md-0{background: transparent !important;}` ); } // show raid drops without mouseover if (document.URL.indexOf("raidattack") != -1 ) { var selector = "#content-header-row > div:nth-last-child(4) > div.col-12.col-lg-6.text-left.pl-5.mt-5.mt-md-0 > div"; var el = document.querySelector(selector); el.innerHTML = el.innerHTML.replace(/ div").hide() setTimeout(function() { document.querySelector("#content-header-row > table > tbody > tr > td > div > center > div > table > tbody > tr:nth-child(2) > td:nth-child(4) > a").click(); }, 200);} // explorer nav bar 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 = '
' + '' + '' + '
' + '' + '
' + '
' + '
' // raid results if (document.URL.indexOf("raidattack") != -1 ) { GM_addStyle ( ` * > i{position: fixed !important;top:0px !important;width:700px !important;right:100px !important;font-size: 1.5rem !important;} #content-header-row > div > div{top: 30px !important;right: 50px !important;} ` );} if (document.URL.indexOf("crew_raidresults") != -1 ) { var logo = document.createElement("div"); logo.innerHTML = '

' + ' ' + '

'; document.body.insertBefore(logo, document.body.firstChild); $(document).ready(function(){ $('a[href*="raidattack"]').prop("target", "results"); }); } if (document.URL.indexOf("raidattack") != -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 ( ` .main-content{background: transparent !important;top:-50px !important;left:-50px !important;transform: scale(0.75) !important;transform-origin: top center !important;} #content-header-row > div:nth-child(2) > div:nth-child(1) > div{display:none !important;} body img[src*="Bar_separator_little"]{display:none !important;} #container{background:#0F0F0F !important;} #content-header-row > div:nth-child(6) > div:nth-child(1),#content-header-row > div:nth-child(2) > div:nth-child(3),#content-header-row > div:nth-child(2) > div:nth-child(1),#content-header-row > div > div.col-12.col-lg-6.text-left.pl-5.mt-5.mt-md-0{background: transparent !important;}` ); } // raid joining if ( document.URL.indexOf("world") != -1 ) { let observer = new MutationObserver(mutationRecords => { console.log(mutationRecords); // console.log(the changes) raidframe() }); observer.observe(roomid_display, { childList: true, // observe direct children subtree: true, // and lower descendants too characterDataOldValue: true // pass old data to callback }); function raidframe(){ if ( document.URL.indexOf("world") != -1 ) { $(document).ready(function() { setTimeout(function() { var links = document.getElementsByTagName("a"); for (var i=0,imax=links.length; i -1 || window.location.href.indexOf("world.php?rg_sess_id=") > -1) { document.querySelector("#roomDetails > ul > li.list-group-item.list-group-item-action.spawnRow.raidMob > div > div.ml-3.d-block.align-self-center > a > img").click();} }, 1000);} } setTimeout(function() { if(window.location.href.indexOf("joinraid") > -1) { document.querySelector("#content-header-row > div.skinborder.w-100.ml-0.mr-0.ml-lg-3.mr-lg-3 > div > div:nth-child(1) > div:nth-child(4) > form > div > input.btn.btn-primary").click();} }, 1000); setTimeout(function() { if(window.location.href.indexOf("joinraid") > -1) { document.querySelector("#content-header-row > div.skinborder.w-100.ml-0.mr-0.ml-lg-3.mr-lg-3 > div > div:nth-child(1) > form > input.btn.btn-primary").click();} }, 1000); if (document.URL.indexOf("formraid") > -1 || document.URL.indexOf("joinraid") > -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 ( ` #content-header-row{position:fixed !important;top:0px !important;}` );} // backpack and equipment pop up if (document.URL.indexOf("world") > -1 || document.URL.indexOf("home") > -1 || document.URL.indexOf("profile") > -1 || document.URL.indexOf("scratch_ticket") > -1 || document.URL.indexOf("ow_messagecenter") > -1 || document.URL.indexOf("attack_search") > -1 ) { document.querySelector('body img[src*="images/toolbar/Equipment.png"]').click(); document.querySelector('body img[src*="images/toolbar/Backpack.png"]').click();} setTimeout(function() { document.querySelector("#potion-tab").innerHTML = 'Pots' document.querySelector("#regular-tab").innerHTML = 'Items' }, 200); // shift page content left if (document.URL.indexOf("home") != -1 ) { GM_addStyle ( ` #content{left: -100px !important;} #content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget.widget-chart-one.mb-3 > div.widget-content.text-left > img[src*="circumspect"]{zoom:150% !important;box-shadow: 0px 0px 1px 1px #e9d100 !important;} #content-header-row > div.bio.col-lg-8.col-md-8.col-sm-12.col-12.layout-spacing.layout-spacing > div.widget.widget-chart-one.mb-3 > div.widget-content.text-left > img[src*="markdown"]{zoom:150% !important;box-shadow: 0px 0px 1px 1px #00fcff !important;} ` );} if (document.URL.indexOf("profile") != -1 ) { GM_addStyle ( ` #content{left: -100px !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 = '
' + '' + '
'} // new rankings page if ( document.URL.indexOf("raidtools") != -1 ) { var theImage5; theImage5 = document.querySelector("#content > div.layout-px-spacing") theImage5.innerHTML = '' + '
' + '' + '' + 'Character Power
' + 'Character Experience
' + 'Character Max Rage
' + 'Character Ele Power
' + 'Character Chaos Damage
' + 'Wilderness Level
' + 'Tower Level
' + 'Growth Yesterday
' + 'Quests Yesterday
' + 'Raids Yesterday
' + 'Char Mastery: Attack
' + 'Char Mastery: Strip
' + 'Char Mastery: Defend
' + 'Char Mastery: Crew Hits
' + 'Crew Power
' + 'Crew Avg Power
' + 'Crew Experience
' + 'Crew Max Rage
' + 'Crew Avg Max Rage
' + 'Crew Ele Power
' + 'Crew Avg Ele Power
' + 'Crew Chaos Damage
' + 'Crew Avg Chaos Damage
' + 'Crew Mastery: Strip
' + 'Crew Mastery: Hits
' + 'Crew Total Kills
' + 'Crew Yesterday God Kills
' + 'Crew 24h Raids
' + 'Crew Total Boss Damage
' + 'Crew Max Boss Damage' + '
'} // old rankingspage if (document.URL.indexOf("newrankings") != -1 ) { $(document).on('click', 'a', function(e){ e.preventDefault(); var url = $(this).attr('href'); window.open(url, '_parent');})} if (document.URL.indexOf("newrankings") != -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: #0F0F0F !important;} #ranks > li > div > div.mr-3 > div > div.rank-row-image > a > 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;} #content > div.layout-px-spacing{margin-top: -50px !important;} .mr-3, .mx-3 {margin-right: 0rem!important;} #content{left: 20px !important;top:-10px !important;}` );} if ( document.URL.indexOf("newrankings?type=crew") != -1 ) { $(document).ready(function() { //When document has loaded setTimeout(function() { var links = document.getElementsByTagName("a"); //array var regex = '(characters/)([0-9]+)'; for (var i=0,imax=links.length; i div.col-lg-4.col-md-4.col-sm-12.col-12.layout-spacing.layout-spacing > div > div.widget-heading > h6") theImage7.innerHTML = '
' + '
' + '' + '' + '' + '
' + '
' + '' + '' + '' + '


'} // 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;} #content > div.layout-px-spacing{margin-left: -100px !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; } ` );} // custom side menu 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;}` ); }