JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

Untitled Page | JustPaste.app
12 days ago2 views
👨‍💻Programming

Untitled Page

// ==UserScript==
// @name         SBI YONO - Remove Select Financial Year
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  Completely removes the Select Financial Year radio section
// @match        https://yonoretail.sbi.bank.in/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function () {
    'use strict';

    function removeFinancialYear() {
        const elements = document.querySelectorAll(
            'div.radiobutton, div[class*="radiobutton"]'
        );

        elements.forEach(element => {
            const text = element.textContent
                .replace(/\s+/g, ' ')
                .trim()
                .toLowerCase();

            if (text.includes('select financial year')) {
                // Hide immediately
                element.style.setProperty(
                    'display',
                    'none',
                    'important'
                );

                // Remove the element completely
                element.remove();
            }
        });

        // Backup search when the class changes
        document.querySelectorAll('input[type="radio"]').forEach(radio => {
            const parent = radio.closest('div');

            if (
                parent &&
                parent.textContent
                    .replace(/\s+/g, ' ')
                    .toLowerCase()
                    .includes('select financial year')
            ) {
                parent.style.setProperty(
                    'display',
                    'none',
                    'important'
                );

                parent.remove();
            }
        });
    }

    // Run after every Angular page update
    const observer = new MutationObserver(removeFinancialYear);

    function startObserver() {
        if (!document.documentElement) {
            setTimeout(startObserver, 100);
            return;
        }

        observer.observe(document.documentElement, {
            childList: true,
            subtree: true
        });

        removeFinancialYear();
    }

    startObserver();

    // Additional backup for delayed Angular rendering
    setInterval(removeFinancialYear, 500);
})();
← Back to timeline