[Resolved] outlook.live.com

Boo Berry

Moderator + Beta Tester
Moderator
I was able to narrow down the code in the userscript/userstyle to the part that removes the message and gets rid of the space on the right side (along with the try the beta slider). Can this be converted to filter rule(s)?

Code:
    "/* UI cleanup */",
    "div#app > div.ms-Fabric > div:last-child > div:first-child > div:first-child > div:last-child, /* ad bar */",
    "div.ms-CommandBar-sideCommands > div > div > div.ms-Toggle.is-checked.is-enabled /* Try the Beta switch */ {",
    "    display: none !important;",
    "}",
    "",
    "/* UI cleanup */",
    "div[style=\"position: absolute; top: 50px; right: 0px; bottom: 0px; left: auto; height: auto; width: 160px;\"], /* 2017 right-side bar */",
    "    display: none !important;",
    "}",
 

Alex302

Filters Developer
Staff member
Administrator
Please check
Code:
outlook.live.com#$#div#app > div.ms-Fabric > div:last-child > div:first-child > div:first-child > div:last-child { display: none !important;" } 
outlook.live.com#$#div.ms-CommandBar-sideCommands > div > div > div.ms-Toggle.is-checked.is-enabled { display: none !important;" } 

outlook.live.com#$#div[style=\"position: absolute; top: 50px; right: 0px; bottom: 0px; left: auto; height: auto; width: 160px;\"]{ display: none !important;" } 
or
outlook.live.com#$#div[style="position: absolute; top: 50px; right: 0px; bottom: 0px; left: auto; height: auto; width: 160px;"]{ display: none !important;" }
 

Alex302

Filters Developer
Staff member
Administrator
The final rule:
Code:
outlook.live.com##div#app > div.ms-Fabric > div:last-child > div:first-child > div:first-child > div[data-min-width][data-max-width][style^="width:"]~div:last-child
Thanks to @steve1209
 

Boo Berry

Moderator + Beta Tester
Moderator
That final rule works great. Make sure anyone trying to use it to clear the browser cache first! ;)

It can probably be added to the annoyances filter (that has the other Outlook rules for this sort of thing).

I'll test one to remove the beta slider here in a minute.

EDIT: The beta slider rule;

Code:
outlook.live.com#$#div.ms-CommandBar-sideCommands > div > div > div.ms-Toggle.is-checked.is-enabled { display: none !important;" }
Works fine too. But this one is likely optional for those who actually want to remove it.

Thanks Alex! And thanks Steve too! :)
 
Top