🏠 Home 

Emoji Suggester Wipe Out

Remove this annoying emoji suggestions from Outlook mail composer


Install this script?
// ==UserScript==
// @name         Emoji Suggester Wipe Out
// @namespace    https://outlook.office.com
// @version      1.0
// @description  Remove this annoying emoji suggestions from Outlook mail composer
// @author       Doc Davluz
// @match        https://outlook.office.com/mail/*
// @grant        none
// ==/UserScript==
/* jshint esversion:6 */
(function() {
'use strict';
'esversion: 6';
const contentPaneDiscovererCallback = function(documentMutationList, documentationPaneObserver) {
const matchingMutationRecords = documentMutationList.filter(mutationRecord => documentMutationList.type != "childList"
&& mutationRecord.target.parentElement
&& mutationRecord.target.parentElement.tagName == "BODY");
if (!matchingMutationRecords) {
return;
}
const emojiPickerSuggestions = document.getElementById('emojiPickerSuggestions');
if (!emojiPickerSuggestions) {
return;
}
emojiPickerSuggestions.parentElement.parentElement.remove();
}
const documentObserverConfig = {
attributes: false,
childList: true,
subtree: true
};
const documentObserver = new MutationObserver(contentPaneDiscovererCallback);
const documentObserverRegistration = documentObserver.observe(document, documentObserverConfig);
})();