Skip to content

Instantly share code, notes, and snippets.

@noelex
Last active September 25, 2017 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save noelex/a2e065b25f199ec054478be1a9fb1dfa to your computer and use it in GitHub Desktop.
Save noelex/a2e065b25f199ec054478be1a9fb1dfa to your computer and use it in GitHub Desktop.
Outlook.com Ad-Blocker
// ==UserScript==
// @name Office.com Ad-Blocker
// @namespace http://tampermonkey.net/
// @version 0.4
// @description try to take over the world!
// @author You
// @match https://outlook.live.com/owa/*
// @match https://outlook.live.com/mail/*
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
// ==/UserScript==
(function() {
'use strict';
var css = "<style>._n_h,.stQe7wknhnXCAAroiyvBY,._2qPmszDwBfYpF7PO9Mn3KN {display: none;} \r\n #primaryContainer > div{ right: 0 !important;}</style>";
$("head:first").append(css);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment