Created
December 21, 2020 02:07
-
-
Save razetime/542bb93a37c6b31ae0eb26859fc63880 to your computer and use it in GitHub Desktop.
A userscript that prevents tio from text wrapping, and provides a scrollbar instead.
This file contains hidden or 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 tio text | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
window.addEventListener('DOMContentLoaded', (event) => { | |
var textA = document.getElementsByTagName("textarea"); | |
for(var i=0;i<textA.length;i++){ | |
textA[i].wrap = "off"; | |
textA[i].style.cssText = "overflow: scroll !important;"; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment