Created
July 19, 2011 19:39
-
-
Save bentruyman/1093511 to your computer and use it in GitHub Desktop.
Resizes tab characters to 2 spaces (currently only works in FF4 and Opera 10.60)
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== | |
// @match http://*/* | |
// @match https://*/* | |
// ==/UserScript== | |
var style = document.createElement('style'); | |
style.textContent = [ | |
'pre { ', | |
' -webkit-tab-size: 2;', | |
' -moz-tab-size: 2;', | |
' -o-tab-size: 2;', | |
' tab-size: 2;', | |
'} ' | |
].join(''); | |
document.getElementsByTagName('head')[0].appendChild(style); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment