Last active
August 29, 2015 14:04
-
-
Save thesabbir/c46a4fe72407d5c1f9f1 to your computer and use it in GitHub Desktop.
Tampermonkey userscript for fixing broken bengali font rendering on github 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 Github Bengali Font Fix | |
// @namespace thesabbir.github.fontfix | |
// @version 0.3 | |
// @description Tampermonkey userscript for fixing broken bengali font rendering on github sites. | |
// @match https://github.com/* | |
// @match https://*.github.com/* | |
// @copyright 2014 Sabbir Ahmed | |
// ==/UserScript== | |
function addStyle(css) { | |
var head = document.getElementsByTagName('head')[0]; | |
if (!head) { return 0; } | |
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
addStyle('body, input, select, textarea, button, .markdown-body { font: inherit; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment