Synology Hide Notification

Synology Hide Notification 《The default account "admin" is vulnerable to brute-force attacks, which may lead to ransomware attacks. 》

目前为 2023-11-24 提交的版本。查看 最新版本

// ==UserScript==
// @name         Synology Hide Notification
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Synology Hide Notification 《The default account "admin" is vulnerable to brute-force attacks, which may lead to ransomware attacks. 》
// @author       You
// @match        http://192.168.1.1:5000/*
// @grant        none
// @license      GPL
// ==/UserScript==

(function() {
    'use strict';

    // Function to hide the notification panel
    function hideNotificationPanel() {
        // Select the notification panel element
        var notificationPanel = document.querySelector('div.v-notification-container');

        // Check if the element exists
        if (notificationPanel) {
            // Hide the notification panel
            notificationPanel.style.display = 'none';

            // Stop the interval
            clearInterval(intervalId);
        }
    }

    // Set an interval to check for the notification panel every 500 milliseconds
    var intervalId = setInterval(hideNotificationPanel, 10);

    // Stop the interval after a certain period (adjust as needed)
    setTimeout(function() {
        clearInterval(intervalId);
    }, 10000); // Stop after 10 seconds
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址