TypeScript Width Fix

Fix the damn width in typescript docs.

  1. // ==UserScript==
  2. // @name TypeScript Width Fix
  3. // @namespace https://www.typescriptlang.org
  4. // @version v1.3
  5. // @description Fix the damn width in typescript docs.
  6. // @author erucix
  7. // @match https://www.typescriptlang.org/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=typescriptlang.org
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. window.onload = function() {
  17. let style = document.createElement("style");
  18. style.innerHTML = `.whitespace.raised{width: -webkit-fill-available;}`;
  19. document.head.appendChild(style);
  20. }
  21. })();