Created
November 4, 2019 11:00
-
-
Save jeznag/2e9651442e58aff4b2cb3ba54ece89b2 to your computer and use it in GitHub Desktop.
hide distracting sites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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