Last active
January 17, 2017 08:52
-
-
Save morgaan/6956ab5e2c0b4e38583851da83f14e62 to your computer and use it in GitHub Desktop.
Stackedit Distraction Free Mode Userscript for Tampermonkey
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 Stackedit Distraction Free | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description On load of StackEdit editor, switch straight away to Distraction Free view, removing nav bar and side bar | |
// @author Morgan CUGERONE | |
// @match https://stackedit.io/editor | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.setTimeout(function() { | |
document.getElementsByClassName("layout-toggler-navbar")[0].click(); | |
document.getElementsByClassName("layout-toggler-preview")[0].click(); | |
}, 500); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment