Skip to content

Instantly share code, notes, and snippets.

@thesabbir
Last active August 29, 2015 14:04
Show Gist options
  • Save thesabbir/c46a4fe72407d5c1f9f1 to your computer and use it in GitHub Desktop.
Save thesabbir/c46a4fe72407d5c1f9f1 to your computer and use it in GitHub Desktop.
Tampermonkey userscript for fixing broken bengali font rendering on github sites.
// ==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