您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
22/02/2024, 10:05:11
// ==UserScript== // @name Remove New Comment Dropdown Menu Item // @namespace Eliot Cole Scripts // @match https://make.powerautomate.com/* // @grant none // @license MIT // @version 1.2 // @author Eliot Cole // @description 22/02/2024, 10:05:11 // @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@2 // @require https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js // ==/UserScript== // This is here as I might make the 'li' selector more precise in the future // #ms-ContextualMenu-item[role="presentation"] VM.observe(document.body, () => { const $node = $('li:has( > button[name="New Comment"]'); if ($node.length) { $node.each(function(){ $(this).css('display', 'none'); }); // // disconnect observer - This is disabled as if you disconnect you cannot enter more comments // return true; } });