Disable MS TODO Ctrl + s hotkeys

屏蔽Microsoft TODO 页面 Ctrl + S 事件

2024-07-01 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

// ==UserScript==
// @name         Disable MS TODO Ctrl + s hotkeys
// @namespace    http://tampermonkey.net/
// @license MIT
// @version      2024-07-01
// @description  屏蔽Microsoft TODO 页面 Ctrl + S 事件
// @author       You
// @match        https://to-do.live.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=https://to-do.live.com/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.addEventListener('keydown', function(event) {
        if ((event.ctrlKey || event.metaKey) && event.key === 's') {
            event.preventDefault();
            console.log('Ctrl + S 被屏蔽了!');
        }
    });
    // Your code here...
})();