// ==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 = '
' + '| ' +
' ' +
' ' +
' ' +
'' +
' ASTRAL RIFT' +
' CHALLENGES' +
' DEATHBAT GRAVEYARD' +
' EOB SANDS' +
' MADNESS VAULT' +
' MOUNTAIN CAVE' +
' PRISTINE DEPTHS' +
' ROOM 11' +
' SCIENTIFIC DISTRICT' +
' UNDERGROUND Q SEC BASE' +
' VALLEY OF DEATH' +
' WARDENS SANCTUARY' +
' WILDERNESS' +
' ' +
' | ' +
'
' + ' ' + ' ' +
'' +
' '}
// 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 = '
' +
'
'}
// 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 ' +
' '
}
// 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;}` );
}
BIG THANK YOU FOR THE TECHNICAL DEV SUPPORT Beast666007, Bello, CarminT' + ' AND THANK YOU TO THE BETA TESTERS Rhino, Andreas, Brillo, Dkgoon |