samlloyd7 / No Email Truncation - Outlook Office 365

// ==UserScript==
// @name         No Email Truncation - Outlook Office 365
// @author       samlloyd7
// @version      1.1
// @description  Tampermonkey script that automatically shows the hidden parts of messages in Outlook
// @author       Sam Lloyd
// @match        https://outlook.office.com/owa/*
// @namespace    none
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @license      MIT
// ==/UserScript==
/* global $ */
'use strict';

// This script operates by showing all hidden portions on the page one second after every detected click, as well as immediately after every scroll wheel action.
// Then it removes the ellipsis button that normally toggles the truncation.

function continueExecution(){
    $("button[aria-label='Show message history']").click()
    setTimeout(function(){$("._rp_d5").remove()}, 1000)
}

document.addEventListener("click", function() {
    setTimeout(continueExecution, 1000)
})

document.addEventListener("wheel", function() {
    continueExecution
})