Super Rank Unlock Bypass for Bloxd

Unlock Super Rank and hide ads on Bloxd.io

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Super Rank Unlock Bypass for Bloxd
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Unlock Super Rank and hide ads on Bloxd.io
// @author       SkyYT
// @license      All Rights Reserved
// @match        *://bloxd.io/*
// @match        *://staging.bloxd.io/*
// @match        https://www.crazygames.com/game/bloxdhop-io/
// @grant        none
// ==/UserScript==

/* 
All Rights Reserved

Copyright (c) 2025 SkyYT

This script is proprietary. No modifications, distributions, or reproductions of this script are allowed without explicit permission from the author.

*/

(function() {
    'use strict';

    // Function to change classes of certain elements
    function updateClasses() {
        const disabledElements = document.querySelectorAll('.CharCustomPartWrapper.DisabledCharCustomPartWrapper');
        const iconElements = document.querySelectorAll('.fa-solid.fa-x.SmallTextBold');

        disabledElements.forEach((el) => {
            el.classList.remove('DisabledCharCustomPartWrapper');
            el.classList.add('EnabledCharCustomPartWrapper');
        });

        iconElements.forEach((el) => {
            el.classList.remove('fa-x');
            el.classList.add('fa-check');
        });
    }

    // Function to change text content of specific elements
    function updateTextContent() {
        const allElements = document.querySelectorAll('*');

        allElements.forEach((el) => {
            if (el.children.length === 0 && el.textContent) {
                if (el.textContent.includes("Get Super Rank")) {
                    el.textContent = el.textContent.replace(/Get Super Rank/g, "Super Rank");
                }
                if (el.textContent.includes("Get it Now")) {
                    el.textContent = el.textContent.replace(/Get it Now/g, "Do Login");
                }
            }
        });
    }

    // Function to hide advertisements
    function hideAdvertisements() {
        const adSelectors = [
            '.ad-banner',
            '.advertisement',
            '.ad-container',
            '.popup-ad',
            '.adsbygoogle',
            'iframe[src*="ads"]'
        ];

        adSelectors.forEach(selector => {
            const adElements = document.querySelectorAll(selector);
            adElements.forEach((el) => {
                el.style.visibility = 'hidden';
                el.style.position = 'absolute';
                el.style.width = '0';
                el.style.height = '0';
            });
        });
    }

    // Execute functions on page load
    window.addEventListener('DOMContentLoaded', () => {
        updateClasses();
        updateTextContent();
        hideAdvertisements();
    });

    // Observe changes to the document body and rerun functions if necessary
    const mutationObserver = new MutationObserver(() => {
        updateClasses();
        updateTextContent();
        hideAdvertisements();
    });
    mutationObserver.observe(document.body, { childList: true, subtree: true });
})();