Blasmodv 3
Blasmodv 3
// @name blasmod
// @version 3
// @description -
// @author blaspious
// @match https://sploop.io
// ==/UserScript==
// ALL CODED BY BLAS, WITH IDEAS FROM OTHERS :)
(function() {
'use strict';
//CODED BY BLAS
const a = [
"#grid-toggle",
"#display-ping-toggle",
"#native-helper-toggle",
"#native-render-toggle"
];
const b = [
"lostworld-io_970x250",
"game-bottom-content",
"game-left-content-main",
"game-right-content-main",
"cross-promo",
"left-content",
"right-content",
"policy",
"logo"
];
const c = [
'chat-wrapper',
'clan-menu',
'hat-menu',
'homepage'
];
const d = {
'ranking-middle-main': '380px',
'ranking2-middle-main': '380px',
'ranking-ranks-container': '295px',
'ranking-rank-container': '295px'
};
a.forEach(selector => {
const element = document.querySelector(selector);
if (element) element.click();
});
b.forEach(id => {
const element = document.getElementById(id);
if (element) element.style.display = 'none';
});
c.forEach(id => {
const element = document.getElementById(id);
if (element) {
element.style.opacity = '0.3';
if (id === 'hat-menu') {
element.style.height = '325px';
element.style.background = "rgb(40 45 34 / 0%)";
element.style.border = "5px solid #14141400";
}
}});
Object.entries(d).forEach(([id, height]) => {
const element = document.getElementById(id);
if (element) element.style.height = height;
});
document.documentElement.style.overflow = 'hidden';
document.querySelectorAll(".header, .description, .pop-top.select, pop-close-
button").forEach(element => element.remove());
document.getElementById('main-content').style = "background: rgb(20 20 20 /
0%);";
document.getElementById('game-middle-main').style = "left:50%;
transform:translateX(-50%);";
document.getElementById('nav').style = "width: 55%;";
document.querySelectorAll('.pop-box').forEach(box => {
box.style.boxShadow = "inset 0 4px 0 #4e564500, inset 0 -4px 0 #38482500, 0px
2px 0 5px rgb(20 20 20 / 0%), 0px 0px 0 15px rgb(20 20 20 / 0%)";
});
document.querySelectorAll('.subcontent-bg').forEach(item => {
item.style.border = '3px solid #1414146b';
item.style.boxShadow = 'inset 0 5px 0 rgba(20, 20, 20, 0)';
});
const popHomepage = document.getElementById('homepage');
document.addEventListener('keydown', g => {
if (g.key === 'Alt' && popHomepage) {
popHomepage.style.display = (popHomepage.style.display === 'flex' ||
popHomepage.style.display === '') ? 'none' : 'flex';
g.preventDefault();
g.stopPropagation();
}
});
//HITMAN's IDEA, EDITED
function findAndReplace() {
const serverSelect = document.getElementById('server-select');
if (serverSelect) {
Array.from(serverSelect.options).forEach(option => {
const match = option.textContent.match(/(AS#\d+|EU#\d+|USA#\d+) ([\w\s]+) - (\
d+)/);
if (match) {
const [_, region, , number] = match;
option.textContent = `${region} - ${number}`;
}
});
serverSelect.style.width = '123px';
}
const nicknameElement = document.getElementById('nickname');
if (nicknameElement) nicknameElement.style.width = '212px';
}
function convertScores() {
document.querySelectorAll('.ranking-score').forEach(score => {
const originalScore = parseFloat(score.getAttribute('data-original-score')) ||
parseFloat(score.textContent);
if (!isNaN(originalScore)) {
let convertedScore;
if (originalScore >= 1e9) {
convertedScore = `${(originalScore / 1e9).toFixed(2)}b`;
} else if (originalScore >= 1e6) {
convertedScore = `${(originalScore / 1e6).toFixed(2)}m`;
} else if (originalScore >= 1e3) {
convertedScore = `${(originalScore / 1e3).toFixed(2)}k`;
} else {
convertedScore = originalScore.toString();
}
score.textContent = convertedScore;
score.setAttribute('data-original-score', originalScore);
}});
}
setInterval(findAndReplace, 50);
setInterval(convertScores, 10);
})();