TypeScript Width Fix

Fix the damn width in typescript docs.

当前为 2025-01-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name TypeScript Width Fix
  3. // @namespace https://www.typescriptlang.org
  4. // @version v1.0
  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. document.querySelector(".whitespace.raised").style.width = "-webkit-fill-available";
  18. }
  19. })();