// ==UserScript==
// @name SBI Remove Download Button (Force Remove)
// @namespace http://tampermonkey.net/
// @version 5.0
// @description Safely add Export as PDF beside SBI Download button
// @match https://yonoretail.sbi.bank.in/*
// @grant none
// @run-at document-idle
// ==/UserScript==
(function () {
'use strict';
function removeDownloadButton() {
const labels = document.querySelectorAll('.mdc-button__label');
labels.forEach(label => {
if (label.textContent.trim() === "Download") {
const button = label.closest('button');
if (button) {
button.remove(); // Completely remove
console.log("Download button removed");
}
}
});
}
// Run every 1 second (Angular safe way)
const interval = setInterval(removeDownloadButton, 1000);
})();2 views