Skip to content

Instantly share code, notes, and snippets.

@zwithz
Created November 16, 2020 06:14
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 zwithz/56c06eaa4027321e6db02294a5a160e1 to your computer and use it in GitHub Desktop.
Save zwithz/56c06eaa4027321e6db02294a5a160e1 to your computer and use it in GitHub Desktop.
A TamperMonkey script - custom style for notion
// ==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