Skip to content

Instantly share code, notes, and snippets.

@razetime
Created December 21, 2020 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save razetime/542bb93a37c6b31ae0eb26859fc63880 to your computer and use it in GitHub Desktop.
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.
// ==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