Created
November 16, 2020 06:14
-
-
Save zwithz/56c06eaa4027321e6db02294a5a160e1 to your computer and use it in GitHub Desktop.
A TamperMonkey script - custom style for notion
This file contains hidden or 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 custom-style-for-notion | |
// @version 0.1 | |
// @author zwithz | |
// @match https://www.notion.so/zwithz/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const url='https://gist.githubusercontent.com/zwithz/56cc9a184d7e19ba78a869a9c2d440fd/raw/'; | |
fetch(url).then(rsp=>rsp.text()).then(csstxt=>{ | |
let s = document.createElement('style'); | |
s.setAttribute('type', 'text/css'); | |
s.appendChild(document.createTextNode(csstxt)); | |
document.querySelector('head').appendChild(s); | |
}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment