您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Don't want to see your search history, well don't see it :p
// ==UserScript== // @name Remove History Suggestions // @namespace http://tampermonkey.net/ // @version 1.0 // @license CC BY-NC // @description Don't want to see your search history, well don't see it :p // @author Unknown Hacker // @match https://outlook.office.com/* // @grant none // ==/UserScript== (function() { 'use strict'; function removeHistorySuggestions() { document.querySelectorAll('[aria-label]').forEach(el => { if (el.getAttribute('aria-label')?.includes('History Suggestion')) { el.remove(); } }); } setInterval(removeHistorySuggestions, 10); const observer = new MutationObserver(mutations => { mutations.forEach(mutation => { mutation.addedNodes.forEach(node => { if (node.nodeType === 1 && node.getAttribute('aria-label')?.includes('History Suggestion')) { node.remove(); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })();