/*
* @title font size keeper
* @description keep browser standard-font-size
* @include http://*
* @license MIT http://opensource.org/licenses/MIT
* @javascript_url
*/
// c.f. https://gist.github.com/noromanba/0199853e20eefe89ffbc
(function () {
var addStyle = (function () {
var parent = document.head || document.body || document.documentElement;
var style = document.createElement('style');
style.type = 'text/css';
parent.appendChild(style);
return function (css) {
style.appendChild(document.createTextNode(css + '\n'));
};
})();
// TBD strict match, avoid shrink
// - not apply heding1-6 or textnode only
// - each nodes w/ getComputedStyle and/or window.CSS*
// keep browser standard-font-size
addStyle([
'* { font-size: initial !important; }'
].join('\n'));
})();