Skip to content

Instantly share code, notes, and snippets.

@jeznag
Created November 4, 2019 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeznag/2e9651442e58aff4b2cb3ba54ece89b2 to your computer and use it in GitHub Desktop.
Save jeznag/2e9651442e58aff4b2cb3ba54ece89b2 to your computer and use it in GitHub Desktop.
hide distracting sites
// ==UserScript==
// @name Hide emails
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://mail.google.com/mail/u/0/
// @match *://abc.net.au
// @match *://facebook.com
// @match *://www.facebook.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
const blockerDiv = document.createElement('div');
blockerDiv.style = ` position: absolute;
width: 90%;
height: 40%;
z-index: 9999999;
background: white;
top: 0;
left: 150px;`;
blockerDiv.innerHTML = `<h1>Oy you ain't gonna find no joy here. Back to work</h1>`;
document.body.appendChild(blockerDiv);
// Your code here...
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment