Skip to content

Instantly share code, notes, and snippets.

@bfritscher
Last active June 22, 2017 15:16
Show Gist options
  • Save bfritscher/12434afb6915ee3a35c05f80e9f9af96 to your computer and use it in GitHub Desktop.
Save bfritscher/12434afb6915ee3a35c05f80e9f9af96 to your computer and use it in GitHub Desktop.
Fix JS Bin Embed font-size
var fontSize = 20;
var style = document.createElement('style');
style.innerText = '#output li, #exec, .fakeInput, .fakeInput:before, #exec:before, #bin .editbox .CodeMirror, .mobile .editbox textarea{ font-size: ' + fontSize + 'px !important; }';
document.head.append(style);
{
"name": "Fix JS Bin Embed font-size",
"description": "Set font-size in JS Bin embed",
"version": "0.1",
"icons": {
"64": "favicon.png"
},
"content_scripts": [
{
"matches": ["*://jsbin.com/*embed*"],
"js": ["fix-jsbin-embed.js"],
"all_frames": true
}
],
"manifest_version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment