Using classic Outlook for Windows in business environments
Is there a version of your instructions "for dummies"?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
My outlook.live.com quick actions moved to the far right of subject and received column and I can't move them back beside sender and subject. The quick actions appear on far right of email. I went to Mail - Customize actions -Quick actions. The template shows them on right but the screen narrative shows "Quick actions appear beside sender names and subject lines in your message list". Please help me get the quick actions back to between From (Sender Name) and Subject.
Thanks
* Pinned until 6/2/2022.
Using classic Outlook for Windows in business environments
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Is there a version of your instructions "for dummies"?
I don't want to steal Ross Duran's thunder since they were the one who originally came up with this fix. Basically his fix is just a javascript which runs and moves the "containers" (DIV tags) that the move and delete buttons are under to a different location (being back to the original location). It's based on the CSS style tag that's applied to these "containers". Unfortunately MS updated these tags and they are pretty randomly named.
Anyways, full steps which I had taken:
Again, all credit goes to Ross Duran who originally came up with the code/process. I just updated the tags to get it working again.
// ==UserScript==
// @name outlook quick actions hotfix
// @namespace www.rossdoran.com
// @version 0.1
// @description m$.gfy
// @match https://outlook.office.com/mail/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @run-at document-start
// ==/UserScript==
// custom style
$('head').append('');
waitForKeyElements(".UWVIR", moveQuickActions);
waitForKeyElements(".QpoLy", moveDeleteAction); // comment out this line to keep the delete quick action on the right
function moveDeleteAction(elem)
{
var elem = $(elem);
var parent = elem.parent();
if (parent.length > 0)
{
var newParent = parent.find(".xxeTh.XG5Jd");
if (newParent.length > 0 && !elem.hasClass("delete-hidden"))
{
var clone = elem.clone();
clone.appendTo(newParent);
elem.addClass("delete-hidden");
let rightDeleteAction = elem;
clone.click(function(e)
{
rightDeleteAction.click();
e.preventDefault();
return false;
});
}
}
}
function moveQuickActions(elem)
{
var elem = $(elem);
var parent = elem.parent().parent();
if (parent.length > 0)
{
var newParent = parent.find(".xxeTh.XG5Jd");
if (newParent.length > 0)
elem.detach().appendTo(newParent);
}
}
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
//--- Page-specific function to do what we want when the node is found.
function commentCallbackFunction (jNode) {
jNode.text ("This comment changed by waitForKeyElements().");
}
IMPORTANT: This function requires your script to have loaded jQuery.
*/
function waitForKeyElements (
selectorTxt, /* Required: The jQuery selector string that
specifies the desired element(s).
*/
actionFunction, /* Required: The code to run when elements are
found. It is passed a jNode to the matched
element.
*/
bWaitOnce, /* Optional: If false, will continue to scan for
new elements even after the first match is
found.
*/
iframeSelector /* Optional: If set, identifies the iframe to
search.
*/
) {
var targetNodes, btargetsFound;
if (typeof iframeSelector == "undefined")
targetNodes = $(selectorTxt);
else
targetNodes = $(iframeSelector).contents ()
.find (selectorTxt);
if (targetNodes && targetNodes.length > 0) {
btargetsFound = true;
/*--- Found target node(s). Go through each and act if they
are new.
*/
targetNodes.each ( function () {
var jThis = $(this);
var alreadyFound = jThis.data ('alreadyFound') || false;
if (!alreadyFound) {
//--- Call the payload function.
var cancelFound = actionFunction (jThis);
if (cancelFound)
btargetsFound = false;
else
jThis.data ('alreadyFound', true);
}
} );
}
else {
btargetsFound = false;
}
//--- Get the timer-control variable for this selector.
var controlObj = waitForKeyElements.controlObj || {};
var controlKey = selectorTxt.replace (/[^\w]/g, "_");
var timeControl = controlObj [controlKey];
//--- Now set or clear the timer as appropriate.
if (btargetsFound && bWaitOnce && timeControl) {
//--- The only condition where we need to clear the timer.
clearInterval (timeControl);
delete controlObj [controlKey]
}
else {
//--- Set a timer, if needed.
if ( ! timeControl) {
timeControl = setInterval ( function () {
waitForKeyElements ( selectorTxt,
actionFunction,
bWaitOnce,
iframeSelector
);
},
300
);
controlObj [controlKey] = timeControl;
}
}
waitForKeyElements.controlObj = controlObj;
}
Hey thanks. Can the community get a full revised script with instructions for the less talented users?
It is absolutely insane to me that this change is so universally hated by outlook.live.com users that at least two of them we know of so far have created/edited scripts to reverse it (JordanMXW and ross doran, thank you both). And yet a Microsoft rep STILL hasn't addressed this 36 page thread or at least provided some type of logical justification for the move. I've said it before and I'll say it again: As an almost 40 year Microsoft fan, beta tester, and multiple platform paying customer, and as a 22 year Microsoft personal email address owner, this is the first time I can say that I am beyond super disappointed in Microsoft.
It's because they've updated the class names. I did some fiddling with mine and got it to work again (not sure if exactly the same as what Ross had before). Here's the lines/changes to do.
waitForKeyElements(".UWVIR", moveQuickActions);
waitForKeyElements(".QpoLy", moveDeleteAction);
Under function moveDeleteAction(elem):
var newParent = parent.find(".xxeTh.XG5Jd");
if (newParent.length > 0 && !elem.hasClass("delete-hidden"))
And under function moveQuickActions(elem):
function moveQuickActions(elem)
{
var elem = $(elem);
var parent = elem.parent().parent();
if (parent.length > 0)
{
var newParent = parent.find(".xxeTh.XG5Jd");
if (newParent.length > 0)
elem.detach().appendTo(newParent);
}
}