Skip to content

Instantly share code, notes, and snippets.

View nullfx's full-sized avatar
:octocat:
#hashtag

Steve nullfx

:octocat:
#hashtag
View GitHub Profile

Info

to disable the "new look" outlook, and prevent it from ever prompting to be used (i.e., after an update), open terminal and issue the following command. this will remove the "new outlook" toggle, and will prevent it from periodically / randomly switching back to the new outlook (when you have it switched off) after an update. After running this command the toggle will be removed completely, and you won't be prompted to switch anymore.

Command

defaults write com.microsoft.Outlook EnableNewOutlook -int 0 
@nullfx
nullfx / userChrome.css
Last active March 2, 2022 21:17
Fix Firefox's bloated UX
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
/* Prevent massive mega url bar */
#urlbar[breakout],
#urlbar[breakout][breakout-extend] {
width: 100% !important;
top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important;
left: 0 !important;
}
@nullfx
nullfx / SplitButton.cs
Last active September 24, 2020 22:54
Split Button windows (win32) form control
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
using System.Drawing;
using System.ComponentModel;
public class SplitButton : Button {
private PushButtonState _state;