npm install socks
const { SocksClient } = require('socks');
const proxyOptions = {
proxy: {
ipaddress: '127.0.0.1',
port: 1080,
type: 5 // SOCKS5 proxy
},
target: {
host: 'mc.example.com',
port: 19132
}
};
const client = new SocksClient(proxyOptions);
client.connect().then(() => {
// подключаемся к серверу Minecraft Bedrock через прокси
});
document.querySelectorAll('.heading').forEach(n => {
const words = n.innerText.split(' ');
const center = words.length / 2 | 0;
words.splice(center + 2, 0, '</span>');
words.splice(center - 1, 0, '<span>');
n.innerHTML = words.join(' ');
});