Last active
September 20, 2018 04:40
-
-
Save mayukojpn/77b113bd05d39974c33c4c2aa11cd570 to your computer and use it in GitHub Desktop.
Guteberg-JP-Noto-Fonts
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
/* | |
* Gutenberg のフォントを変えるブックマークレット | |
* ※開発者ツールを使用する場合は、頭の「javascript:」をとって貼り付けてください | |
* | |
* === 使い方 === | |
* 1. 以下のブックマークレットのうち1行をコピーして、ブックマークとして保存します。 | |
* 2. https://ja.wordpress.org/gutenberg/ を開きます。 | |
* 3. 2で開いたウィンドウのまま1でつくったブックマークを開きます。表示フォントが切り替わったら成功です。 | |
*/ | |
// Noto Sans JP | |
javascript:var css = document.createElement("style");css.innerText = "@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP|Noto+Serif+JP');body,button,input,select,optgroup,textarea,.editor-block-list__block {font-family: 'Noto Sans JP', sans-serif !important;}";document.getElementsByTagName("head")[0].appendChild(css); | |
// Noto Serif JP | |
javascript:var css = document.createElement("style");css.innerText = "@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP|Noto+Serif+JP');body,button,input,select,optgroup,textarea,.editor-block-list__block {font-family: 'Noto Serif JP', sans-serif !important;}";document.getElementsByTagName("head")[0].appendChild(css); | |
// Sawarabi Mincho | |
javascript:var css = document.createElement("style");css.innerText = "@import url('https://fonts.googleapis.com/css?family=Sawarabi+Mincho');body,button,input,select,optgroup,textarea,.editor-block-list__block {font-family: 'Sawarabi Mincho', sans-serif !important;}";document.getElementsByTagName("head")[0].appendChild(css); | |
// 標準フォントのゴシック | |
javascript:var css = document.createElement("style");css.innerText = "body,button,input,select,optgroup,textarea,.editor-block-list__block {font-family: sans-serif !important;}";document.getElementsByTagName("head")[0].appendChild(css); | |
// Noto Serif + 日本語標準フォントのゴシック | |
javascript:var css = document.createElement("style");css.innerText = "body,button,input,select,optgroup,textarea,.editor-block-list__block {font-family: 'Noto Serif', sans-serif !important;}";document.getElementsByTagName("head")[0].appendChild(css); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment